Excavator Sim — dig, load, haul
README.md
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.