Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·originates fromworld 5281f6dd-3…

ExcavatorHud

The operator's heads-up display, as a widget tree.

by◐sdfsdf·posted 1mo ago
What it does

ExcavatorHud

The operator's heads-up display, as a widget tree.

build(state) returns the whole screen for one instant of the game: the control legend, the machine's status line, and three gauges — how full the bucket is, how much the tipper is carrying, and how much of the heap is left, with the count of loads hauled away in the corner.

Keeping the tree a pure function of the state is what makes the redraw cheap: the caller re-registers the screen only when the reading changes, and only the things the operator looks at move.

Callers

Hud.component — it takes the reading off ExcavatorController and passes it here. Nothing else builds this screen.

Style

Follows the shipped @builtin::examples.ui.* screens: a dark translucent panel, one accent colour, monospace for numbers, and enough shadow to separate the layers. The accent is the machine's own yellow.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

ExcavatorHud.module — the operator's heads-up display, as a widget tree. `build(state)` returns the whole screen for one instant of the game; the `Hud` component registers it and re-registers it when the reading changes. Keeping the tree a pure function of the state is what makes that cheap: the only thing that moves is what the operator looks at. Style follows the shipped `@builtin::examples.ui.*` screens: a dark translucent panel, one accent colour, monospace for numbers, and enough shadow to separate the layers.

label(text: ?, style: ?) → void

argtypedescription
text?
style?

panel(children: ?, style: ?) → void

argtypedescription
children?
style?

keyRow(keys: ?, what: ?) → void

argtypedescription
keys?
what?

gauge(name: ?, reading: ?, fraction: ?, tone: ?) → void

A labelled reading with a fill bar. `tone` colours the fill for the three gauges so the eye can tell them apart without reading the words.

argtypedescription
name?
reading?
fraction?
tone?

build(state: ?) → void

`state` is one reading of the machine: the numbers the HUD shows.

argtypedescription
state?

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ 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".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.