fix: harden responsive HUD validation

This commit is contained in:
goose
2026-10-08 23:13:51 -04:00
parent f6e93159c0
commit c779c796ec
5 changed files with 209 additions and 2 deletions
+20
View File
@@ -0,0 +1,20 @@
# PR-4 — Responsive HUD validation hardening
## Scope
Final-review fixes for responsive HUD validation and non-16:9 presentation:
- Expanded the real 1280×720 layout test to require all major live HUD regions—rails, command bar, journal, prompt/help, gauges, quick slots, and minimap—to remain enclosed, readable, and outside the framed play area.
- Added 1024×768 and 2560×1080 unit coverage for a centered 16:9 artboard, explicit letterbox/pillarbox bands, opaque dark-fantasy outside margins, and shell containment.
- Added runtime `Artboard`, letterbox, and pillarbox nodes in `Game.tscn`; `hud.gd` sizes them from one centered reference artboard and synchronizes the minimap after rail relayout.
- Replaced the absolute UI-kit source path in `ASSET_REGISTRY.md` with the portable pack identifier `DungeonCrawlerWorld_UI_Assets/README.md`.
- Existing scene paths and gameplay behavior remain unchanged. The theme was not broadened to unrelated nodes because the current shell already owns the HUD theme and a CanvasLayer-wide theme would be unsafe for instantiated modal panels.
## Verification
- Targeted HUD layout: **10/10 tests passed**, 269 assertions.
- Full `scripts/verify.sh`: unit **223/223**, integration **19/19**, E2E **78/78**, 34,650 unit assertions plus 1,696,729 integration assertions; parity matrix **43 rows, 0 invalid**.
- Real visual runner passed 1920×1080, exit, and 1280×720 captures. Compact capture inspected at 1280×720; opaque dark-fantasy margins and contained controls are present.
- Capture measurements: reference `visible=82944`, `explored=18965`, `unknown=890112`; exit `visible=10368`, `explored=18965`, `unknown=976128`; compact `visible=36926`, `explored=8227`, `unknown=393984`.
Godot/GUT emitted only existing invalid-UID, cleanup/resource, and float/int comparison warnings. No push was performed.