uiroot
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
uiroot
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->TODO: describe this module.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2game.ui.uiroot — one call wires every non-battle, non-dialogue screen. require("game.ui.uiroot").init() -- from the scene entrypoint's onLoad require("game.ui.uiroot").tick(dt, canAct) -- optional, from update(dt): play time init(): * Areas.setFader(Fader.fn) fades for area travel * AreaCard.attach() banner on Events "areaEntered" * Hud.attach() + Hud shown gold / area plate + toasts * activates game.input.menutoggle Esc / Tab / pad Start+North / touch "Menu" -> Menu.toggle() when the field is free (no battle, dialogue, title, travel) * Settings.load() + Settings.apply() persisted options, tilt-shift strength Safe to call more than once.
activateToggle( ) → void
init( ) → void
tick(dt: number) → void
Count play time while the player is in the field or a menu (not on the title).
| arg | type | description |
|---|---|---|
| dt | number |
shutdown( ) → void
Tear down (scene unload).
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.