instruments
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
instruments
<!-- 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/v2firstlight.ui.instruments — the HUD's instruments as widget trees: the clock strip coloured by the sky, the thermometer, the calorie gauge, the streaming wind indicator and the storm glass. Each function returns a node for the current reading; the HUD module places them.
fmt(n: ?, places: ?) → void
| arg | type | description |
|---|---|---|
| n | ? | |
| places | ? |
box(style: ?, children: ?) → void
| arg | type | description |
|---|---|---|
| style | ? | |
| children | ? |
row(style: ?, children: ?) → void
| arg | type | description |
|---|---|---|
| style | ? | |
| children | ? |
tiny(text: ?, style: ?) → void
A small spaced caption inside an instrument.
| arg | type | description |
|---|---|---|
| text | ? | |
| style | ? |
skyColor(tw: ?, progress: ?) → void
The colour the sky holds at twilight `tw` (0..1) on a day `progress` (0..1) through the polar night: black, then deep blue, then violet and rose as the month turns.
| arg | type | description |
|---|---|---|
| tw | ? | |
| progress | ? |
clockStrip(day: ?, t: ?, twilightNow: ?) → void
A strip of the day, midnight at each end and noon in the middle, tinted by the sky the day will hold along it; a sun marker rides it at the hour.
| arg | type | description |
|---|---|---|
| day | ? | |
| t | ? | |
| twilightNow | ? |
thermometer(coreC: ?, frostbite: ?) → void
The column's height is the core temperature between 32 and 37 °C; its colour goes from amber at a living warmth to blue-white below the frostbite line.
| arg | type | description |
|---|---|---|
| coreC | ? | |
| frostbite | ? |
kcalWord(kcal: ?) → void
A gauge with a needle: empty at the left stop and a full day's food at the right one. The reading is a word: a survivor has no calorie counter.
| arg | type | description |
|---|---|---|
| kcal | ? |
calorieGauge(kcal: ?) → void
| arg | type | description |
|---|---|---|
| kcal | ? |
windWord(ms: ?) → void
| arg | type | description |
|---|---|---|
| ms | ? |
windToward(dir: ?) → void
The compass point the wind blows toward, from its radians (0 is north).
| arg | type | description |
|---|---|---|
| dir | ? |
windStream(windMs: ?, windDir: ?, phase: ?) → void
A stream of ticks running the way the wind blows across a small glass. `phase` advances with the wind speed, so the ticks stream faster in a gale.
| arg | type | description |
|---|---|---|
| windMs | ? | |
| windDir | ? | |
| phase | ? |
barometer(storm: ?) → void
A storm glass, Calm at the left stop and Blizzard at the right, whose needle is tomorrow's storm reading. `storm` nil is a glass with no reading.
| arg | type | description |
|---|---|---|
| storm | ? |
reticle(active: ?, style: ?) → void
| arg | type | description |
|---|---|---|
| active | ? | |
| style | ? |
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.