look
The Pocket Putt Islands UI look: palette (`C`), fonts, and the authored pieces the screens are built from — toy pills and pill buttons, gold SVG stars, to-par chips (green/yellow/coral), gold/silver/bronze medals, player ball dots and the bubbly POCKET PUTT ISLANDS logo. `defineM…
look
The Pocket Putt Islands UI look: palette (C), fonts, and the authored pieces the screens are built from — toy pills and pill buttons, gold SVG stars, to-par chips (green/yellow/coral), gold/silver/bronze medals, player ball dots and the bubbly POCKET PUTT ISLANDS logo. defineMenus() registers the menusKit look pocketPutt (cartoon base, lime/turquoise/coral pills, our logo, a light sky wash over the live scene). Used by pocketPutt.ui.views and pocketPutt.ui.ScreensHost.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2strict
hex(rgb: { number }) → string
| arg | type | description |
|---|---|---|
| rgb | { number } |
b(v: number) → number return math
| arg | type | description |
|---|---|---|
| v | number |
label(text: string, size: number, color: string?, extra: any?) → any
| arg | type | description |
|---|---|---|
| text | string | |
| size | number | |
| color | string? | |
| extra | any? |
body(text: string, size: number, color: string?, extra: any?) → any
| arg | type | description |
|---|---|---|
| text | string | |
| size | number | |
| color | string? | |
| extra | any? |
pillStyle(face: string, lip: string, h: number, extra: any?) → any
A chunky toy pill: coloured face, darker lip under it, white rim.
| arg | type | description |
|---|---|---|
| face | string | |
| lip | string | |
| h | number | |
| extra | any? |
button(id: string, text: string, face: string, lip: string, h: number, cb: string, extra: any?) → any
A big press-able pill button. `id` names the element, `cb` the callback.
| arg | type | description |
|---|---|---|
| id | string | |
| text | string | |
| face | string | |
| lip | string | |
| h | number | |
| cb | string | |
| extra | any? |
star(size: number, on: boolean, extra: any?) → any
| arg | type | description |
|---|---|---|
| size | number | |
| on | boolean | |
| extra | any? |
stars(n: number, size: number, max: number?, pop: boolean?) → any
| arg | type | description |
|---|---|---|
| n | number | |
| size | number | |
| max | number? | |
| pop | boolean? |
toPar(d: number) → string
Strokes-vs-par chip: green under, yellow level, coral over.
| arg | type | description |
|---|---|---|
| d | number |
chipColours(d: number) → void
| arg | type | description |
|---|---|---|
| d | number |
chip(d: number, w: number, h: number) → any
| arg | type | description |
|---|---|---|
| d | number | |
| w | number | |
| h | number |
medal(place: number, size: number) → any
| arg | type | description |
|---|---|---|
| place | number | |
| size | number |
ball(rgb: { number }, size: number) → any
| arg | type | description |
|---|---|---|
| rgb | { number } | |
| size | number |
logoTexture( ) → string
logoReady( ) → boolean
True once the painted logo is on the GPU: until then an image widget draws a dark "[loading asset]" box, so the title shows the text logo and swaps later.
logo(size: number) → any
The bubbly POCKET PUTT ISLANDS logo with the golf-ball dot.
| arg | type | description |
|---|---|---|
| size | number |
layer(stroke: string, color: string, shadow: string?) → any
| arg | type | description |
|---|---|---|
| stroke | string | |
| color | string | |
| shadow | string? |
defineMenus( ) → string
backdrop(ctx: any) → void
| arg | type | description |
|---|---|---|
| ctx | any |
panel(_ctx: any, kind: string?) → void
| arg | type | description |
|---|---|---|
| _ctx | any | |
| kind | string? |
title(ctx: any, text: string, size: number) → void
| arg | type | description |
|---|---|---|
| ctx | any | |
| text | string | |
| size | number |
heading(text: string) → void
| arg | type | description |
|---|---|---|
| text | string |
item(ctx: any, o: any) → void
| arg | type | description |
|---|---|---|
| ctx | any | |
| o | any |
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.