screens
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
screens
<!-- 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.screens — Sneaky Pooper's widget trees. Pure functions of data: every builder takes the values it shows and returns a node table. The GameUI component decides which tree is on the glass and when to rebuild. Palette: sun-bleached turquoise + coral on crisp white, amber accents, deep pool ink for type. Type: Archivo Black (buttons/labels), Anton (headlines), Bricolage Grotesque (body).
merge(a: ?, b: ?) → void
| arg | type | description |
|---|---|---|
| a | ? | |
| b | ? |
label(text: ?, style: ?, id: ?) → void
| arg | type | description |
|---|---|---|
| text | ? | |
| style | ? | |
| id | ? |
svg(str: ?, w: ?, h: ?, extra: ?, id: ?) → void
| arg | type | description |
|---|---|---|
| str | ? | |
| w | ? | |
| h | ? | |
| extra | ? | |
| id | ? |
abs(l: ?, t: ?, w: ?, h: ?, extra: ?) → void
| arg | type | description |
|---|---|---|
| l | ? | |
| t | ? | |
| w | ? | |
| h | ? | |
| extra | ? |
enter(delay: ?, from: ?, dur: ?) → void
| arg | type | description |
|---|---|---|
| delay | ? | |
| from | ? | |
| dur | ? |
loop(map: ?, dur: ?, delay: ?) → void
| arg | type | description |
|---|---|---|
| map | ? | |
| dur | ? | |
| delay | ? |
fmt(n: ?) → void
| arg | type | description |
|---|---|---|
| n | ? |
starPath(cx: ?, cy: ?, R: ?, r: ?) → void
| arg | type | description |
|---|---|---|
| cx | ? | |
| cy | ? | |
| R | ? | |
| r | ? |
starSvg(filled: boolean, size: number) → void
| arg | type | description |
|---|---|---|
| filled | boolean | |
| size | number |
arcPt(cx: ?, cy: ?, r: ?, deg: ?) → void
| arg | type | description |
|---|---|---|
| cx | ? | |
| cy | ? | |
| r | ? | |
| deg | ? |
arcD(cx: ?, cy: ?, r: ?, d0: ?, d1: ?) → void
| arg | type | description |
|---|---|---|
| cx | ? | |
| cy | ? | |
| r | ? | |
| d0 | ? | |
| d1 | ? |
urgencySvg(u: number) → void
Curved coral gut meter (an arch that fills left → right).
| arg | type | description |
|---|---|---|
| u | number |
eyeSvg(sus: number, seen: boolean) → void
Amber suspicion eye whose lid opens as suspicion fills.
| arg | type | description |
|---|---|---|
| sus | number | |
| seen | boolean |
faceSvg(face: number, tol: number) → void
Straight-face dial: needle at face (-1..1), green zone = tolerance.
| arg | type | description |
|---|---|---|
| face | number | |
| tol | number |
a(f: ?) → void
| arg | type | description |
|---|---|---|
| f | ? |
keycap(k: ?) → void
| arg | type | description |
|---|---|---|
| k | ? |
pill(id: string, text: string, kind: string, w: number, h: number, delay: number?) → void
kind = "primary" (coral) | "secondary" (mint) | "ghost"
| arg | type | description |
|---|---|---|
| id | string | |
| text | string | |
| kind | string | |
| w | number | |
| h | number | |
| delay | number? |
smallRoundBtn(id: ?, glyph: ?, extra: ?) → void
| arg | type | description |
|---|---|---|
| id | ? | |
| glyph | ? | |
| extra | ? |
title(W: number, H: number) → void
| arg | type | description |
|---|---|---|
| W | number | |
| H | number |
levelCard(L: ?, unlocked: boolean, best: number, delay: number) → void
| arg | type | description |
|---|---|---|
| L | ? | |
| unlocked | boolean | |
| best | number | |
| delay | number |
levels(W: number, H: number, LEVELS: ?, unlockedN: number, best: ?) → void
| arg | type | description |
|---|---|---|
| W | number | |
| H | number | |
| LEVELS | ? | |
| unlockedN | number | |
| best | ? |
settings(W: number, H: number, opts: ?) → void
| arg | type | description |
|---|---|---|
| W | number | |
| H | number | |
| opts | ? |
row(name: ?, key: ?, on: ?) → void
| arg | type | description |
|---|---|---|
| name | ? | |
| key | ? | |
| on | ? |
intro(W: number, H: number, L: ?, objective: string) → void
| arg | type | description |
|---|---|---|
| W | number | |
| H | number | |
| L | ? | |
| objective | string |
hudLabel(text: ?, color: ?) → void
d = { phase, urgency, suspicion, seenBy, release, face, alarm, objective, message, level, levelName, best, time, playerMode, tol, touch }
| arg | type | description |
|---|---|---|
| text | ? | |
| color | ? |
fmtTime(t: ?) → void
| arg | type | description |
|---|---|---|
| t | ? |
hud(W: number, H: number, d: ?) → void
| arg | type | description |
|---|---|---|
| W | number | |
| H | number | |
| d | ? |
result(W: number, H: number, phase: string, d: ?) → void
| arg | type | description |
|---|---|---|
| W | number | |
| H | number | |
| phase | string | |
| d | ? |
pause(W: number, H: number) → void
| arg | type | description |
|---|---|---|
| W | number | |
| H | 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.
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.