theme
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
theme
<!-- 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.theme — the storybook palette, type and ornaments every non-battle screen of Amelia shares (title, menu, area card, HUD, fader). Matches the dialogue box in game.ui.dialogue.view: plum-ink panels, lantern-gold trim, parchment accents, Garamond display + PT Serif body. local T = require("game.ui.theme") T.panel("id", l, t, w, h) -> { nodes } framed panel + filigree corners T.rule("id", l, t, w) -> node gold hairline with a centre diamond T.anim(spec) -> spec in play, nil in edit (static captures)
screenSize( ) → void
abs(l: number, t: number, w: number?, h: number?, extra: any?) → any
| arg | type | description |
|---|---|---|
| l | number | |
| t | number | |
| w | number? | |
| h | number? | |
| extra | any? |
label(id: string?, text: string, style: any?, onClick: string?) → any
| arg | type | description |
|---|---|---|
| id | string? | |
| text | string | |
| style | any? | |
| onClick | string? |
box(id: string?, style: any?, children: { any }?, onClick: string?) → any
| arg | type | description |
|---|---|---|
| id | string? | |
| style | any? | |
| children | { any }? | |
| onClick | string? |
row(id: string?, style: any?, children: { any }?, onClick: string?) → any
| arg | type | description |
|---|---|---|
| id | string? | |
| style | any? | |
| children | { any }? | |
| onClick | string? |
svg(id: string?, svg: string, style: any?, onClick: string?) → any
| arg | type | description |
|---|---|---|
| id | string? | |
| svg | string | |
| style | any? | |
| onClick | string? |
image(id: string?, src: string, style: any?) → any
| arg | type | description |
|---|---|---|
| id | string? | |
| src | string | |
| style | any? |
live( ) → boolean
Animations only tick in play; in edit a `fill = both` entrance would hold its first (invisible) keyframe, so edit-mode renders drop them and show the settled pose instead.
anim(spec: any) → any
| arg | type | description |
|---|---|---|
| spec | any |
entrance(from: string, delay: number?, dur: number?) → any
| arg | type | description |
|---|---|---|
| from | string | |
| delay | number? | |
| dur | number? |
fadeIn(delay: number?, dur: number?) → any
| arg | type | description |
|---|---|---|
| delay | number? | |
| dur | number? |
stud(id: string, l: number, t: number, size: number) → any
| arg | type | description |
|---|---|---|
| id | string | |
| l | number | |
| t | number | |
| size | number |
cornerSvg(which: string) → string
| arg | type | description |
|---|---|---|
| which | string |
panel(id: string, l: number, t: number, w: number, h: number, children: { any }?, opts: any?) → void
A framed ink panel with four filigree corners. Returns a list of sibling nodes (panel first, ornaments after) so content can be placed absolutely.
| arg | type | description |
|---|---|---|
| id | string | |
| l | number | |
| t | number | |
| w | number | |
| h | number | |
| children | { any }? | |
| opts | any? |
rule(id: string, l: number, t: number, w: number, opts: any?) → any
Gold hairline fading out at both ends, a small diamond at its centre.
| arg | type | description |
|---|---|---|
| id | string | |
| l | number | |
| t | number | |
| w | number | |
| opts | any? |
bar(id: string, frac: number, w: number, h: number, fill: string) → any
A segmented gauge (HP / SP / EXP) with a recessed track.
| arg | type | description |
|---|---|---|
| id | string | |
| frac | number | |
| w | number | |
| h | number | |
| fill | string |
hint(id: string, key: string, text: string) → any
small keycap hint "[Enter] Confirm"
| arg | type | description |
|---|---|---|
| id | string | |
| key | string | |
| text | string |
iconSvg(kind: string) → string
| arg | type | description |
|---|---|---|
| kind | string |
medallion(id: string, kind: string, size: number, style: any?) → any
A gold medallion holding an icon (item slots, toast icons).
| arg | type | description |
|---|---|---|
| id | string | |
| kind | string | |
| size | number | |
| style | any? |
roman(n: number) → string
| arg | type | description |
|---|---|---|
| n | number |
clock(seconds: number) → string
| arg | type | description |
|---|---|---|
| seconds | number |
areaName(id: string?) → string
| arg | type | description |
|---|---|---|
| id | string? |
chapterTitle(n: number) → string
| arg | type | description |
|---|---|---|
| n | 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.