fix: T6/T7 实测两修——bcard 行容器纵向拉伸修(SHRINK_CENTER 恒 352 高居中,HBox fill 拉到 ~536 实测)+结算账行全角冒号不入值列(实机「:攻击 +1」缩进修);审计探针商店屏改投喂 pool 货架面(玩家正主形态=demo #v-shop 对比基线)+爬价行投喂——冒烟782/0+probe_gate --click全绿
This commit is contained in:
1 parent
5e2fa8bb87
commit
463c5b178c
3 files changed
+14
-9
No files matched your search
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user