卡②T4补(呈现层结构收敛批): u14 ap_bar_view补做——T2b(525529ad)提交信息有记实际漏做,本次补齐——_init拆构建私有族四域(_build_ap_face AP计量+停手域/_build_rap_face RAP读数域[贴消费口]/_build_refresh_confirm破坏性确认异位chips域/_build_legend_refresh图例与弃图刷新域),装配序逐行原序保持零像素变化,S7源锚句(FS_CAPTION+STONE_DEEP行)逐字在位;_init 69行键消失,gdstyle 17→16键NEW=0恶化=0
This commit is contained in:
1 parent
836c25e41c
commit
9bef58f99a
1 file changed
+20
-6
@@ -41,6 +41,16 @@ func _init() -> void:
|
||||
row.add_theme_constant_override("separation", 8)
|
||||
add_child(row)
|
||||
|
||||
_build_ap_face(row)
|
||||
_build_rap_face(row)
|
||||
_build_refresh_confirm(row)
|
||||
_build_legend_refresh(row)
|
||||
|
||||
|
||||
# ---- 构建私有族(AP 计量/RAP 读数/破坏性确认/图例刷新四域) ----
|
||||
|
||||
# AP 计量域:点阵+读数+停手钮+弹性撑
|
||||
func _build_ap_face(row: HBoxContainer) -> void:
|
||||
_dots = HBoxContainer.new()
|
||||
_dots.add_theme_constant_override("separation", 3)
|
||||
_dots.size_flags_vertical = Control.SIZE_SHRINK_CENTER
|
||||
@@ -48,19 +58,19 @@ func _init() -> void:
|
||||
_ap_label = UiKit.label("AP 0/0",UiKit.FS_BODY, true)
|
||||
_ap_label.size_flags_vertical = Control.SIZE_SHRINK_CENTER
|
||||
row.add_child(_ap_label)
|
||||
|
||||
_btn_stop = UiKit.button("停手")
|
||||
_btn_stop.custom_minimum_size = Vector2(64, 0)
|
||||
_btn_stop.size_flags_vertical = Control.SIZE_SHRINK_CENTER
|
||||
_btn_stop.pressed.connect(_emit_stop_pressed)
|
||||
row.add_child(_btn_stop)
|
||||
|
||||
var spacer := Control.new()
|
||||
spacer.size_flags_horizontal = Control.SIZE_EXPAND_FILL
|
||||
row.add_child(spacer)
|
||||
|
||||
# RAP 读数(自 C 区迁入):RAP 唯一消费口 = 弃图刷新——资源数字贴消费按钮
|
||||
# (就近原则);扣费文案「RAP−%d」已在刷新按钮副行,此处不重复代价提示(单一展示面原则)
|
||||
|
||||
# RAP 读数域(自 C 区迁入):RAP 唯一消费口 = 弃图刷新——资源数字贴消费按钮
|
||||
# (就近原则);扣费文案「RAP−%d」已在刷新按钮副行,此处不重复代价提示(单一展示面原则)
|
||||
func _build_rap_face(row: HBoxContainer) -> void:
|
||||
_rap_dots = HBoxContainer.new()
|
||||
_rap_dots.add_theme_constant_override("separation", 2)
|
||||
_rap_dots.size_flags_vertical = Control.SIZE_SHRINK_CENTER
|
||||
@@ -72,7 +82,9 @@ func _init() -> void:
|
||||
_rap_feedback.size_flags_vertical = Control.SIZE_SHRINK_CENTER
|
||||
row.add_child(_rap_feedback)
|
||||
|
||||
# 破坏性确认异位(pattern 7):确认 chips 出现在刷新按钮左方——与常规"按钮自身确认"不同位
|
||||
|
||||
# 破坏性确认异位(pattern 7):确认 chips 出现在刷新按钮左方——与常规"按钮自身确认"不同位
|
||||
func _build_refresh_confirm(row: HBoxContainer) -> void:
|
||||
_confirm_row = HBoxContainer.new()
|
||||
_confirm_row.add_theme_constant_override("separation", 4)
|
||||
_confirm_row.visible = false
|
||||
@@ -83,12 +95,14 @@ func _init() -> void:
|
||||
confirm_btn.pressed.connect(_disarm_and_fire)
|
||||
_confirm_row.add_child(confirm_btn)
|
||||
|
||||
|
||||
# 图例与弃图刷新域:图例开关钮+刷新钮组(副行=剩余次数读数)
|
||||
func _build_legend_refresh(row: HBoxContainer) -> void:
|
||||
_btn_legend = UiKit.button("图例")
|
||||
_btn_legend.custom_minimum_size = Vector2(56, 0)
|
||||
_btn_legend.size_flags_vertical = Control.SIZE_SHRINK_CENTER
|
||||
_btn_legend.pressed.connect(_emit_legend_toggled)
|
||||
row.add_child(_btn_legend)
|
||||
|
||||
var refresh_box := VBoxContainer.new()
|
||||
refresh_box.add_theme_constant_override("separation", 0)
|
||||
refresh_box.size_flags_vertical = Control.SIZE_SHRINK_CENTER
|
||||
|
||||
Reference in new issue
Block a user