多语言布局:自动缩字、按语言放宽钱包表与手册列表、缩短过长标签

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ZHU MINCHAOandClaude Sonnet 5.5 committed 2026-11-04 14:55:11 +08:00
1 parent f5de68aea9
commit fa8f416545
11 files changed
+70 -23

No files matched your search

+4 -2
View File
@@ -11,7 +11,9 @@ namespace Decentralized
{
public const string Id = "pd_handbook";
private const float WinW = 828f, WinH = 680f, ScreenW = 768f, ScreenH = 578f, Bezel = 6f;
private const float ListW = 190f, TextW = 540f;
private static float ListW => L.Wide ? 276f : 190f;
private static float RowW => L.Wide ? ListW - 52f : ListW - 12f;
private static float TextW => L.Wide ? 456f : 540f;
private static int _chapter;
private static readonly List<GameObject> _picked = new List<GameObject>();
@@ -61,7 +63,7 @@ namespace Decentralized
for (int i = 0; i < chapters.Length; i++)
{
int k = i;
PledgerSkin.TableRow(b, ListW - 12f, 30f, new[] { ListW - 12f }, new[] { TextAnchor.MiddleLeft },
PledgerSkin.TableRow(b, RowW, 30f, new[] { RowW }, new[] { TextAnchor.MiddleLeft },
new[] { Title(chapters[i]) }, i == _chapter, () => { _chapter = k; Open(); }, _rows, _clear);
}
b.End();