Screens.component
This package holds more than this page lists. See all of its files in its world.
README.md
rtsSkirmishKit.Screens
The local host for Warfront's front end. Put it on any plain entity (no fields, nothing else needed); Warfront.skirmish() adds it to a WarfrontScreens entity in the scene build, and require("rtsSkirmishKit.screens").mount() spawns one itself when there is none.
In play, on every machine, it mounts rtsSkirmishKit.screens against rtsSkirmishKit.session and ticks it each frame, so the title, skirmish setup, 3-2-1-FIGHT countdown, in-match objective line and victory / defeat report follow Session.phase(). It reads keyboard and gamepad through a controlsKit controller of its own (card scheme: arrows / WASD / d-pad / stick move, Enter / Space / A choose, Backspace / B back, Q / E / bumpers switch setup tabs on small screens), routes the screens' wf:* ui callbacks (mouse and touch), and stands down while a menusKit Settings or Credits screen is open. It unmounts in onDestroy and when play stops.