▣
module · drop-in viewer
hbstyle
HULLBREAKER's visor language: the palette and the six primitives every panel of the helmet HUD is built from, so the instruments read as one panel rather than as a pile of boxes.
by·posted 2mo ago
What it does
hbstyle
HULLBREAKER's visor language: the palette and the six primitives every panel of the helmet HUD is built from, so the instruments read as one panel rather than as a pile of boxes.
local S = require("ui.hbstyle")
The palette says what a colour means
| token | meaning |
|---|---|
ink, dim, faint, faintest | readout, label, hairline, hairline-quieter |
cyan | suit systems — machinery, not decoration |
green | banked tonnage: the only good news in the frame |
amber | you are spending something you cannot get back |
red | you are about to die |
orange | the torch, matching the one warm light in the scene |
violet | mass on the clamp |
glass, glassLo, well | panel fill, quieter fill, bar track |
glass is nearly opaque on purpose. The frame behind the HUD swings from
black vacuum to a lit planet filling half the visor, and a readout legible
over one and washed out over the other is not a readout.
Primitives
pane(extra)— the glass a cluster sits on: a lit top edge and a step in lightness, which is what reads as raised on a near-black frame.bar(pct, color, opts)— the HUD's one repeated instrument.opts.ghostdraws a dimmer fill behind the live one (the quota bar uses it for cargo carried but not yet banked).gauge(caption, value, pct, color, opts)— caption and value on a line, bar under it.pips(count, litCount, opts)— discrete danger as discrete lights.cap/num/txt— the three type sizes, all monospace.riseIn(delay, dy)— the one-shot entrance the cards come in on. Only a screen registered once may carry it: a node re-registered every frame restarts its animation, so anything on the live instrument layer blinks from a computed opacity instead.clock(seconds)/tonnes(t)— the two formats the run reads by.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.