five-on-it / apps/client/src/ui/PauseMenu / PauseMenuProps
Interface: PauseMenuProps
Defined in: apps/client/src/ui/PauseMenu.tsx:24
Props of the pause menu.
Properties
hosting?
optionalhosting?:string[]
Defined in: apps/client/src/ui/PauseMenu.tsx:28
Where friends on the network join, while this app hosts the game.
onLeaveRun?
optionalonLeaveRun?: () =>void
Defined in: apps/client/src/ui/PauseMenu.tsx:36
In a run's room: leaves the run for the page it came from (its lobby, or its game's page).
Returns
void
onQuit
onQuit: () =>
void
Defined in: apps/client/src/ui/PauseMenu.tsx:34
Leaves the game for the main menu.
Returns
void
onResume
onResume: () =>
void
Defined in: apps/client/src/ui/PauseMenu.tsx:32
Closes the menu: the game goes on.
Returns
void
onSound
onSound: (
sound) =>void
Defined in: apps/client/src/ui/PauseMenu.tsx:38
Plays a menu cue.
Parameters
sound
Returns
void
pause
pause:
object
Defined in: apps/client/src/ui/PauseMenu.tsx:26
Whether the room waits, and how many play in it.
frozen
frozen:
boolean
players
players:
number
settings
Defined in: apps/client/src/ui/PauseMenu.tsx:30
The player's settings.