Log inGet started
Package

BroadcastScreens.component

README.md

BroadcastScreens

Every screen on the scene's Broadcast entity, built from screens.art and screens.garageArt:

  • Title — the chrome-and-hazard-yellow BATTLEBOX logo and ROBOT COMBAT ARENA over the live faceoff shot, a name plate for each corner (Rules.displayName(slot) in its design's primary paint, YOUR BOT · #nn / OPPONENT · #nn), and two hazard-striped buttons: BUILD YOUR BOT (bb_garage, G / pad Y / tap) and FIGHT (bb_confirm, Enter / pad A / tap).
  • Garage (bb_garage, phase garage) — the robot maker's panels, screens.garageArt.build of the view assembled from screens.garage; every tap/drag/typed id (g:*) goes to Garage.act. It rebuilds on every garage change (at most 10/s while a gizmo or scrub drag runs), reports the panel rects and screen origin to screens.garage (the 3D view's pointer blocker), publishes the free view centre as Rules.state().shotFrame, commits a field when it loses the keyboard, and keeps the keyboard/pad cursor's row scrolled into view.
  • Test drive (bb_test) — TEST DRIVE · <name> banner with the controls and a ◀ GARAGE button (bb_testend).
  • Fight HUD — each corner's health bar with a damage trail, named by Rules.displayName and trimmed in its design's primary paint (Art.slotColor), the match clock (red under 0:10), the build's primary weapon (part label, % of max RPM, or CHARGE for cycle weapons), drive status, 3-2-1-FIGHT! and the 10-count.
  • KNOCKOUT! / JUDGES' DECISION — <NAME> WINS, the reason, judges' scorecards in each build's colours, YOU WIN / YOU LOSE, GARAGE and REMATCH.

Layout scales with ui.screenSize(); on a handheld the HUD status panels move under the health bars, and the garage switches to its portrait layout on a tall screen. A screen is rebuilt only when what it shows changes.