Skip to content

MenuEntry beta ​

Interface of @v12-engine/client

ts
export interface MenuEntry

A line of the pause menu: what it says, and what it does

Members ​

disabled ​

ts
disabled?: boolean;

Not to be pressed now

id ​

ts
id: string;

The id of the line the menu shows and run is called with

label ​

ts
label: string;

The words of the line

run ​

ts
run: (client: GameClientApi) => void;

What it does. The menu stays open unless it closes it (client.menu.close())