ui
Pure widget-tree builders for every progressionKit screen in any look: `badge` (letter shield, metal medal, stars, belt, military chevrons, kyu belt with grade tab or dan bars, Roman laurel shield, clearance keycard, custom), `keyName` / `keyLabel` / `keyHint` (the keys that open…
progressionKit.ui
Pure widget-tree builders for every progressionKit screen in any look: badge (letter shield, metal medal, stars, belt, military chevrons, kyu belt with grade tab or dan bars, Roman laurel shield, clearance keycard, custom), keyName / keyLabel / keyHint (the keys that open the screen, as input names and as the HUD shows them), ladderStrip, bar, treePanel (any layout), screen (the full progression screen, landscape or portrait), hud (level, XP bar, rank badge, points; opts.keyHint names the open keys in its tooltip), rankBanner (anime-style rank-up burst), levelBanner and toast. Layers: HUD 205, screen 210, banners 220, above touch controls.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2progressionKit.ui: widget trees for every progressionKit screen, in any look: rank badges for each ladder style, a ladder strip, XP and rank bars, a skill tree panel in any layout, the full progression screen (landscape and portrait), the small HUD widget, and the level-up and anime-style rank-up banners. Pure builders: they return trees, the Progression component registers and shows them.
up(look: any, s: string) → string
| arg | type | description |
|---|---|---|
| look | any | |
| s | string |
label(text: string, style: any, props: any?) → any
| arg | type | description |
|---|---|---|
| text | string | |
| style | any | |
| props | any? |
svg(markup: string, style: any, props: any?) → any
| arg | type | description |
|---|---|---|
| markup | string | |
| style | any | |
| props | any? |
esc(s: string) → string
| arg | type | description |
|---|---|---|
| s | string |
starPoints(cx: number, cy: number, r1: number, r2: number, n: number?) → string
| arg | type | description |
|---|---|---|
| cx | number | |
| cy | number | |
| r1 | number | |
| r2 | number | |
| n | number? |
hexPoints(cx: number, cy: number, r: number) → string
| arg | type | description |
|---|---|---|
| cx | number | |
| cy | number | |
| r | number |
badgeSvg(ladder: any, index: number, look: any) → string
SVG markup of a rank badge for a ladder style (letter, metal, star, belt, chevron, custom).
| arg | type | description |
|---|---|---|
| ladder | any | |
| index | number | |
| look | any |
badge(ladder: any, index: number, look: any, size: number, extra: any?) → any
A rank badge widget of `size` points.
| arg | type | description |
|---|---|---|
| ladder | any | |
| index | number | |
| look | any | |
| size | number | |
| extra | any? |
ladderStrip(ladder: any, look: any, current: number, width: number, opts: any?) → any
A row of every rank of a ladder, the current one raised and lit, the ones above dimmed.
| arg | type | description |
|---|---|---|
| ladder | any | |
| look | any | |
| current | number | |
| width | number | |
| opts | any? |
bar(pct: number, look: any, width: any, height: number, fill: string?) → any
A progress bar (0..1) in the look.
| arg | type | description |
|---|---|---|
| pct | number | |
| look | any | |
| width | any | |
| height | number | |
| fill | string? |
nodeState(node: any, owned: { [string]: number }, points: number, level: number) → string
| arg | type | description |
|---|---|---|
| node | any | |
| owned | { [string]: number } | |
| points | number | |
| level | number |
shapeSvg(shape: string, fill: string, stroke: string, sw: number, glow: boolean, tilt: number?) → string
| arg | type | description |
|---|---|---|
| shape | string | |
| fill | string | |
| stroke | string | |
| sw | number | |
| glow | boolean | |
| tilt | number? |
treePanel(tree: any, data: any, layoutId: string, look: any, w: number, h: number, opts: any?) → any
A skill tree drawn in a layout. `data = { nodes = {[id]=rank}, points, level }`, `opts = { cursor, prefix = "prog", interactive = true, compact }`.
| arg | type | description |
|---|---|---|
| tree | any | |
| data | any | |
| layoutId | string | |
| look | any | |
| w | number | |
| h | number | |
| opts | any? |
P(p: any) → void
| arg | type | description |
|---|---|---|
| p | any |
panelStyle(look: any, extra: any?) → any
| arg | type | description |
|---|---|---|
| look | any | |
| extra | any? |
button(id: string, text: string, look: any, primary: boolean, enabled: boolean, extra: any?) → any
| arg | type | description |
|---|---|---|
| id | string | |
| text | string | |
| look | any | |
| primary | boolean | |
| enabled | boolean | |
| extra | any? |
statLine(look: any, text: string, col: string?) → any
| arg | type | description |
|---|---|---|
| look | any | |
| text | string | |
| col | string? |
nodeDetail(view: any, node: any?, look: any, width: number, canUnlock: boolean, reason: string?, compact: boolean?) → any
| arg | type | description |
|---|---|---|
| view | any | |
| node | any? | |
| look | any | |
| width | number | |
| canUnlock | boolean | |
| reason | string? | |
| compact | boolean? |
screen(view: any, opts: any) → any
The full progression screen for `view` (from Prog.view). `opts = { look, layout, tree, cursor, W, H, unlockOk, unlockReason, layer }`. Landscape puts the tree beside the details; portrait stacks them.
| arg | type | description |
|---|---|---|
| view | any | |
| opts | any |
keyName(name: string?) → string
The input name of a key written loosely: "K" or "k" is "KeyK", "1" is "Digit1", "tab" is "Tab", anything else is kept. "" stays "" (no key).
| arg | type | description |
|---|---|---|
| name | string? |
keyLabel(name: string?) → string
How a key reads to a player: "KeyK" is "K", "Digit1" is "1", "Tab" stays "Tab".
| arg | type | description |
|---|---|---|
| name | string? |
keyHint(openKey: string?, altKey: string?, padOpen: string?) → string
The hint the HUD shows for the keys that open the screen, e.g. "Tab / K / View"; "" when nothing is bound.
| arg | type | description |
|---|---|---|
| openKey | string? | |
| altKey | string? | |
| padOpen | string? |
hud(view: any, opts: any) → any
The small HUD: rank badge, level, XP bar and unspent points. Tapping it opens the screen (`prog.open`). `opts.keyHint` names the keys that open it in the tooltip (default "Tab").
| arg | type | description |
|---|---|---|
| view | any | |
| opts | any |
speedLines(W: number, H: number, col: string, n: number) → string
| arg | type | description |
|---|---|---|
| W | number | |
| H | number | |
| col | string | |
| n | number |
stripAnimations(node: any) → any
The big anime-style rank-up banner: speed lines, a diagonal band, the new badge slamming in, RANK UP and the old and new rank. `info = { from, to, index }`.
| arg | type | description |
|---|---|---|
| node | any |
rankBannerStill(ladder: any, info: any, opts: any) → any
The rank-up banner with every animation removed, held at its final frame (for galleries and edit-mode captures).
| arg | type | description |
|---|---|---|
| ladder | any | |
| info | any | |
| opts | any |
rankBanner(ladder: any, info: any, opts: any) → any
| arg | type | description |
|---|---|---|
| ladder | any | |
| info | any | |
| opts | any |
levelBanner(info: any, opts: any) → any
The level-up banner: a ribbon across the upper third with the new level and the points gained.
| arg | type | description |
|---|---|---|
| info | any | |
| opts | any |
toast(text: string, opts: any, good: boolean) → any
A small toast for an unlock or a refusal.
| arg | type | description |
|---|---|---|
| text | string | |
| opts | any | |
| good | boolean |
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.