A NOC screen in its own window, for a second display
A button next to the speed controls opens this page at ?noc=<slot> in a noopener pop-up, so it runs on its own thread. The window never claims the slot, saves or runs a day. The game sends it a copy of S and R over a BroadcastChannel, at most once a second and only while a window is connected, and runs its clicks through an allowlist of the same ACT.* a click uses. The window opens on a dark wallboard: a live world map of links and POPs, traffic and money graphs, alarms, and the hottest ports with the dashboard's own upgrade buttons (connUp). Clicking a POP filters the ports. Details shows the full dashboard. Phones do not show the button.
This commit is contained in:
parent
c04fbe88b8
commit
80f671953a
18 changed files with 752 additions and 6 deletions
|
|
@ -37,7 +37,7 @@ hoisted across files, and top-level statements run in path order. Find code by n
|
|||
| `90-actions/` | The `ACT` map, one file per area (`const ACT` in `10-interface.js`, `Object.assign(ACT,…)` in the rest), and their helpers |
|
||||
| `91-save.js`, `92-audio.js` | Save, export and import; sound effects |
|
||||
| `93-ui/` | DOM helpers (`$`, `btn`, `morph`), the phone tab bar, install pitch, HUD, left panel, city and link panels, decommissioning |
|
||||
| `94-dashboard/` | Scenario and level progress, where to meet a network, customers and connections overviews, lease swaps, the NOC dashboard, the bank, hints |
|
||||
| `94-dashboard/` | Scenario and level progress, where to meet a network, customers and connections overviews, lease swaps, the NOC dashboard and its own window for a second display (`90-noc-window.js`: this page at `?noc=<slot>`, a read-only copy of `S` and `R` over a BroadcastChannel, clicks sent back to the game; `91-noc-wall.js`: its wallboard), the bank, hints |
|
||||
| `95-modals/` | Toasts, notifications, modals, title screen, what's new, help, the link and own-cable modals |
|
||||
| `96-map/` | The canvas: resize, land and clouds, settings, level of detail, link geometry, `draw()`, the world layer, cities, input and click delegation |
|
||||
| `99-loop.js` | `frame()` and `boot()` |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue