|
| 1 | +Toolbox Aid |
| 2 | +David Quesenberry |
| 3 | +04/05/2026 |
| 4 | +APPLY_PR_CANVAS_DEBUG_OVERLAY_RENDERER.md |
| 5 | + |
| 6 | +# APPLY PR |
| 7 | +Canvas Debug Overlay Renderer |
| 8 | + |
| 9 | +## Objective |
| 10 | +Apply the canvas HUD implementation produced from the build PR and lock the runtime behavior into one sample with minimal, isolated changes. |
| 11 | + |
| 12 | +## Apply Scope |
| 13 | +- Add `tools/dev/canvasDebugHudRenderer.js` |
| 14 | +- Update `tools/dev/devConsoleIntegration.js` |
| 15 | +- Update one sample entry file only |
| 16 | +- Keep draw order world-first, HUD-last |
| 17 | +- Preserve current combo keys: |
| 18 | + - Shift + ` => toggle console |
| 19 | + - Ctrl + Shift + ` => toggle overlay |
| 20 | + - Ctrl + Shift + R => reload |
| 21 | + - Ctrl + Shift + ] => next panel |
| 22 | + - Ctrl + Shift + [ => previous panel |
| 23 | + |
| 24 | +## Apply Requirements |
| 25 | +- No engine core file changes |
| 26 | +- No F-key bindings |
| 27 | +- No duplicate listeners or duplicate runtime instances |
| 28 | +- Canvas state must use save()/restore() |
| 29 | +- HUD must tolerate missing diagnostics |
| 30 | +- Commit comment file must have no header |
| 31 | + |
| 32 | +## Runtime Expectations |
| 33 | +- HUD appears on-canvas when overlay is enabled |
| 34 | +- HUD updates every frame |
| 35 | +- HUD renders after gameplay content |
| 36 | +- Panel switching is visible |
| 37 | +- Reload combo does not trigger browser refresh |
| 38 | + |
| 39 | +## Validation |
| 40 | +- node --check tools/dev/canvasDebugHudRenderer.js |
| 41 | +- node --check tools/dev/devConsoleIntegration.js |
| 42 | +- node --check <selected sample file> |
| 43 | +- Manual browser run |
| 44 | +- Verify overlay visibility toggle |
| 45 | +- Verify panel navigation |
| 46 | +- Verify no console/runtime duplication after repeated toggles |
| 47 | + |
| 48 | +## Deliverable |
| 49 | +Codex applies the implementation and packages: |
| 50 | +<project folder>/tmp/APPLY_PR_CANVAS_DEBUG_OVERLAY_RENDERER_delta.zip |
0 commit comments