hud
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
hud
<!-- 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/v2CHAIRSHIFT GP — what the driver sees.
merge(base: ?, extra: ?) → void
| arg | type | description |
|---|---|---|
| base | ? | |
| extra | ? |
label(text: ?, style: ?) → void
| arg | type | description |
|---|---|---|
| text | ? | |
| style | ? |
cap(text: ?, size: ?, color: ?, extra: ?) → void
| arg | type | description |
|---|---|---|
| text | ? | |
| size | ? | |
| color | ? | |
| extra | ? |
num(text: ?, size: ?, color: ?, extra: ?) → void
| arg | type | description |
|---|---|---|
| text | ? | |
| size | ? | |
| color | ? | |
| extra | ? |
svg(str: ?, style: ?) → void
| arg | type | description |
|---|---|---|
| str | ? | |
| style | ? |
box(children: ?, style: ?) → void
| arg | type | description |
|---|---|---|
| children | ? | |
| style | ? |
row(children: ?, style: ?) → void
| arg | type | description |
|---|---|---|
| children | ? | |
| style | ? |
spacer( ) → void
card(children: ?, extra: ?) → void
A framed HUD card: dark glass, hairline edge, soft lift.
| arg | type | description |
|---|---|---|
| children | ? | |
| extra | ? |
clamp01(v: ?) → void
| arg | type | description |
|---|---|---|
| v | ? |
pct(v: ?) → void
| arg | type | description |
|---|---|---|
| v | ? |
speedArc(kmh: ?) → void
| arg | type | description |
|---|---|---|
| kmh | ? |
speedCard(kmh: ?) → void
| arg | type | description |
|---|---|---|
| kmh | ? |
driftMeter(charge: ?, drifting: ?) → void
The drift charge. Three segments across the tier thresholds — this is the thing the player steers by, so it is the widest element on screen and it changes colour as it climbs.
| arg | type | description |
|---|---|---|
| charge | ? | |
| drifting | ? |
boostMeter(boostSec: ?) → void
| arg | type | description |
|---|---|---|
| boostSec | ? |
missileBay(me: ?) → void
Missile bay. A chevron per held round; the bay names its target when the player is carrying something to fire.
| arg | type | description |
|---|---|---|
| me | ? |
tower(order: ?, me: ?) → void
Standings tower. Leader first, the player accented, gaps in laps+t.
| arg | type | description |
|---|---|---|
| order | ? | |
| me | ? |
telemetryTree( ) → void
lightsTree(lit: ?) → void
THE CEREMONY SCREEN — lights, banners, the result card
| arg | type | description |
|---|---|---|
| lit | ? |
bannerTree(b: ?) → void
| arg | type | description |
|---|---|---|
| b | ? |
resultTree(res: ?, order: ?) → void
| arg | type | description |
|---|---|---|
| res | ? | |
| order | ? |
stageContent(build: ?) → void
What the ceremony layer should be showing right now, and a key that changes exactly when it needs re-registering. `build` is false on the frames that only need the key: the ceremony layer is re-registered when its content CHANGES, so its tree is assembled once per change rather than once per frame.
| arg | type | description |
|---|---|---|
| build | ? |
stageTree(inner: ?, kind: ?) → void
| arg | type | description |
|---|---|---|
| inner | ? | |
| kind | ? |
flashTree(kind: ?) → void
| arg | type | description |
|---|---|---|
| kind | ? |
fireFlash(kind: ?, life: ?) → void
| arg | type | description |
|---|---|---|
| kind | ? | |
| life | ? |
say(text: ?, sub: ?, color: ?, size: ?, life: ?, key: ?) → void
LIFECYCLE
| arg | type | description |
|---|---|---|
| text | ? | |
| sub | ? | |
| color | ? | |
| size | ? | |
| life | ? | |
| key | ? |
isMe(id: ?) → void
| arg | type | description |
|---|---|---|
| id | ? |
subscribe( ) → void
build( ) → void
update(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
teardown( ) → 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.