From 463c5b178cc97d15d1107751e8255116f16b6f64 Mon Sep 17 00:00:00 2001 From: DKChan <524912269@qq.com> Date: Tue, 6 Oct 2026 07:23:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20T6/T7=20=E5=AE=9E=E6=B5=8B=E4=B8=A4?= =?UTF-8?q?=E4=BF=AE=E2=80=94=E2=80=94bcard=20=E8=A1=8C=E5=AE=B9=E5=99=A8?= =?UTF-8?q?=E7=BA=B5=E5=90=91=E6=8B=89=E4=BC=B8=E4=BF=AE=EF=BC=88SHRINK=5F?= =?UTF-8?q?CENTER=20=E6=81=92=20352=20=E9=AB=98=E5=B1=85=E4=B8=AD=EF=BC=8C?= =?UTF-8?q?HBox=20fill=20=E6=8B=89=E5=88=B0=20~536=20=E5=AE=9E=E6=B5=8B?= =?UTF-8?q?=EF=BC=89+=E7=BB=93=E7=AE=97=E8=B4=A6=E8=A1=8C=E5=85=A8?= =?UTF-8?q?=E8=A7=92=E5=86=92=E5=8F=B7=E4=B8=8D=E5=85=A5=E5=80=BC=E5=88=97?= =?UTF-8?q?=EF=BC=88=E5=AE=9E=E6=9C=BA=E3=80=8C=EF=BC=9A=E6=94=BB=E5=87=BB?= =?UTF-8?q?=20+1=E3=80=8D=E7=BC=A9=E8=BF=9B=E4=BF=AE=EF=BC=89=EF=BC=9B?= =?UTF-8?q?=E5=AE=A1=E8=AE=A1=E6=8E=A2=E9=92=88=E5=95=86=E5=BA=97=E5=B1=8F?= =?UTF-8?q?=E6=94=B9=E6=8A=95=E5=96=82=20pool=20=E8=B4=A7=E6=9E=B6?= =?UTF-8?q?=E9=9D=A2=EF=BC=88=E7=8E=A9=E5=AE=B6=E6=AD=A3=E4=B8=BB=E5=BD=A2?= =?UTF-8?q?=E6=80=81=3Ddemo=20#v-shop=20=E5=AF=B9=E6=AF=94=E5=9F=BA?= =?UTF-8?q?=E7=BA=BF=EF=BC=89+=E7=88=AC=E4=BB=B7=E8=A1=8C=E6=8A=95?= =?UTF-8?q?=E5=96=82=E2=80=94=E2=80=94=E5=86=92=E7=83=9F782/0+probe=5Fgate?= =?UTF-8?q?=20--click=E5=85=A8=E7=BB=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/presentation/views/battle_end_overlay.gd | 11 +++++++---- game/presentation/views/ui_kit.gd | 1 + game/smoke/ui_audit_probe.gd | 11 ++++++----- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/game/presentation/views/battle_end_overlay.gd b/game/presentation/views/battle_end_overlay.gd index 978631ef..71a2b6ff 100644 --- a/game/presentation/views/battle_end_overlay.gd +++ b/game/presentation/views/battle_end_overlay.gd @@ -188,16 +188,19 @@ func _ledger_value(size: int, col: Color, bold: bool) -> Label: return UiKit.label("", size, bold, col) -# 拆名/值(组合根传入整串):gp_shape=固定名「战利品 GP」值取余串;其余行按「:」或「 · 」切; -# 无分隔符=整串入值列、名空 +# 拆名/值(组合根传入整串):gp_shape=固定名「战利品 GP」值取余串;其余行按「:」或「 · 」切 +#(全角冒号不入值列——T7 实机「:攻击 +1」缩进 Corrections);无分隔符=整串入值列、名空 func _set_ledger_row(name_l: Label, val_l: Label, s: String, gp_shape := false) -> void: if gp_shape and s.begins_with("战利品 GP"): name_l.text = "战利品 GP" val_l.text = s.substr(6).strip_edges() return var sep := s.find(":") - if sep < 0: - sep = s.find(" · ") + if sep >= 0: + name_l.text = s.substr(0, sep) + val_l.text = s.substr(sep + 1).strip_edges() + return + sep = s.find(" · ") if sep >= 0: name_l.text = s.substr(0, sep) val_l.text = s.substr(sep).strip_edges() diff --git a/game/presentation/views/ui_kit.gd b/game/presentation/views/ui_kit.gd index bf5558db..97c9b652 100644 --- a/game/presentation/views/ui_kit.gd +++ b/game/presentation/views/ui_kit.gd @@ -610,6 +610,7 @@ class BCard: _sb_sel = UiKit.panel_flat(PANEL_DATA, Color8(138, 90, 52), RADIUS_OBJECT, 2, Vector4(12, 10, 12, 10)) # 选中底=数据板单点(P7 乙后同值) add_theme_stylebox_override("panel", _sb_normal) custom_minimum_size = Vector2(232, 352) # D1(UI 设计对齐批 T6 2026-10-06——demo .bcard 232×352;原 216×300) + size_flags_vertical = Control.SIZE_SHRINK_CENTER # 行容器不纵向拉伸(卡恒 352 高居中——T7 实测 HBox fill 拉到 ~536 修) var box := VBoxContainer.new() box.add_theme_constant_override("separation", 8) add_child(box) diff --git a/game/smoke/ui_audit_probe.gd b/game/smoke/ui_audit_probe.gd index 9e5f538c..699f55c3 100644 --- a/game/smoke/ui_audit_probe.gd +++ b/game/smoke/ui_audit_probe.gd @@ -94,12 +94,13 @@ func _ready() -> void: await _snap("6_bonus") main.curio_overlay.visible = false await _settle() - # 10 商店(买前态) - main.shop_overlay.open_shop([ - {"product_id": "attack", "display_name": "攻击强化", "attr": "atk", "flat_value": 1, "price": 12, "purchased": 0}, - {"product_id": "max_hp", "display_name": "生命强化", "attr": "hp", "flat_value": 3, "price": 12, "purchased": 0}, - {"product_id": "armor", "display_name": "护甲强化", "attr": "armor", "flat_value": 1, "price": 15, "purchased": 0}, + # 10 商店(买前态——pool 货架面=玩家正主形态,demo #v-shop 对比基线;T6 全屏页) + main.shop_overlay.open_shelf([ + {"kind_id": "attack", "display_name": "攻击强化", "value": 1, "price": 12}, + {"kind_id": "max_hp", "display_name": "生命强化", "value": 3, "price": 12}, + {"kind_id": "armor", "display_name": "护甲片", "value": 1, "price": 15}, ], 27) + main.shop_overlay.set_visit_info(0, 1.8) # 爬价规则行(T6——presenter 同款投喂) await _settle() await _snap("7_shop") main.shop_overlay.visible = false