ui
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
ui
<!-- 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/v2nonstrict
music( ) → void
wind( ) → void
night( ) → void
rain( ) → void
roar( ) → void
match( ) → void
lantern( ) → void
kindling( ) → void
crack( ) → void
boom( ) → void
bell( ) → void
stinger( ) → void
stepSnow( ) → void
stepGravel( ) → void
crow( ) → void
whoosh( ) → void
steam( ) → void
clip(key: ?) → void
| arg | type | description |
|---|---|---|
| key | ? |
label(text: ?, style: ?, id: ?) → void
Helpers
| arg | type | description |
|---|---|---|
| text | ? | |
| style | ? | |
| id | ? |
svg(markup: ?, w: ?, h: ?, id: ?, extra: ?) → void
| arg | type | description |
|---|---|---|
| markup | ? | |
| w | ? | |
| h | ? | |
| id | ? | |
| extra | ? |
fmt(n: ?) → void
| arg | type | description |
|---|---|---|
| n | ? |
screenSize( ) → void
weatherLabel( ) → void
blink(dur: ?) → void
| arg | type | description |
|---|---|---|
| dur | ? |
entrance(delay: ?, dy: ?, dur: ?) → void
| arg | type | description |
|---|---|---|
| delay | ? | |
| dy | ? | |
| dur | ? |
emberDots(x0: ?, y0: ?, w: ?, h: ?, n: ?, seed: ?) → void
Title screen
| arg | type | description |
|---|---|---|
| x0 | ? | |
| y0 | ? | |
| w | ? | |
| h | ? | |
| n | ? | |
| seed | ? |
titleTree( ) → void
currentTool( ) → void
HUD
quatRotate(q: ?, v: ?) → void
| arg | type | description |
|---|---|---|
| q | ? | |
| v | ? |
windScreenAngle( ) → void
Wind arrow angle on screen (degrees clockwise from up = straight ahead).
toolSlot(kind: ?, count: ?, selected: ?) → void
| arg | type | description |
|---|---|---|
| kind | ? | |
| count | ? | |
| selected | ? |
hudTree(d: ?) → void
| arg | type | description |
|---|---|---|
| d | ? |
toastTree(title: ?, sub: ?, id: ?) → void
Milestone toasts
| arg | type | description |
|---|---|---|
| title | ? | |
| sub | ? | |
| id | ? |
toast(title: ?, sub: ?) → void
| arg | type | description |
|---|---|---|
| title | ? | |
| sub | ? |
resultsTree(result: ?) → void
| arg | type | description |
|---|---|---|
| result | ? |
spawnSource(name: ?, key: ?, fields: ?) → void
Audio
| arg | type | description |
|---|---|---|
| name | ? | |
| key | ? | |
| fields | ? |
setVol(rec: ?, v: ?) → void
| arg | type | description |
|---|---|---|
| rec | ? | |
| v | ? |
approach(rec: ?, target: ?, dt: ?, rate: ?) → void
| arg | type | description |
|---|---|---|
| rec | ? | |
| target | ? | |
| dt | ? | |
| rate | ? |
oneShot(key: ?, vol: ?, pitch: ?, minGap: ?) → void
| arg | type | description |
|---|---|---|
| key | ? | |
| vol | ? | |
| pitch | ? | |
| minGap | ? |
buildAudio( ) → void
updateAudio(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
show(name: ?, on: ?) → void
Screens: show / hide by phase
| arg | type | description |
|---|---|---|
| name | ? | |
| on | ? |
rebuildTitle(force: ?) → void
| arg | type | description |
|---|---|---|
| force | ? |
buildResults(result: ?) → void
| arg | type | description |
|---|---|---|
| result | ? |
applyPhase(phase: ?) → void
| arg | type | description |
|---|---|---|
| phase | ? |
updateHud( ) → void
has(list: ?, code: ?) → void
Input: confirm on title / results
| arg | type | description |
|---|---|---|
| list | ? | |
| code | ? |
confirmPressed( ) → void
onMilestone(kind: ?, part: ?) → void
| arg | type | description |
|---|---|---|
| kind | ? | |
| part | ? |
onCollapsed(part: ?) → void
| arg | type | description |
|---|---|---|
| part | ? |
onToolUsed(tool: ?) → void
| arg | type | description |
|---|---|---|
| tool | ? |
onPartIgnited(part: ?) → void
Steam hiss when fire takes a damp timber (or anything in the rain), throttled.
| arg | type | description |
|---|---|---|
| part | ? |
nearPath(x: ?, z: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| z | ? |
playerPos( ) → void
updateFootsteps(dt: ?, phase: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? | |
| phase | ? |
updateCrows(dt: ?, phase: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? | |
| phase | ? |
onIgnite(info: ?) → void
| arg | type | description |
|---|---|---|
| info | ? |
onPhase(new: ?, old: ?) → void
| arg | type | description |
|---|---|---|
| new | ? | |
| old | ? |
onResults(result: ?) → void
| arg | type | description |
|---|---|---|
| result | ? |
init(uiRoot: ?, audioRoot: ?) → void
Interface
| arg | type | description |
|---|---|---|
| uiRoot | ? | |
| audioRoot | ? |
update(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
audioReport( ) → void
Read-back for verification: what each looping source is doing right now.
shutdown( ) → void
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.