Log inGet started
World

Crumple Zone: Crash Test Dummy Simulator

Branchmain
Commit8d4e06b8c8

README.md

ReadoutPanel

Shows a crash test's CrashResult on THIS player's screen, in any crashReadouts style. Put it on any entity (it needs no sibling components); UI is local, so every peer calls :show(result) on its own panel with the result the rig shares.

  • Fields: style (8 ids), visible, anchor (topRight / topLeft / bottomRight / bottomLeft), carEntity / headEntity (what the floating labels follow), carLabelHeight, headLabelHeight, layer, closable, showSample.
  • Methods: :show(result?, anchors?), :hide(), :setStyle(id), :setAnchors({ car, head }), :collapse(on?), :current().
  • Events: onClosed, onCollapsed { collapsed }.
  • Placement: about a third of a desktop screen in the chosen corner, beside the 3D view; a bottom sheet on screens narrower than 640 points (phones); a wide bar for lowerThird; the whole screen for floating. Slides in on show; 40-point round collapse and close buttons sit outside the panel (above the sheet on phones), and collapsing leaves a tappable "CRASH RESULTS ★★★★" pill.