feat: SK backlog from test through 2026.11.22.48 (Trade Shop, Oracle, quests, loot, nav)

Squash of test/main-merge-2026-10-25 onto aelrynth main 2026.11.19.1 for the standing sk PR. Includes Trade Shop, Oracle wiki/ILT tracker, quest runs, loot checklist, RynthNav, VTank import. HandWrittenVersion remains 0.5.0-legacy-ui. See Changelog/2026-11-22-sk-backlog-test-merge.md.
This commit is contained in:
BlankenshipG 2026-11-23 00:08:38 -05:00
commit dc08e1abba
521 changed files with 47247 additions and 795 deletions

View file

@ -58,6 +58,8 @@ internal static class UiFormat
public const ushort EvInt = 3;
public const ushort EvText = 5;
public const ushort EvOpen = 6;
/// <summary>The window's geometry changed: f32x8 pos, size, content avail, cursor (logical units), u32 flags.</summary>
public const ushort EvGeometry = 7;
public const ushort EvVisibility = 8;
public const ushort EvError = 10;

View file

@ -83,6 +83,17 @@ internal sealed class UiHost
case UiFormat.EvOpen when w != null && p.Length >= 1:
w.Dispatch(key, new UiEvent(type, b: p[0] != 0));
break;
case UiFormat.EvGeometry when w != null && p.Length >= 24:
{
// Only the width matters (column layouts); a pass when it moved by a pixel or more.
float avail = BinaryPrimitives.ReadSingleLittleEndian(p[16..]);
if (float.IsFinite(avail) && avail >= 0f && Math.Abs(avail - w.ContentWidth) >= 1f)
{
w.ContentWidth = avail;
w.NeedsPass = true;
}
break;
}
case UiFormat.EvVisibility when w != null && p.Length >= 1:
// The player closed it (X) or opened it (bar menu / command): theirs wins.
w.Visible = p[0] != 0;

View file

@ -49,6 +49,13 @@ internal sealed class UiWindow
/// <summary>A pass is wanted at the next chance (input arrived, it was just shown, data changed).</summary>
public bool NeedsPass = true;
/// <summary>
/// The body's usable width (logical units at UI scale 1) from the engine's last Geometry event;
/// 0 until one arrives (or on an engine that sends none). Layouts that follow the window's
/// width (the Quests list's columns) read it.
/// </summary>
public float ContentWidth;
public long NextPassMs;
// The list as recorded by the last pass, and what the engine last accepted.