five-on-it / apps/client/src/ui/MainMenu / MainMenuProps
Interface: MainMenuProps
Defined in: apps/client/src/ui/MainMenu.tsx:67
Props of the main menu.
Properties
checkPlatform
checkPlatform: (
base) =>Promise<PlatformInfo>
Defined in: apps/client/src/ui/MainMenu.tsx:75
Asks a platform what it is (its /info).
Parameters
base
string
Returns
Promise<PlatformInfo>
isAdmin?
optionalisAdmin?: () =>Promise<boolean>
Defined in: apps/client/src/ui/MainMenu.tsx:89
Whether the page's session is an admin's of its platform: Admin is offered then (?admin).
Returns
Promise<boolean>
local?
optionallocal?:LocalHost
Defined in: apps/client/src/ui/MainMenu.tsx:77
The desktop app's local game server: Play local and Quit are offered with it.
onlineTarget
onlineTarget: (
chosen) =>OnlineTarget
Defined in: apps/client/src/ui/MainMenu.tsx:73
Where Play online plays with the platform's address the player set (empty for none).
Parameters
chosen
string
Returns
onNavigate
onNavigate: (
href) =>void
Defined in: apps/client/src/ui/MainMenu.tsx:83
Goes to another address of the client (a level, a page, a gallery).
Parameters
href
string
Returns
void
onQuit
onQuit: () =>
void
Defined in: apps/client/src/ui/MainMenu.tsx:85
Closes the app (the desktop app's Quit).
Returns
void
onSound
onSound: (
sound) =>void
Defined in: apps/client/src/ui/MainMenu.tsx:81
Plays a menu cue.
Parameters
sound
Returns
void
onView?
optionalonView?: (view) =>void
Defined in: apps/client/src/ui/MainMenu.tsx:87
Hears where the menu is, for the end-to-end tests.
Parameters
view
Returns
void
search
search:
string
Defined in: apps/client/src/ui/MainMenu.tsx:71
The page's query, whose server and api the links keep.
settings
Defined in: apps/client/src/ui/MainMenu.tsx:69
The player's settings.
steam?
optionalsteam?:MenuSteam
Defined in: apps/client/src/ui/MainMenu.tsx:91
Signing in through Steam at a platform that takes it.
way?
optionalway?:PlayWay
Defined in: apps/client/src/ui/MainMenu.tsx:79
The way to play whose screen the menu opens on, coming back from its game.