From 9bef58f99a2b89ac4559ab3ac36be3d9792d8c12 Mon Sep 17 00:00:00 2001 From: DKChan <524912269@qq.com> Date: Wed, 28 Oct 2026 23:27:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=A1=E2=91=A1T4=E8=A1=A5(=E5=91=88?= =?UTF-8?q?=E7=8E=B0=E5=B1=82=E7=BB=93=E6=9E=84=E6=94=B6=E6=95=9B=E6=89=B9?= =?UTF-8?q?):=20u14=20ap=5Fbar=5Fview=E8=A1=A5=E5=81=9A=E2=80=94=E2=80=94T?= =?UTF-8?q?2b(525529ad)=E6=8F=90=E4=BA=A4=E4=BF=A1=E6=81=AF=E6=9C=89?= =?UTF-8?q?=E8=AE=B0=E5=AE=9E=E9=99=85=E6=BC=8F=E5=81=9A,=E6=9C=AC?= =?UTF-8?q?=E6=AC=A1=E8=A1=A5=E9=BD=90=E2=80=94=E2=80=94=5Finit=E6=8B=86?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E7=A7=81=E6=9C=89=E6=97=8F=E5=9B=9B=E5=9F=9F?= =?UTF-8?q?(=5Fbuild=5Fap=5Fface=20AP=E8=AE=A1=E9=87=8F+=E5=81=9C=E6=89=8B?= =?UTF-8?q?=E5=9F=9F/=5Fbuild=5Frap=5Fface=20RAP=E8=AF=BB=E6=95=B0?= =?UTF-8?q?=E5=9F=9F[=E8=B4=B4=E6=B6=88=E8=B4=B9=E5=8F=A3]/=5Fbuild=5Frefr?= =?UTF-8?q?esh=5Fconfirm=E7=A0=B4=E5=9D=8F=E6=80=A7=E7=A1=AE=E8=AE=A4?= =?UTF-8?q?=E5=BC=82=E4=BD=8Dchips=E5=9F=9F/=5Fbuild=5Flegend=5Frefresh?= =?UTF-8?q?=E5=9B=BE=E4=BE=8B=E4=B8=8E=E5=BC=83=E5=9B=BE=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E5=9F=9F),=E8=A3=85=E9=85=8D=E5=BA=8F=E9=80=90=E8=A1=8C?= =?UTF-8?q?=E5=8E=9F=E5=BA=8F=E4=BF=9D=E6=8C=81=E9=9B=B6=E5=83=8F=E7=B4=A0?= =?UTF-8?q?=E5=8F=98=E5=8C=96,S7=E6=BA=90=E9=94=9A=E5=8F=A5(FS=5FCAPTION+S?= =?UTF-8?q?TONE=5FDEEP=E8=A1=8C)=E9=80=90=E5=AD=97=E5=9C=A8=E4=BD=8D;=5Fin?= =?UTF-8?q?it=2069=E8=A1=8C=E9=94=AE=E6=B6=88=E5=A4=B1,gdstyle=2017?= =?UTF-8?q?=E2=86=9216=E9=94=AENEW=3D0=E6=81=B6=E5=8C=96=3D0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/presentation/views/ap_bar_view.gd | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/game/presentation/views/ap_bar_view.gd b/game/presentation/views/ap_bar_view.gd index 254d88ce..f80a4d6d 100644 --- a/game/presentation/views/ap_bar_view.gd +++ b/game/presentation/views/ap_bar_view.gd @@ -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