label(text: string, style: any?) → any
| arg | type | description |
|---|
| text | string | |
| style | any? | |
svg(s: string, style: any?) → any
| arg | type | description |
|---|
| s | string | |
| style | any? | |
row(children: { any }, style: any?) → any
| arg | type | description |
|---|
| children | { any } | |
| style | any? | |
col(children: { any }, style: any?) → any
| arg | type | description |
|---|
| children | { any } | |
| style | any? | |
button(text: string, cb: string, style: any?) → any
| arg | type | description |
|---|
| text | string | |
| cb | string | |
| style | any? | |
happyColor(h: number) → string
| arg | type | description |
|---|
| h | number | |
pct(h: number) → string return tostring
| arg | type | description |
|---|
| h | number | |
meter(look: string, frac: number, w: number, h: number, color: string?, bg: string?) → any
a meter drawn by barsKit when it is installed, else a plain bar
| arg | type | description |
|---|
| look | string | |
| frac | number | |
| w | number | |
| h | number | |
| color | string? | |
| bg | string? | |
progressText(d: any) → string
line(k: string, v: string, c: string?) → any
| arg | type | description |
|---|
| k | string | |
| v | string | |
| c | string? | |
pixelBar(frac: number, w: number, h: number, color: string) → any
a chunky ten-block bar for the pixel display (barsKit's pixel bar always prints "HP")
| arg | type | description |
|---|
| frac | number | |
| w | number | |
| h | number | |
| color | string | |
px(text: string, c: string, s: number?) → any return label
| arg | type | description |
|---|
| text | string | |
| c | string | |
| s | number? | |
hl(text: string, s: number?, c: string?) → any
| arg | type | description |
|---|
| text | string | |
| s | number? | |
| c | string? | |
cartoonBar(frac: number, w: number, h: number, color: string, out: string) → any
a squishy rounded bar for the cartoon display (barsKit's bubbly meter prints its own "HP" label)
| arg | type | description |
|---|
| frac | number | |
| w | number | |
| h | number | |
| color | string | |
| out | string | |
bubble(text: string, bg: string, s: number?) → any
| arg | type | description |
|---|
| text | string | |
| bg | string | |
| s | number? | |
chunky(text: string, cb: string, bg: string) → any
| arg | type | description |
|---|
| text | string | |
| cb | string | |
| bg | string | |
statusId(name: string?) → string
| arg | type | description |
|---|
| name | string? | |
status(style: string, d: any) → any
| arg | type | description |
|---|
| style | string | |
| d | any | |
faceSvg(h: number) → string
| arg | type | description |
|---|
| h | number | |
heartsSvg(h: number) → string
| arg | type | description |
|---|
| h | number | |
thumbSvg(h: number) → string
| arg | type | description |
|---|
| h | number | |
pixelSvg(h: number) → string
| arg | type | description |
|---|
| h | number | |
scifiSvg(h: number) → string
| arg | type | description |
|---|
| h | number | |
moodId(name: string?) → string
| arg | type | description |
|---|
| name | string? | |
mood(style: string, h: number, x: number, y: number, size: number?, need: any?) → any
need: nil when the home has all it wants, else { icon, color } of what it misses most
| arg | type | description |
|---|
| style | string | |
| h | number | |
| x | number | |
| y | number | |
| size | number? | |
| need | any? | |
roofTint(h: number) → void
The colour a roof glows for happiness h (roofColour), as { r, g, b }.
| arg | type | description |
|---|
| h | number | |
plotHint(h: any) → any
Would settlers move in here? h = { style, happy, moveIn, need, x, y }
rankUp(r: any) → any
r: { style, from, to, unlocks = { names } }
house(h: any) → any
h: { style, name (tier), people, cap, happy, needs = { { name, icon, ok, value } }, next = text?, narrow }