feat(quest): QT5/QT6 — the Journal panel, and the button that was already there

The quest log is on screen. Rows come from the live tracker joined to the
authored catalog, the Status column runs QT4's port of FillProgressString, and
the detail pane shows contact, locations, description and the other timer.

Two things measured rather than assumed, each now pinned by an installed-DAT
test rather than left to the commit message:

The tab pairing is read from the authored 0x2E table, not inferred from
x-order — the FA campaign had to correct exactly that mistake, and Contracts
turns out to be the authored DEFAULT tab (0x32 = True), so opening on the
wrong one would have looked like an empty panel.

The open path needed no keybind at all. Toolbar button 0x1000055A authors
0x10000029 = 0x19 and has been sitting in ToolbarController.PanelButtonIds
since the toolbar was ported — it just had no panel behind it, so clicking it
did nothing. Registering slot 25 finished a wiring that was already
three-quarters present.

The list rebuild is revision-gated while the repeat countdown is not: nothing
on the wire changes as a cooldown runs down, so a rebuild-gated timer would
freeze on screen, and a per-frame rebuild would reset the player's scroll under
them. Both directions have a test.

Deliberately inert: the Abandon button (retail's abandon path is a
contract-registry command this campaign did not port — authored and visible,
but wiring a no-op handler would look responsive and lie), and the Journal
notes and Page List tabs, which are their own feature.

Campaign QT slices 5 and 6 of 6 — code-complete, connected gate owed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Erik 2026-08-21 15:12:05 +02:00
parent fac2dc7248
commit ec6eeb120d
12 changed files with 1109 additions and 5 deletions

View file

@ -37,7 +37,17 @@ public sealed record ContractEntry(
string QuestflagFinished,
string QuestflagProgress,
string QuestflagTimer,
string QuestflagRepeatTime)
string QuestflagRepeatTime,
/// <summary>
/// Landcell of the NPC who offers the contract. The panel's "Contact
/// Location" row shows this as coordinates, or "Indoors" when the cell has
/// no outdoor coordinates
/// (<c>LandDefs::gid_to_lcoord</c> failing, <c>@0x0049937F</c>).
/// </summary>
uint LocationNpcStartCell = 0u,
uint LocationNpcEndCell = 0u,
/// <summary>Landcell of the quest area — the "Quest Location" row.</summary>
uint LocationQuestAreaCell = 0u)
{
public static readonly ContractEntry Unknown = new(
0u, 0u,