Kit
The UI slice's style kit: palette (from `game.Rules.PALETTE`), the chosen fonts (Cinzel Decorative for the logo, Cinzel for display type, PT Serif for prose, JetBrains Mono for code), gold-filigree SVG ornaments (corners, dividers, diamonds, coin, rose, shield, lock, icons) and s…
Kit
The UI slice's style kit: palette (from game.Rules.PALETTE), the chosen fonts (Cinzel Decorative for the logo, Cinzel for display type, PT Serif for prose, JetBrains Mono for code), gold-filigree SVG ornaments (corners, dividers, diamonds, coin, rose, shield, lock, icons) and small node builders (label, box, svg, image, entrance/idle animations, gold-framed buttons) that every screen in game.ui.UI is assembled from.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2strict
lift(n: any) → any
An `id` written into a style table belongs on the node.
| arg | type | description |
|---|---|---|
| n | any |
label(text: string, style: { [string]: any }?, props: { [string]: any }?) → any
| arg | type | description |
|---|---|---|
| text | string | |
| style | { [string]: any }? | |
| props | { [string]: any }? |
wrapLabel(text: string, style: { [string]: any }?) → any
| arg | type | description |
|---|---|---|
| text | string | |
| style | { [string]: any }? |
box(kind: string, style: { [string]: any }?, children: { any }?, extra: { [string]: any }?) → any
| arg | type | description |
|---|---|---|
| kind | string | |
| style | { [string]: any }? | |
| children | { any }? | |
| extra | { [string]: any }? |
v(style: ?, children: ?, extra: ?) → void
| arg | type | description |
|---|---|---|
| style | ? | |
| children | ? | |
| extra | ? |
h(style: ?, children: ?, extra: ?) → void
| arg | type | description |
|---|---|---|
| style | ? | |
| children | ? | |
| extra | ? |
svg(markup: string, style: { [string]: any }?, fit: string?) → any
| arg | type | description |
|---|---|---|
| markup | string | |
| style | { [string]: any }? | |
| fit | string? |
image(src: string, style: { [string]: any }?) → any
| arg | type | description |
|---|---|---|
| src | string | |
| style | { [string]: any }? |
abs(style: { [string]: any }) → void
| arg | type | description |
|---|---|---|
| style | { [string]: any } |
enter(from: string?, delay: number?, dur: number?, to: string?) → any
One-shot entrance: fade + transform from `from` to rest.
| arg | type | description |
|---|---|---|
| from | string? | |
| delay | number? | |
| dur | number? | |
| to | string? |
fadeAnim(a: number, b: number, dur: number, delay: number?) → any
| arg | type | description |
|---|---|---|
| a | number | |
| b | number | |
| dur | number | |
| delay | number? |
glow(c1: string, c2: string, dur: number?) → any
Idle breathing glow on a box shadow.
| arg | type | description |
|---|---|---|
| c1 | string | |
| c2 | string | |
| dur | number? |
bob(px: number, dur: number?) → any
| arg | type | description |
|---|---|---|
| px | number | |
| dur | number? |
pulse(a: number, b: number, dur: number?) → any
| arg | type | description |
|---|---|---|
| a | number | |
| b | number | |
| dur | number? |
cornerSvg(flip: string?) → string
Filigree corner, drawn for the top-left; `flip` = "tr" | "bl" | "br".
| arg | type | description |
|---|---|---|
| flip | string? |
flourishSvg(right: boolean?) → string
Big gold scrollwork that bursts out of a box's end (the dialogue box), drawn for the left end; `right` mirrors it. viewBox 120 x 200.
| arg | type | description |
|---|---|---|
| right | boolean? |
plateEndSvg(right: boolean?) → string
Ornate name-plate end tab (left end; `right` mirrors), viewBox 40 x 48.
| arg | type | description |
|---|---|---|
| right | boolean? |
corners(size: number, inset: number?) → void
Four filigree corners laid over a box (the box must be position=relative/absolute).
| arg | type | description |
|---|---|---|
| size | number | |
| inset | number? |
dividerSvg(color: string?) → string
Horizontal gold divider with a centre diamond.
| arg | type | description |
|---|---|---|
| color | string? |
divider(width: any, height: number?, color: string?) → any
| arg | type | description |
|---|---|---|
| width | any | |
| height | number? | |
| color | string? |
diamondSvg(fill: string?, stroke: string?) → string
| arg | type | description |
|---|---|---|
| fill | string? | |
| stroke | string? |
diamond(size: number, fill: string?, stroke: string?, style: { [string]: any }?) → any
| arg | type | description |
|---|---|---|
| size | number | |
| fill | string? | |
| stroke | string? | |
| style | { [string]: any }? |
sparkleSvg(color: string?) → string
Sparkle/star used beside selected menu items.
| arg | type | description |
|---|---|---|
| color | string? |
coinSvg( ) → string
coin(size: number) → any
| arg | type | description |
|---|---|---|
| size | number |
roseSvg( ) → string
shieldSvg(fill: string?, stroke: string?) → string
| arg | type | description |
|---|---|---|
| fill | string? | |
| stroke | string? |
lockSvg(color: string?) → string
| arg | type | description |
|---|---|---|
| color | string? |
checkSvg(color: string?) → string
| arg | type | description |
|---|---|---|
| color | string? |
iconSvg(kind: string, color: string?) → string
| arg | type | description |
|---|---|---|
| kind | string | |
| color | string? |
icon(kind: string, size: number, color: string?, style: { [string]: any }?) → any
| arg | type | description |
|---|---|---|
| kind | string | |
| size | number | |
| color | string? | |
| style | { [string]: any }? |
pill(id: string, cb: string, text: string, opts: { [string]: any }?) → any
Gold-framed pill button (AUTO / LOG / SKIP, BUY, RETRY…).
| arg | type | description |
|---|---|---|
| id | string | |
| cb | string | |
| text | string | |
| opts | { [string]: any }? |
panel(id: string?, style: { [string]: any }, children: { any }, cornerSize: number?) → any
A glass panel with gold border and filigree corners.
| arg | type | description |
|---|---|---|
| id | string? | |
| style | { [string]: any } | |
| children | { any } | |
| cornerSize | number? |
heading(text: string, size: number?, width: any?) → any
Section heading: small-caps gold Cinzel title with a divider under it.
| arg | type | description |
|---|---|---|
| text | string | |
| size | number? | |
| width | any? |
hexA(hex: string, a: number) → string
| arg | type | description |
|---|---|---|
| hex | string | |
| a | number |
commas(n: number) → string
| arg | type | description |
|---|---|---|
| n | number |
short(n: number) → string
Compact count for narrow screens: 4,498 / 52.3K / 5.0M.
| 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.
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.