▣
module · drop-in viewer
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`).
by·posted 1mo ago
What it does
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) andui: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.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.