PauseMenu beta
Interface of @v12-engine/client
export interface PauseMenuThe pause menu (client.menu): open or not, which of its screens it shows, and its lines. Opening it holds a game played in this page, as nothing goes on while the player is away from it; one played with others goes on. What the HUD's part menu draws, and a game's own in its place is given
Members
close
close(): void;Closes the menu, letting a held game go on
entries
entries(): MenuEntry[];Its lines, in order: the client's and the game's
go
go(page: MenuPage): void;Goes to one of its screens: its settings, the keys, its saves, the score, or back to its lines (main)
leave
leave(): boolean;Out of the game, as the menu's Leave does: whether there is a way out
open
readonly open: Accessor<boolean>;Whether the menu is open
page
readonly page: Accessor<MenuPage>;Which of its screens is shown now: main for its lines
pauses
readonly pauses: boolean;Whether opening it holds the game: one played in this page
run
run(entry: MenuEntry): void;Does what a line does, as a click on it does: a game's own is given the client
scene
readonly scene: Accessor<MenuControls>;What the place the game is played in lets it do, as it said: for the HUD's parts that leave or start over. A signal
setScene
setScene(scene: MenuControls): void;Says what the place the game is played in lets it do (leave, restart): what mounts the game does
show
show(): void;Opens the menu, holding the game if it is played in this page
toggle
toggle(): void;Opens the menu when it is closed and closes it when it is open