panel
Widget-tree builders for a crash-test game screen (graphite panels, hazard-yellow accent, Anton / Arimo / JetBrains Mono). Each takes one state table `S` (`sampleState(opts)` makes one): `setupPanel(S)` (tabs VEHICLE / OCCUPANT / TEST / CAMERAS / PROGRAMME, chip grids with padloc…
panel
Widget-tree builders for a crash-test game screen (graphite panels, hazard-yellow accent, Anton / Arimo / JetBrains Mono). Each takes one state table S (sampleState(opts) makes one): setupPanel(S) (tabs VEHICLE / OCCUPANT / TEST / CAMERAS / PROGRAMME, chip grids with padlocks for locked options, the 10–120 km/h speed chooser, Tow/Drive/Ramp, airbags, readout style, replay shot list, the ladder's test list, RUN TEST / RESET; a left panel or a phone bottom sheet), setupTab, topBar, progressStrip (nil without a ladder), live, actions (REPLAY / NEXT TEST / SET-UP, SKIP while replaying), toast, plus button, hazard, statePill, icon, ICON, K (palette), TABS, tabs(S), tabRows(tab). Element ids are <S.prefix>_… and callback ids <S.prefix>:<verb>:… (default prefix crash); the package README lists them. Pure: no screens registered, no state kept. Used by crashSession.session.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2nonstrict
pre(S: ?) → void
| arg | type | description |
|---|---|---|
| S | ? |
cb(S: ?, ...: ?) → void
| arg | type | description |
|---|---|---|
| S | ? | |
| ... | ? |
eid(S: ?, ...: ?) → void
| arg | type | description |
|---|---|---|
| S | ? | |
| ... | ? |
steps(S: ?) → void
| arg | type | description |
|---|---|---|
| S | ? |
label(text: ?, style: ?, props: ?) → void
| arg | type | description |
|---|---|---|
| text | ? | |
| style | ? | |
| props | ? |
svg(markup: ?, w: ?, h: ?, extra: ?) → void
| arg | type | description |
|---|---|---|
| markup | ? | |
| w | ? | |
| h | ? | |
| extra | ? |
icon(path: ?, size: ?, color: ?) → void
| arg | type | description |
|---|---|---|
| path | ? | |
| size | ? | |
| color | ? |
hazard(w: ?, h: ?) → void
yellow/black hazard stripes
| arg | type | description |
|---|---|---|
| w | ? | |
| h | ? |
pill(text: ?, bg: ?, fg: ?, extra: ?) → void
| arg | type | description |
|---|---|---|
| text | ? | |
| bg | ? | |
| fg | ? | |
| extra | ? |
stateText(s: ?) → void
| arg | type | description |
|---|---|---|
| s | ? |
statePill(s: ?) → void
| arg | type | description |
|---|---|---|
| s | ? |
button(id: ?, text: ?, kind: ?, opts: ?) → void
buttons kind: "primary" (hazard yellow), "danger", "ghost"; `id` is the callback id.
| arg | type | description |
|---|---|---|
| id | ? | |
| text | ? | |
| kind | ? | |
| opts | ? |
tabs(S: ?) → void
The tabs this state shows (the programme tab only with a ladder that has steps).
| arg | type | description |
|---|---|---|
| S | ? |
tabRows(tabId: ?) → void
| arg | type | description |
|---|---|---|
| tabId | ? |
sectionHead(text: ?, right: ?, focused: ?) → void
| arg | type | description |
|---|---|---|
| text | ? | |
| right | ? | |
| focused | ? |
isOpen(S: ?, cat: ?, id: ?) → void
| arg | type | description |
|---|---|---|
| S | ? | |
| cat | ? | |
| id | ? |
chip(S: ?, cat: ?, row: ?, selected: ?, locked: ?, cw: ?) → void
| arg | type | description |
|---|---|---|
| S | ? | |
| cat | ? | |
| row | ? | |
| selected | ? | |
| locked | ? | |
| cw | ? |
chipGrid(S: ?, cat: ?, items: ?, sel: ?, cols: ?, innerW: ?) → void
| arg | type | description |
|---|---|---|
| S | ? | |
| cat | ? | |
| items | ? | |
| sel | ? | |
| cols | ? | |
| innerW | ? |
countUnlocked(S: ?, cat: ?, items: ?) → void
| arg | type | description |
|---|---|---|
| S | ? | |
| cat | ? | |
| items | ? |
detailLine(text: ?) → void
| arg | type | description |
|---|---|---|
| text | ? |
rowBox(S: ?, id: ?, focused: ?, kids: ?, gap: ?) → void
| arg | type | description |
|---|---|---|
| S | ? | |
| id | ? | |
| focused | ? | |
| kids | ? | |
| gap | ? |
pickRow(S: ?, cat: ?, innerW: ?, focused: ?) → void
One chip row: a category's options as a grid, the selected one's detail under it.
| arg | type | description |
|---|---|---|
| S | ? | |
| cat | ? | |
| innerW | ? | |
| focused | ? |
speedRow(S: ?, innerW: ?, focused: ?) → void
Impact speed: − / + steppers, the big km/h readout with mph and m/s, and a chip per 10 km/h.
| arg | type | description |
|---|---|---|
| S | ? | |
| innerW | ? | |
| focused | ? |
camsRow(S: ?, innerW: ?, focused: ?) → void
Replay shot list: every camera kind as a card, numbered in the order it cuts.
| arg | type | description |
|---|---|---|
| S | ? | |
| innerW | ? | |
| focused | ? |
rewardNames(t: ?) → void
| arg | type | description |
|---|---|---|
| t | ? |
programmeRow(S: ?, innerW: ?, focusedIdx: ?) → void
The ladder's steps as a list: passed (check), open (number), locked (padlock).
| arg | type | description |
|---|---|---|
| S | ? | |
| innerW | ? | |
| focusedIdx | ? |
setupBox(S: ?) → void
The panel's box for this state: a left side panel, or a bottom sheet under 720 pt.
| arg | type | description |
|---|---|---|
| S | ? |
setupPanel(S: ?) → void
The whole set-up panel. Returns the node and its box.
| arg | type | description |
|---|---|---|
| S | ? |
setupTab(S: ?) → void
Small "open set-up" tab on phones when the sheet is folded away.
| arg | type | description |
|---|---|---|
| S | ? |
topBar(S: ?) → void
top bar + programme strip
| arg | type | description |
|---|---|---|
| S | ? |
progressStrip(S: ?) → void
Ladder level + next unlock (nil without a ladder).
| arg | type | description |
|---|---|---|
| S | ? |
live(S: ?) → void
live telemetry S.live = { cam, phase, kmh, dist }
| arg | type | description |
|---|---|---|
| S | ? |
actions(S: ?) → void
results / replay actions S.phase "results" | "replay"; S.replay = { index, n, name }; S.actFocus 1..3
| arg | type | description |
|---|---|---|
| S | ? |
toast(S: ?, toast: ?) → void
A goal / unlock card: toast = { title, ok = true|false|nil, lines = {..}, unlocks = {..} }.
| arg | type | description |
|---|---|---|
| S | ? | |
| toast | ? |
sampleState(opts: ?) → void
A minimal state for previews and tests: every option open, the default set-up.
| arg | type | description |
|---|---|---|
| opts | ? |
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.