Log inGet started
World

Kobayashi Maru

Branchmain
Branchesmain
Commit692be99dbc

README.md

km.ui.screens

Runtime module mounted by the main scene entrypoint (play only). Owns every 2D screen of KOBAYASHI MARU: the title menu (km_title) and the Act 2 command UI — state panel + cards + officer caption (km_hud), beat countdown (km_clock) and the red alert banner (km_banner).

  • Publishes KM.services.ui = { show(screen, data?), hide(screen), banner(text, secs?) } (screens: title, hud, banner, all).
  • Listens on the KM bus: phase, run:new, test:begin, test:beat, state:changed, order:applied, officer:line, station:focus, alert, test:over.
  • Emits ui:menu(itemId) from the title buttons (night, test, records) and ui:order(orderId, args?) from the cards (click, or number keys 1-9).
  • Layout scales from ui.screenSize(); phones get a compact two-column panel and smaller cards.

Tree builders live in km.ui.hud, km.ui.title; the look in km.ui.look; the vector art in km.ui.art.