ui-struct-probe mini-loop T0-T6 全落(探针全屏零红+负向验证红+probe_gate 注册段全绿+冒烟772/0+run_all 14/15基线红+doc三闸零新增)——①M2双列叠放修复:ui_assembler.gd 右列挂回 HBox 第二列(原 pad.add_child(right) 误挂 MarginContainer 与左列同矩形叠放=实机目检抓到的根因;start_box/start_right 命名锚)②按钮宽度纪律:ui_kit.button(text,min_w=216) 全站最小宽度基准+SIZE_FILL(VBox 列内等宽拉满/HBox 行内不抢余宽——EXPAND_FILL 撑爆营地底条 1616px 实证教训注释在案);行板/角标/图标钮豁免9处(camp 5+shop 2+ap_bar 2+调试角标/诊断转储 2)③新增 ui_struct_probe(全 UI 屏结构断言:按钮互压/同容器等宽/出屏/零尺寸/标题屏双列五族;菜单簇真驱动+冒险簇真流+兑付屏 open 面合成喂入;ScrollContainer 内容豁免;modal 屏 queue_sort 手法坑在册)④probe_gate.sh 注册默认必跑段⑤07 改排:§⑪改排注记+§⑮分工注记+新增§⑯复验项⑥出口报告(代裁追认单 P1-P4+六轮 red-green 实录)=design/qa/ui-struct-probe-exit-report-2026-10-05.md
This commit is contained in:
1 parent
8944dca0d3
commit
d77a245bcc
12 files changed
+382
-18
No files matched your search
@@ -122,6 +122,7 @@ static func build_start_overlay(host: Control, db = null) -> Dictionary:
|
||||
cols.add_child(pad)
|
||||
overlay.add_child(cols)
|
||||
var box := VBoxContainer.new()
|
||||
box.name = "start_box"
|
||||
box.size_flags_horizontal = Control.SIZE_EXPAND_FILL
|
||||
box.size_flags_stretch_ratio = 1.4
|
||||
box.add_theme_constant_override("separation", 10)
|
||||
@@ -156,17 +157,18 @@ static func build_start_overlay(host: Control, db = null) -> Dictionary:
|
||||
|
||||
# 迭代 14.5 调试整合批——调试入口收右下角标(与主按钮组非平级;DS_DEBUG=1 点亮,可见性归组合根)。
|
||||
# margin 16px 角距;字号降档与主按钮拉开层级
|
||||
var dbgbtn := UiKit.button("调试")
|
||||
var dbgbtn := UiKit.button("调试", 0.0) # 角标豁免宽度基准(0=不设 min/flags——角落小件)
|
||||
dbgbtn.add_theme_font_size_override("font_size", 13)
|
||||
dbgbtn.set_anchors_and_offsets_preset(Control.PRESET_BOTTOM_RIGHT, Control.PRESET_MODE_MINSIZE, 16)
|
||||
overlay.add_child(dbgbtn)
|
||||
|
||||
# 右列:立绘看台 + 玩法速览牌(M2——帮助全文保留表值驱动,仅容器化;内容含地形变异段不删)
|
||||
var right := VBoxContainer.new()
|
||||
right.name = "start_right"
|
||||
right.size_flags_horizontal = Control.SIZE_EXPAND_FILL
|
||||
right.add_theme_constant_override("separation", 18)
|
||||
right.alignment = BoxContainer.ALIGNMENT_CENTER
|
||||
pad.add_child(right)
|
||||
cols.add_child(right) # ui-struct-probe 批 T2:右列挂 HBox 第二列(原误挂 pad 与左列同矩形叠放——M2 双列失效根因)
|
||||
var stage := VBoxContainer.new()
|
||||
stage.alignment = BoxContainer.ALIGNMENT_CENTER
|
||||
var foe_row := HBoxContainer.new()
|
||||
@@ -222,7 +224,7 @@ static func build_inter_overlay(host: Control) -> Dictionary:
|
||||
|
||||
# Playtest 诊断按钮(调试变体——battle.md §States 允许;卡死转储)
|
||||
static func build_diag_button(host: Control) -> Button:
|
||||
var diag_btn := UiKit.button("诊断转储")
|
||||
var diag_btn := UiKit.button("诊断转储", 0.0) # 角落小件豁免宽度基准(固定 offsets 112px 宽)
|
||||
diag_btn.set_anchors_preset(Control.PRESET_BOTTOM_LEFT)
|
||||
diag_btn.offset_left = 6.0
|
||||
diag_btn.offset_top = -30.0
|
||||
|
||||
@@ -85,7 +85,7 @@ func _init() -> void:
|
||||
row.add_child(_confirm_row)
|
||||
_confirm_lab = UiKit.label("RAP−%d · 旧板旗作废" % refresh_cost, 14, true, COL_INK)
|
||||
_confirm_row.add_child(_confirm_lab)
|
||||
var confirm_btn := UiKit.button("确认弃图")
|
||||
var confirm_btn := UiKit.button("确认弃图", 0.0) # HUD 顶条紧凑钮豁免宽度基准
|
||||
confirm_btn.pressed.connect(_disarm_and_fire)
|
||||
_confirm_row.add_child(confirm_btn)
|
||||
|
||||
@@ -99,7 +99,7 @@ func _init() -> void:
|
||||
refresh_box.add_theme_constant_override("separation", 0)
|
||||
refresh_box.size_flags_vertical = Control.SIZE_SHRINK_CENTER
|
||||
row.add_child(refresh_box)
|
||||
_btn_refresh = UiKit.button("弃图刷新")
|
||||
_btn_refresh = UiKit.button("弃图刷新", 0.0) # HUD 顶条紧凑钮豁免宽度基准
|
||||
_btn_refresh.pressed.connect(_on_refresh_pressed)
|
||||
refresh_box.add_child(_btn_refresh)
|
||||
_refresh_sub = UiKit.label("RAP−%d · 剩 0 次" % refresh_cost, 14, false, UiKit.INK_LABEL)
|
||||
|
||||
@@ -38,7 +38,7 @@ func _init() -> void:
|
||||
var top_sp := Control.new()
|
||||
top_sp.size_flags_horizontal = Control.SIZE_EXPAND_FILL
|
||||
top.add_child(top_sp)
|
||||
_refresh_btn = UiKit.button("")
|
||||
_refresh_btn = UiKit.button("", 0.0) # 图标钮自设 44×44——豁免宽度基准
|
||||
_refresh_btn.icon = UiKit.load_tex(UiKit.TEX_ICON_REFRESH)
|
||||
_refresh_btn.custom_minimum_size = Vector2(44, 44)
|
||||
_refresh_btn.tooltip_text = "刷新候选——装配刷新件 X 优先,Y 为冒险池;不消耗 AP"
|
||||
|
||||
@@ -199,7 +199,7 @@ func _rebuild_tree(data: Dictionary) -> void:
|
||||
hb.add_child(name_l)
|
||||
if String(row.get("kind", "")) == "fork":
|
||||
continue # Fork 行去 UI 化——由 fork_groups 段承载切换钮
|
||||
var btn := UiKit.button("购买 %d" % int(row.get("price", 0)))
|
||||
var btn := UiKit.button("购买 %d" % int(row.get("price", 0)), 0.0) # 柜台行板紧凑钮豁免宽度基准
|
||||
btn.pressed.connect(func(): tree_buy_requested.emit(String(row.get("node_id", ""))))
|
||||
btn.disabled = not bool(row.get("can_buy", false))
|
||||
hb.add_child(btn)
|
||||
@@ -213,7 +213,7 @@ func _rebuild_tree(data: Dictionary) -> void:
|
||||
fb.add_child(gl)
|
||||
for side_row in (fg.get("sides", []) as Array):
|
||||
var sd := String(side_row.get("side", ""))
|
||||
var sb := UiKit.button(String(side_row.get("display_name", sd)))
|
||||
var sb := UiKit.button(String(side_row.get("display_name", sd)), 0.0) # 行板紧凑钮豁免
|
||||
sb.pressed.connect(func(): tree_fork_toggled.emit(group, sd))
|
||||
sb.disabled = not bool(side_row.get("owned", false))
|
||||
fb.add_child(sb)
|
||||
@@ -338,7 +338,7 @@ func _build_forge_row(holder: VBoxContainer, row: Dictionary) -> Dictionary:
|
||||
var price_l := UiKit.label("", 14, false, UiKit.STONE)
|
||||
price_l.custom_minimum_size = Vector2(64, 0)
|
||||
line.add_child(price_l)
|
||||
var btn := UiKit.button("锻造 +1 级")
|
||||
var btn := UiKit.button("锻造 +1 级", 0.0) # 柜台行板紧凑钮豁免宽度基准
|
||||
btn.pressed.connect(_emit_buy_requested.bind(attr))
|
||||
line.add_child(btn)
|
||||
holder.add_child(card)
|
||||
@@ -388,7 +388,7 @@ func _rebuild_attune(data: Dictionary) -> void:
|
||||
var form_l := UiKit.label("被动" if String(row.get("form", "")) == "passive" else "主动·充能", 12, false, UiKit.STONE)
|
||||
form_l.custom_minimum_size = Vector2(58, 0)
|
||||
line.add_child(form_l)
|
||||
var btn := UiKit.button("装配")
|
||||
var btn := UiKit.button("装配", 0.0) # 行板紧凑钮豁免
|
||||
btn.pressed.connect(attune_toggled.emit.bind(iid))
|
||||
line.add_child(btn)
|
||||
_workshop_holder.add_child(line)
|
||||
@@ -398,7 +398,7 @@ func _rebuild_attune(data: Dictionary) -> void:
|
||||
refresh_line.add_theme_constant_override("separation", 6)
|
||||
_refresh_l = UiKit.label("", 12, false, UiKit.STONE)
|
||||
refresh_line.add_child(_refresh_l)
|
||||
_refresh_btn = UiKit.button("升级")
|
||||
_refresh_btn = UiKit.button("升级", 0.0) # 行板紧凑钮豁免
|
||||
_refresh_btn.pressed.connect(_emit_buy_requested.bind("attune_refresh"))
|
||||
refresh_line.add_child(_refresh_btn)
|
||||
_workshop_holder.add_child(refresh_line)
|
||||
|
||||
@@ -38,7 +38,7 @@ func _init() -> void:
|
||||
var top_sp := Control.new()
|
||||
top_sp.size_flags_horizontal = Control.SIZE_EXPAND_FILL
|
||||
top.add_child(top_sp)
|
||||
_refresh_btn = UiKit.button("")
|
||||
_refresh_btn = UiKit.button("", 0.0) # 图标钮自设 44×44——豁免宽度基准
|
||||
_refresh_btn.icon = UiKit.load_tex(UiKit.TEX_ICON_REFRESH)
|
||||
_refresh_btn.custom_minimum_size = Vector2(44, 44)
|
||||
_refresh_btn.disabled = true # MC-1 投喂后启用(set_refresh_display)
|
||||
@@ -106,7 +106,7 @@ func _build_card(p: Dictionary) -> Dictionary:
|
||||
row.add_child(price_l)
|
||||
var bought_l := UiKit.label("", 14, false, UiKit.WARM_FAINT)
|
||||
row.add_child(bought_l)
|
||||
var btn := UiKit.button("购买")
|
||||
var btn := UiKit.button("购买", 0.0) # 行卡紧凑钮豁免宽度基准
|
||||
btn.pressed.connect(_emit_buy_requested.bind(p))
|
||||
row.add_child(btn)
|
||||
_cards_box.add_child(card)
|
||||
|
||||
@@ -253,9 +253,14 @@ static func scaled(base: int, pct: int) -> int:
|
||||
return maxi(1, int(round(float(base) * (100.0 + float(pct)) / 100.0)))
|
||||
|
||||
|
||||
static func button(text: String) -> Button:
|
||||
# 宽度纪律(ui-struct-probe 批 T3——全站按钮最小宽度基准 216+SIZE_FILL:VBox 列内拉满列宽等宽,
|
||||
# HBox 行内不抢余宽(EXPAND_FILL 会把行撑爆——营地底条 1616px 实证);角落小件/紧凑位传 0 豁免)
|
||||
static func button(text: String, min_w := 216.0) -> Button:
|
||||
var b := Button.new()
|
||||
b.text = text
|
||||
if min_w > 0.0:
|
||||
b.custom_minimum_size = Vector2(min_w, 0)
|
||||
b.size_flags_horizontal = Control.SIZE_FILL
|
||||
_apply_button_skin(b)
|
||||
return b
|
||||
|
||||
|
||||
Reference in new issue
Block a user