fix(studio): Character window — larger row text + tighter attribute rows
- RowHeight reduced 44→30px to pack the 9 rows tighter, matching retail's denser list - Attribute row name/value text now uses Font 0x40000001 (MaxCharHeight=18px) instead of the default 0x40000000 (16px); both fonts are in client_portal.dat (confirmed 2026-06-26) - RenderStack gains LargeDatFont field; RenderBootstrap.Create loads both fonts - FixtureProvider passes LargeDatFont as rowDatFont to CharacterStatController.Bind - CharacterStatController.Bind gains rowDatFont? parameter (falls back to datFont); passed to BuildAttributeRows so row UiText elements use the larger font - Full solution tests green (681/683 App + 1579/1581 Core + 343 Net + 425 UI) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
405b0d5077
commit
a236dc33ac
3 changed files with 22 additions and 4 deletions
|
|
@ -128,7 +128,10 @@ public static class CharacterStatController
|
|||
private static readonly Vector4 HighlightBg = new(1f, 0.75f, 0.2f, 0.25f);
|
||||
|
||||
// ── Row layout constants ─────────────────────────────────────────────────
|
||||
private const float RowHeight = 44f;
|
||||
// RowHeight reduced from 44 to 30px to match retail's tighter attribute list.
|
||||
// The larger row font (0x40000001, MaxCharHeight=18) fits in 30px with 6px total vertical
|
||||
// padding (3px above/below). Retail spec (2026-06-26 ref): "rows tighter, text ≈ icon height".
|
||||
private const float RowHeight = 30f;
|
||||
private const float IconSize = 24f;
|
||||
private const float RowPadX = 4f;
|
||||
private const float IconGap = 6f;
|
||||
|
|
@ -172,8 +175,12 @@ public static class CharacterStatController
|
|||
ImportedLayout layout,
|
||||
Func<CharacterSheet> data,
|
||||
UiDatFont? datFont = null,
|
||||
UiDatFont? rowDatFont = null,
|
||||
Func<uint, (uint handle, int w, int h)>? spriteResolve = null)
|
||||
{
|
||||
// rowDatFont: larger font for attribute row name/value text (18px vs 16px default).
|
||||
// Falls back to datFont when null (tests, or dat missing).
|
||||
rowDatFont ??= datFont;
|
||||
// Name: retail "Horan" is WHITE, not gold. Heritage and PK status are also white.
|
||||
Label(layout, NameId, datFont, Vector4.One, () => data().Name);
|
||||
Label(layout, HeritageId, datFont, Body, () => data().Heritage ?? data().Race ?? string.Empty);
|
||||
|
|
@ -348,7 +355,7 @@ public static class CharacterStatController
|
|||
|
||||
if (layout.FindElement(ListBoxId) is { } list)
|
||||
{
|
||||
rowPanels = BuildAttributeRows(list, datFont, spriteResolve, data, sel,
|
||||
rowPanels = BuildAttributeRows(list, rowDatFont, spriteResolve, data, sel,
|
||||
allRaise1, allRaise10);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue