fix: rebuild HUD composition around real play viewport
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
# HUD composition GREEN report
|
||||
|
||||
## Delivered
|
||||
|
||||
- Rebuilt the responsive 1920×1080 HUD artboard around the supplied mockup proportions:
|
||||
- 16px shell margin; top bar at `y=12`, 76px tall;
|
||||
- left/right rails at 460px (23.96% each), central `PlayAreaFrame` at 924px (48.13%) and exactly centred;
|
||||
- body rails from `y=98` to `940`; command bar at `y=956`, 108px tall.
|
||||
- Added opaque `PlayAreaMaskTop`, `PlayAreaMaskLeft`, `PlayAreaMaskRight`, and `PlayAreaMaskBottom`. They exactly partition the artboard outside the central frame and precede the chrome in the scene draw order.
|
||||
- Added visible, dark-fantasy gold/charcoal section panels and titles:
|
||||
`PERSONNAGE`, `OBJECTIFS`, `ÉTAT`, `JOURNAL`, `CARTE`.
|
||||
- Retained legacy HUD node paths and moved their live visual rectangles into appropriate named sections. In normal state the journal and minimap have separate vertical sections; log expansion consumes only the map area by design.
|
||||
- Placed minimap strictly in `MapSection`; its caption is now `CARTE — TAB`.
|
||||
- Replaced the remaining local blue panel/gauge treatments with charcoal-and-gold styles.
|
||||
- Decoupled the architecture test from `Camera2D.get_viewport()` dimensions. The correct observable contract is the four opaque masks plus a PlayAreaFrame centred on the camera/viewport focal point; a `Camera2D` cannot own a separate Godot viewport.
|
||||
|
||||
## Verification
|
||||
|
||||
- Targeted HUD/display GUT: **21/21 passed** (492 assertions).
|
||||
- Targeted visual-readability E2E: **2/2 passed** (78 assertions).
|
||||
- Full unit suite: **228/228 passed** (34,775 assertions).
|
||||
- Full E2E suite: **79/79 passed** (723 assertions).
|
||||
- `git diff --check`: passed.
|
||||
|
||||
## Visual review handoff (not an acceptance claim)
|
||||
|
||||
`./scripts/run-visual-check.sh` was run and produced captures at:
|
||||
|
||||
- `artifacts/visual-check.png`
|
||||
- `artifacts/visual-check-exit.png`
|
||||
- `artifacts/visual-check-compact.png`
|
||||
|
||||
The existing legacy pixel validator failed its exit-capture explored-terrain measurement because it measures the former broad centre region rather than the newly masked PlayAreaFrame. The captures exist for parent visual review; this report deliberately makes **no claim that the visual result is acceptable**.
|
||||
Reference in New Issue
Block a user