rtsSkirmishKit.screens.view: the widget trees of Warfront's front end.
Pure builders: every function takes a `state` table the screens module
prepares (screen size, safe area, session snapshot, focus, prompt glyphs) and
returns a ui tree. Nothing here reads input or talks to the session.
The look: iron-dark war-council panels with gilt edges, a crimson banner for
the chosen action, EB Garamond capitals for titles and Anton for orders.
setupListHeight(h: number) → number
How tall the desktop setup's option list may grow on a screen `h` points tall before it scrolls.
| arg | type | description |
|---|
| h | number | |
lbl(text: string, style: any, id: string?) → any
| arg | type | description |
|---|
| text | string | |
| style | any | |
| id | string? | |
vbox(style: any, children: { any }?, id: string?, props: any?) → any
| arg | type | description |
|---|
| style | any | |
| children | { any }? | |
| id | string? | |
| props | any? | |
hbox(style: any, children: { any }?, id: string?, props: any?) → any
| arg | type | description |
|---|
| style | any | |
| children | { any }? | |
| id | string? | |
| props | any? | |
fill(style: any, children: { any }?) → any
| arg | type | description |
|---|
| style | any | |
| children | { any }? | |
svg(markup: string, w: number, h: number, extra: any?) → any
| arg | type | description |
|---|
| markup | string | |
| w | number | |
| h | number | |
| extra | any? | |
enter(delay: number, from: string?, dur: number?) → any
| arg | type | description |
|---|
| delay | number | |
| from | string? | |
| dur | number? | |
loop(kf: any, dur: number) → any
| arg | type | description |
|---|
| kf | any | |
| dur | number | |
push(t: { any }, v: any?) → void
| arg | type | description |
|---|
| t | { any } | |
| v | any? | |
formatTime(s: number?) → string
| arg | type | description |
|---|
| s | number? | |
groupNum(n: any) → string
crest(size: number, color: string?) → any
crossed swords over a shield: the Warfront crest
| arg | type | description |
|---|
| size | number | |
| color | string? | |
diamond(size: number, color: string) → any
| arg | type | description |
|---|
| size | number | |
| color | string | |
rule(width: any, delay: number?) → any
a gilt rule with a diamond in the middle
| arg | type | description |
|---|
| width | any | |
| delay | number? | |
biomeFor(setting: string?) → any
| arg | type | description |
|---|
| setting | string? | |
mapArt(setting: string?, w: number, h: number) → any
| arg | type | description |
|---|
| setting | string? | |
| w | number | |
| h | number | |
frame(state: any, uid: string, backdrop: { any }, body: any, shield: boolean) → any
full-screen frame: a fixed area at the window origin, a backdrop drawn to the
edges, and a content column inside the safe area
| arg | type | description |
|---|
| state | any | |
| uid | string | |
| backdrop | { any } | |
| body | any | |
| shield | boolean | |
promptStrip(state: any, entries: { any }, align: string?) → any
| arg | type | description |
|---|
| state | any | |
| entries | { any } | |
| align | string? | |
button(state: any, o: any) → any
A command button. kind = "primary" (crimson banner) | "secondary" (iron) | "ghost".
| arg | type | description |
|---|
| state | any | |
| o | any | |
panel(style: any, children: { any }, id: string?) → any
| arg | type | description |
|---|
| style | any | |
| children | { any } | |
| id | string? | |
sectionTitle(text: string, compact: boolean?) → any
| arg | type | description |
|---|
| text | string | |
| compact | boolean? | |
title(state: any) → any
| arg | type | description |
|---|
| state | any | |
chip(state: any, key: string, o: any, selected: boolean, rowFocused: boolean, editable: boolean, compact: boolean) → any
| arg | type | description |
|---|
| state | any | |
| key | string | |
| o | any | |
| selected | boolean | |
| rowFocused | boolean | |
| editable | boolean | |
| compact | boolean | |
optionRow(state: any, row: any, focused: boolean, delay: number) → any
| arg | type | description |
|---|
| state | any | |
| row | any | |
| focused | boolean | |
| delay | number | |
mapCard(state: any, m: any, selected: boolean, rowFocused: boolean, w: number, h: number, delay: number) → any
| arg | type | description |
|---|
| state | any | |
| m | any | |
| selected | boolean | |
| rowFocused | boolean | |
| w | number | |
| h | number | |
| delay | number | |
mapGrid(state: any, focused: boolean, width: number, height: number) → any
| arg | type | description |
|---|
| state | any | |
| focused | boolean | |
| width | number | |
| height | number | |
setupFooter(state: any) → any
| arg | type | description |
|---|
| state | any | |
setupHeader(state: any) → any
| arg | type | description |
|---|
| state | any | |
tabsBar(state: any) → any
| arg | type | description |
|---|
| state | any | |
setup(state: any) → any
| arg | type | description |
|---|
| state | any | |
countdown(state: any, countdownNode: any?) → any
| arg | type | description |
|---|
| state | any | |
| countdownNode | any? | |
goFlash(state: any, countdownNode: any) → any
just the FIGHT flash after the phase has turned to playing
| arg | type | description |
|---|
| state | any | |
| countdownNode | any | |
objective(state: any) → any
| arg | type | description |
|---|
| state | any | |
pause(state: any) → any
The in-match menu (Esc, F10, pad Start or the menu button): Resume, Restart and Quit to title for the host,
whose menu holds the match for everyone; a guest's menu only closes again, and says the host is in charge.
| arg | type | description |
|---|
| state | any | |
menuButton(state: any) → any
The menu button on the match HUD (mouse and touch; keys and pads open the menu without it).
| arg | type | description |
|---|
| state | any | |
statsTable(state: any, width: number) → any
| arg | type | description |
|---|
| state | any | |
| width | number | |
results(state: any) → any
| arg | type | description |
|---|
| state | any | |