feat(shop): 商店「属性」区独立子面板 UI + 4 语言 i18n 键

主商店面板已无空间容纳四行属性(面板 y=200~540,既有控件已占到 y≈522,仅剩约 18px),
经确认后改为独立子面板方案(参照 _setup_settings_ui 既有模式),不改动主面板任何既有控件坐标。

按 get_sellable_attrs() 动态生成行,加可售属性无需改 UI 代码。
禁用态显示具体原因(金币不足/已达上限)而非只灰掉按钮。
can_buy_attribute 注释补 i18n 债务说明(禁用原因暂未 tr(),见路线图 E7-③)。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-03 11:46:05 +08:00
co-authored by Claude Opus 5
parent cc57980e63
commit ad98f916e9
6 changed files with 145 additions and 0 deletions
+15
View File
@@ -51,6 +51,21 @@ msgstr "🎒 Inventory"
msgid "SHOP_SOLD"
msgstr "(Sold)"
msgid "SHOP_ATTR_BTN"
msgstr "📊 Attributes"
msgid "SHOP_ATTR_TITLE"
msgstr "📊 Buy Attributes"
msgid "SHOP_ATTR_ROW"
msgstr "%s Current %s Bought %d×"
msgid "SHOP_ATTR_BUY"
msgstr "Buy %dG"
msgid "SHOP_ATTR_CLOSE"
msgstr "Close"
msgid "INV_TITLE"
msgstr "🎒 Inventory — [%s] %d slots (%s)"
+15
View File
@@ -51,6 +51,21 @@ msgstr "🎒 バッグ"
msgid "SHOP_SOLD"
msgstr "(売却済)"
msgid "SHOP_ATTR_BTN"
msgstr "📊 属性"
msgid "SHOP_ATTR_TITLE"
msgstr "📊 属性購入"
msgid "SHOP_ATTR_ROW"
msgstr "%s 現在 %s 購入回数 %d"
msgid "SHOP_ATTR_BUY"
msgstr "購入 %dG"
msgid "SHOP_ATTR_CLOSE"
msgstr "閉じる"
msgid "INV_TITLE"
msgstr "🎒 バッグ — [%s] %d スロット (%s)"
+15
View File
@@ -51,6 +51,21 @@ msgstr "🎒 背包"
msgid "SHOP_SOLD"
msgstr "(已售出)"
msgid "SHOP_ATTR_BTN"
msgstr "📊 属性"
msgid "SHOP_ATTR_TITLE"
msgstr "📊 属性购买"
msgid "SHOP_ATTR_ROW"
msgstr "%s 当前 %s 已购 %d 次"
msgid "SHOP_ATTR_BUY"
msgstr "购买 %dG"
msgid "SHOP_ATTR_CLOSE"
msgstr "关闭"
msgid "INV_TITLE"
msgstr "🎒 背包 — [%s] %d 槽 (%s)"
+15
View File
@@ -51,6 +51,21 @@ msgstr "🎒 背包"
msgid "SHOP_SOLD"
msgstr "(已售出)"
msgid "SHOP_ATTR_BTN"
msgstr "📊 屬性"
msgid "SHOP_ATTR_TITLE"
msgstr "📊 屬性購買"
msgid "SHOP_ATTR_ROW"
msgstr "%s 目前 %s 已購 %d 次"
msgid "SHOP_ATTR_BUY"
msgstr "購買 %dG"
msgid "SHOP_ATTR_CLOSE"
msgstr "關閉"
msgid "INV_TITLE"
msgstr "🎒 背包 — [%s] %d 槽 (%s)"