five-on-it / apps/client/src/ui/phone-view / buttonsOf
Function: buttonsOf()
buttonsOf(
ui,phone,radio?,jobs?,scanner?,police?,techState?):PhoneButton[]
Defined in: apps/client/src/ui/phone-view.ts:244
The buttons of what shows, in the order the panel numbers them (the radio's when it has stations; the Jobs app's when the phone is in the city: jobs, none in a run's room; the police scanner's when the player carries one: scanner; the Tech page's when they have tech of their own: tech); the negotiator's call over all of it while one is on (police).
Parameters
ui
phone
{ apps: object[]; calls: object[]; camera?: { note?: "missed" | "subject" | "away" | "saved"; shots: number; }; contacts: object[]; has: boolean; messages: object[]; screen?: { app: string; buttons: object[]; form: object[]; kind: "app" | "keypad"; name: string; note?: string; noteKey?: "wrongCode" | "nothing"; source: "phone" | "world"; text: string; title?: string; }; talk?: { choices: object[]; dialogue: string; goesOn: boolean; line?: string; note?: string; speaker?: string; state: "ringing" | "talking"; via: "call" | "face"; with: string; }; type: "phone"; unread: number; waypoint?: { label?: string; x: number; z: number; }; } | undefined
radio?
jobs?
scanner?
police?
techState?
backdoor
boolean = ...
battery
number = ...
cruiser
number = ...
fried
boolean = ...
hacking
number = ...
jammer
boolean = ...
jamming
boolean = ...
lawyer
number = ...
loop
number = ...
scout
number = ...
smoked
boolean = ...
tipped
boolean = ...
traffic
number = ...