Skip to content

PauseMenu beta ​

Interface of @v12-engine/client

ts
export interface PauseMenu

The 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 ​

ts
close(): void;

Closes the menu, letting a held game go on

entries ​

ts
entries(): MenuEntry[];

Its lines, in order: the client's and the game's

go ​

ts
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 ​

ts
leave(): boolean;

Out of the game, as the menu's Leave does: whether there is a way out

open ​

ts
readonly open: Accessor<boolean>;

Whether the menu is open

page ​

ts
readonly page: Accessor<MenuPage>;

Which of its screens is shown now: main for its lines

pauses ​

ts
readonly pauses: boolean;

Whether opening it holds the game: one played in this page

run ​

ts
run(entry: MenuEntry): void;

Does what a line does, as a click on it does: a game's own is given the client

scene ​

ts
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 ​

ts
setScene(scene: MenuControls): void;

Says what the place the game is played in lets it do (leave, restart): what mounts the game does

show ​

ts
show(): void;

Opens the menu, holding the game if it is played in this page

toggle ​

ts
toggle(): void;

Opens the menu when it is closed and closes it when it is open