five-on-it / apps/client/src/ui/MainMenu / MainMenuProps
Interface: MainMenuProps
Defined in: apps/client/src/ui/MainMenu.tsx:117
Props of the main menu.
Properties
checkPlatform
checkPlatform: (
base) =>Promise<PlatformInfo>
Defined in: apps/client/src/ui/MainMenu.tsx:125
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:139
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:127
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:123
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:133
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:135
Closes the app (the desktop app's Quit).
Returns
void
onSound
onSound: (
sound) =>void
Defined in: apps/client/src/ui/MainMenu.tsx:131
Plays a menu cue.
Parameters
sound
Returns
void
onView?
optionalonView?: (view) =>void
Defined in: apps/client/src/ui/MainMenu.tsx:137
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:121
The page's query, whose server and api the links keep.
settings
Defined in: apps/client/src/ui/MainMenu.tsx:119
The player's settings.
steam?
optionalsteam?:MenuSteam
Defined in: apps/client/src/ui/MainMenu.tsx:141
Signing in through Steam at a platform that takes it.
way?
optionalway?:PlayWay
Defined in: apps/client/src/ui/MainMenu.tsx:129
The way to play whose screen the menu opens on, coming back from its game.