acdream/tests/AcDream.App.Tests/UI/Layout/fixtures
Erik df9c7a35eb feat(ui): Campaign OP slice OP2 — tab control, template ListBox, UIOption widget mappings
Ships the two new widget primitives the retail Options panel needs plus the
four remaining UIOption_* factory mappings, so every tab page (OP3-OP6) has
somewhere to mount.

- ElementReader/ElementInfo gain three new dat-property readers, following
  the existing effective-state-resolution pattern (never a per-state
  first-wins scan, per the round-5 N1 lesson): the Type-8 tab table
  (property 0x2E -> TabTable), a ListBox's row-template list (property
  0x64 -> TemplateList), and scrollbar linkage (property 0x72 ->
  ScrollbarElementId). LayoutImporter gains one hook
  (IUiChildrenAttachedListener) so a widget can resolve cross-references
  its own dat properties name by id once its subtree actually exists.

- UiTabControl (Type 8): switches exactly one page-slot child visible,
  syncs each tab button's Open/Closed state via the existing
  RetailTabBinding helper, and honors the authored default tab on mount.

- UiTemplateListBox (Type 5 with an authored template list): wraps a
  UiScrollablePanel viewport (sealed, so composition not inheritance) and
  ports AddItemFromTemplateList(index) — the resolver seam a page
  controller wires with real DAT access via the SAME
  LayoutImporter.ImportInfos(dats, layoutId, elementId) overload
  RetailDialogFactory already uses for its catalog LayoutDesc.

- DatWidgetFactory maps the four remaining UIOption_* widgets, each
  verified against the regenerated options_2100002B.json fixture before
  writing any code: 0x10000037 (Slider) is structurally an ordinary
  horizontal UIElement_Scrollbar, so it reuses BuildScrollbar directly;
  0x10000038 (Menu) is structurally identical to the vendor category
  dropdown UiMenu already models, so it reuses `new UiMenu()` like the
  Type-6 case; 0x10000036 (CheckboxSlider) composes an existing
  UIOption_Checkbox child + UIOption_Slider child via the new
  UiOptionToggleSlider wrapper; 0x10000044 (CheckboxBitfield64) authors
  zero children in the dat (every row is added at runtime via retail's own
  AddChild(lowMask, highMask, label, tooltip) call shape), so it's a new
  UiCheckboxBitfield64 composing UiButton per row. No new drawing code
  anywhere in this set.

- Five new committed fixtures (options_2100002B/2100002A/21000028/
  2100005C/21000029) plus 25 new conformance tests pinning the tab table
  (4 entries, Gameplay default), all three template arrays, scrollbar
  linkage, every new widget-type mapping, and a UiTabControl behavioral
  test (switch -> exactly one page visible, click-through the tab
  button). The Character ListBox's authored 6-header/49-toggle shape
  (lane B section counts) is proven reachable end-to-end through
  AddItemFromTemplateList against the committed fixture.

- Regenerating fixtures also touched 27 PRE-EXISTING, unrelated fixtures
  (an Outline/OutlineColor field pair added by an earlier commit,
  bcc34ee3, that predates when those fixtures were last regenerated).
  Per the slice contract, that drift was NOT committed — reverted back to
  HEAD, only the five new Options-panel fixtures are new files here.

- Filed TS-72: UiCheckboxBitfield64's click-toggle bit math (AND/OR
  set/clear semantics) is a documented approximation — the decompiled
  excerpt this campaign pulled covers UIOption_CheckboxBitfield64::Apply's
  WRITE side, not its own click-handler's bit math. Flagged for OP5 (the
  Chat tab controller, the first consumer that reaches the wire) to
  verify against the real decomp before any live transaction depends on
  it; nothing user-reachable can observe this yet.

Full Release suite: 12,770 passed / 4 skipped / 0 failed (was 12,745/4/0
post-OP1 — 25 net new tests, zero regressions).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-11 00:06:43 +02:00
..
character_2100002E.json feat: port retail magic lifecycle and retained spell UI 2026-07-15 10:55:22 +02:00
character_info_2100006E_10000183.json fix(ui): complete retail indicator detail panels 2026-07-17 11:36:43 +02:00
chat_2100006f.json feat(chat): retail text style — two-plane glyph outlines, authored SpewBox/chat styles 2026-08-10 19:28:34 +02:00
chat_floaty_2100005b.json fix(chat): CH6a/b rework — grip media, retail window-id model, floaty fixture 2026-08-10 13:09:32 +02:00
combat_21000073.json feat: port retail magic lifecycle and retained spell UI 2026-07-15 10:55:22 +02:00
component_category_21000033_10000466.json feat(ui): port retail component book rows 2026-07-15 17:38:24 +02:00
component_row_21000033_10000467.json feat(ui): port retail component book rows 2026-07-15 17:38:24 +02:00
dialogs_2100003C.json feat: port retail magic lifecycle and retained spell UI 2026-07-15 10:55:22 +02:00
effects_negative_2100001B.json feat: port retail magic lifecycle and retained spell UI 2026-07-15 10:55:22 +02:00
effects_positive_2100001B.json feat: port retail magic lifecycle and retained spell UI 2026-07-15 10:55:22 +02:00
effects_row_2100001B_10000128.json fix(ui): complete retail indicator detail panels 2026-07-17 11:36:43 +02:00
examine_2100006B_100005F2.json feat(ui): port retail appraisal panel 2026-07-23 11:34:08 +02:00
examine_component_2100006B_1000032E.json fix(ui): keep spell components in authored foreground 2026-07-24 08:08:29 +02:00
examine_row_2100006B_10000166.json feat(ui): port retail creature appraisal presentation 2026-07-23 12:55:24 +02:00
indicators_21000071.json feat: port retail magic lifecycle and retained spell UI 2026-07-15 10:55:22 +02:00
inventory_21000023.json feat: port retail magic lifecycle and retained spell UI 2026-07-15 10:55:22 +02:00
link_status_2100001D.json feat(ui): share indicator detail panels 2026-07-17 10:27:41 +02:00
mini_game_2100001E.json feat(ui): share indicator detail panels 2026-07-17 10:27:41 +02:00
options_2100002B.json feat(ui): Campaign OP slice OP2 — tab control, template ListBox, UIOption widget mappings 2026-08-11 00:06:43 +02:00
options_character_21000028.json feat(ui): Campaign OP slice OP2 — tab control, template ListBox, UIOption widget mappings 2026-08-11 00:06:43 +02:00
options_chat_2100005C.json feat(ui): Campaign OP slice OP2 — tab control, template ListBox, UIOption widget mappings 2026-08-11 00:06:43 +02:00
options_config_21000029.json feat(ui): Campaign OP slice OP2 — tab control, template ListBox, UIOption widget mappings 2026-08-11 00:06:43 +02:00
options_gameplay_2100002A.json feat(ui): Campaign OP slice OP2 — tab control, template ListBox, UIOption widget mappings 2026-08-11 00:06:43 +02:00
paperdoll_21000024.json feat: port retail magic lifecycle and retained spell UI 2026-07-15 10:55:22 +02:00
powerbar_21000072.json feat(ui): port retail jump power bar 2026-07-13 10:22:12 +02:00
radar_21000074.json feat(ui): port retained widget foundations 2026-07-10 17:55:41 +02:00
smartbox_fps_2100000F.json fix #213: complete suicide and framerate presentation 2026-07-13 15:50:47 +02:00
spellbook_21000034.json fix(ui): restore retail spell tabs and spellbook 2026-07-15 15:54:11 +02:00
toolbar_21000016.json feat(ui): port retained widget foundations 2026-07-10 17:55:41 +02:00
vendor_21000012_100000B7.json feat(ui): Slice 5.4 — the authored vendor browse panel (LayoutDesc 0x21000012) 2026-08-07 17:00:21 +02:00
vitae_21000020.json feat(ui): share indicator detail panels 2026-07-17 10:27:41 +02:00
vitals_2100006C.json feat(ui): port retained widget foundations 2026-07-10 17:55:41 +02:00