Skip to content

five-on-it / apps/client/src/gui/phone-blocks / PhoneInput

Interface: PhoneInput ​

Defined in: apps/client/src/gui/phone-blocks.ts:52

What the phone's panel is built from, and what its controls do.

Properties ​

form ​

form: (field, value) => void

Defined in: apps/client/src/gui/phone-blocks.ts:70

A field of the screen's form changed.

Parameters ​

field ​

string

value ​

string

Returns ​

void


jobs? ​

optional jobs?: JobsView

Defined in: apps/client/src/gui/phone-blocks.ts:61

The Jobs app's view, in the city (none in a run's room: no Jobs app there).


map? ​

optional map?: PhoneMap

Defined in: apps/client/src/gui/phone-blocks.ts:59

The map page's picture, once the level is known.


me? ​

optional me?: object

Defined in: apps/client/src/gui/phone-blocks.ts:63

Where the player is (m), for the map page.

x ​

x: number

z ​

z: number


phone ​

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: "keypad" | "app"; 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

Defined in: apps/client/src/gui/phone-blocks.ts:54

What the server says of the phone; none: the player has none, but the radio.


press ​

press: (id) => void

Defined in: apps/client/src/gui/phone-blocks.ts:66

Presses a button by its id (what it does is looked up when it is pressed).

Parameters ​

id ​

string

Returns ​

void


radio? ​

optional radio?: PhoneRadio & object

Defined in: apps/client/src/gui/phone-blocks.ts:57

The radio for its page: the stations, the one tuned, and what plays (said on it).

Type Declaration ​

now ​

now: string | undefined


submit ​

submit: () => void

Defined in: apps/client/src/gui/phone-blocks.ts:72

Enter in a field: the screen's first button.

Returns ​

void


t ​

t: Translate

Defined in: apps/client/src/gui/phone-blocks.ts:64


ui ​

ui: PhoneUi

Defined in: apps/client/src/gui/phone-blocks.ts:55


waypoint ​

waypoint: (x, z) => void

Defined in: apps/client/src/gui/phone-blocks.ts:68

A click on the map: where, in metres.

Parameters ​

x ​

number

z ​

number

Returns ​

void