five-on-it / apps/client/src/renderer/menu
apps/client/src/renderer/menu
The main menu (?menu, or a bare address): the burning car behind it (menu-scene.ts), the menu itself (ui/MainMenu.tsx), the player's settings (ui/settings.ts, the volumes applied as they change) and its quiet cues (ui-sounds.ts). Play online asks the page's platform (ui/online.ts, ui/platform.ts), Play local the desktop app's bridge (window.foi.local, electron/bridge.ts); a city chosen goes to ?level=<name> on the server it plays on, a gallery or the community's pages to theirs; the page's platform says whether the player signed in as one of its admins (Admin goes to ?admin), and a platform for the game's owners where its Steam sign-in starts: Steam's OpenID for a page over http(s), the app's Steam ticket or Steam's page in a window of the app's for the desktop app's (window.foi.steam, ui/steam.ts). window.__menu() tells the end-to-end tests where the menu is, what the backdrop shows, the cues played and the settings.