refactor(ui): extract retained runtime composition

This commit is contained in:
Erik 2026-07-11 00:03:45 +02:00
parent 5d9e98c118
commit ff06aa3107
7 changed files with 727 additions and 605 deletions

View file

@ -111,6 +111,13 @@ reverse ownership order. `UiHost` removes Silk device subscriptions first, then
disposes the manager/controllers, then its GL renderer. `GameWindow.OnClosing`
tears this runtime down before session and game-state sources.
`RetailUiRuntime` is the production composition boundary. `GameWindow` creates
the GL/DAT resolvers and supplies focused state/action binding records in one
mount call; the runtime owns all LayoutDesc imports, controller construction,
window registration, plugin mounts, cursor feedback, layout persistence, and the
retained tick/draw/restore/dispose paths. Panel-specific construction must not
move back into `GameWindow.OnLoad`.
---
## Project Structure (current + target)