hud
Builds the Ridge Run HUD as a widget tree from a plain model (`Hud.tree(model, ui.screenSize())`): the run clock with checkpoint count and the next stop (top left), the player's best time and best-medal seal with a Retry button (top right), the start card with medal counts, runs…
ridgeRun.hud
Builds the Ridge Run HUD as a widget tree from a plain model (Hud.tree(model, ui.screenSize())): the run clock with checkpoint count and the next stop (top left), the player's best time and best-medal seal with a Retry button (top right), the start card with medal counts, runs and the medal times while the player waits at the gate (the progression screen), the summit result card with time, medal and new-best, and a short banner for checkpoints, falls and the start. Ink on rice-paper cards in EB Garamond / PT Serif, scaled down under 700 pt wide so it reads on a phone, and kept along the top and middle so the lower corners stay free for touch controls. RidgeRunner calls it and registers the tree, so the buttons' callbacks reach the component.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2ridgeRun.hud: the Ridge Run HUD as a widget tree, ink on rice paper. local tree = Hud.tree(model, ui.screenSize()) `model` is what RidgeRunner hands it: { title, state, elapsed, reached, total, nextLabel, record = { best, bestMedal, runs, gold, silver, bronze }, gold, silver, bronze (medal times), banner = { text, sub, kind }?, result?, falls }. The tree is a pure function of the model; the component registers it, so the Restart button's callback reaches the component. Everything sits along the top edge and the middle, leaving the lower corners to the touch controls.
label(text: string, style: { [string]: any }, id: string?) → any
| arg | type | description |
|---|---|---|
| text | string | |
| style | { [string]: any } | |
| id | string? |
card(children: { any }, style: { [string]: any }, id: string?) → any
| arg | type | description |
|---|---|---|
| children | { any } | |
| style | { [string]: any } | |
| id | string? |
seal(medal: string, size: number) → any
| arg | type | description |
|---|---|---|
| medal | string | |
| size | number |
medalCount(medal: string, n: number, scale: number) → any
| arg | type | description |
|---|---|---|
| medal | string | |
| n | number | |
| scale | number |
button(text: string, cb: string, id: string, scale: number) → any
| arg | type | description |
|---|---|---|
| text | string | |
| cb | string | |
| id | string | |
| scale | number |
chip(title: string, value: string, key: string, cb: string, id: string, scale: number, narrow: boolean) → any
a small paper switch: "FEEL Nimble [F]", tapped or clicked to cycle
| arg | type | description |
|---|---|---|
| title | string | |
| value | string | |
| key | string | |
| cb | string | |
| id | string | |
| scale | number | |
| narrow | boolean |
tree(m: { [string]: any }, size: { width: number, height: number }?) → any
| arg | type | description |
|---|---|---|
| m | { [string]: any } | |
| size | { width: number, height: number }? |
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.