df_shell_style
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
df_shell_style
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->TODO: describe this module.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2df_shell_style — the shell's shared look. Every authored screen in slice `presentation` draws from here so the title, the field card, the HUD, the pause card and the end cards read as one object: a naturalist's book kept on a boat at night. Colours and point sizes come from Core.PALETTE / Core.TYPE; this module resolves the generic font families to real registered faces and supplies the repeated pieces — the ornamental rule, the keycap, the paper card, the small-caps label, the dotted-leader stat row. Slice owner: presentation. Requiring it: require("ui.shell.df_shell_style")
smallcaps(text: string, o: any?) → any
Type A letterspaced small-caps line — the game's label voice. Everything that names a thing rather than saying it uses this.
| arg | type | description |
|---|---|---|
| text | string | |
| o | any? |
display(text: string, o: any?) → any
Display type: the serif that carries a screen's name.
| arg | type | description |
|---|---|---|
| text | string | |
| o | any? |
italic(text: string, o: any?) → any
The naturalist's aside: italic serif, the voice of a caption under a plate.
| arg | type | description |
|---|---|---|
| text | string | |
| o | any? |
body(text: string, o: any?) → any
Running text.
| arg | type | description |
|---|---|---|
| text | string | |
| o | any? |
readout(text: string, o: any?) → any
An instrument readout. Mono, tight, brass.
| arg | type | description |
|---|---|---|
| text | string | |
| o | any? |
rule(o: any?) → any
Marks The ornamental rule: a hairline broken by a lozenge. Used to separate a heading from what it heads, in the book and on the glass alike.
| arg | type | description |
|---|---|---|
| o | any? |
lozenge(o: any?) → any
The book's mark: a small rotated square. Drawn as a box rather than a glyph so it needs no symbol font, and rather than an `svg` node because an `svg` widget draws in an element capture but not on the glass.
| arg | type | description |
|---|---|---|
| o | any? |
hair(o: any?) → any
A plain hairline with no ornament.
| arg | type | description |
|---|---|---|
| o | any? |
keycap(k: string, o: any?) → any
A key on the boat's keyboard.
| arg | type | description |
|---|---|---|
| k | string | |
| o | any? |
keyRow(keys: { string }, what: string, o: any?) → any
keycap + what it does, as one row.
| arg | type | description |
|---|---|---|
| keys | { string } | |
| what | string | |
| o | any? |
paperFill(o: any?) → any
Surfaces The style fragment that makes a box read as a leaf of pressed paper: a warm fill, a raking light from the top-left, a fibre speckle, and an edge that has been handled.
| arg | type | description |
|---|---|---|
| o | any? |
card(children: { any }, o: any?) → any
A sheet of paper laid on the dark.
| arg | type | description |
|---|---|---|
| children | { any } | |
| o | any? |
glass(children: { any }, o: any?) → any
A pane of wet glass over the water: what the HUD's instruments sit on.
| arg | type | description |
|---|---|---|
| children | { any } | |
| o | any? |
action(label: string, callbackId: string, o: any?) → any
The button the game uses everywhere: a plate of brass-edged glass with a small-caps face. `onClick` is a callback id handled by DfShell.
| arg | type | description |
|---|---|---|
| label | string | |
| callbackId | string | |
| o | any? |
statRow(name: string, value: string, o: any?) → any
A stat line in the book's hand: name on the left, value on the right, a dotted leader between them.
| arg | type | description |
|---|---|---|
| name | string | |
| value | string | |
| o | any? |
setMotion(on: boolean) → boolean
| arg | type | description |
|---|---|---|
| on | boolean |
motion( ) → boolean
riseIn(delay: number, o: any?) → any
A panel arriving: lifts and fades in. Stagger `delay` across siblings and they cascade instead of appearing at once.
| arg | type | description |
|---|---|---|
| delay | number | |
| o | any? |
fadeIn(delay: number, duration: number?) → any
| arg | type | description |
|---|---|---|
| delay | number | |
| duration | number? |
breathe(period: number, lo: number, hi: number) → any
The lamp never sits still.
| arg | type | description |
|---|---|---|
| period | number | |
| lo | number | |
| hi | number |
metres(d: number) → string
Formatting
| arg | type | description |
|---|---|---|
| d | number |
pct(x: number) → string
| arg | type | description |
|---|---|---|
| x | number |
clock(seconds: number) → string
| arg | type | description |
|---|---|---|
| seconds | 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.