Skip to content

MenuChoice beta ​

Interface of @v12-engine/client/app

ts
export interface MenuChoice

A button of a menu (MenuScene.buttons): where it goes, with what, or what it does (run)

Members ​

args ​

ts
args?: SceneArgs<Record<string, unknown>>;

What that scene is opened with

label ​

ts
label: string;

The button's words

run ​

ts
run?: (goTo: GoTo) => void;

What it does instead of opening a scene, given goTo to reach others

scene ​

ts
scene?: SceneRef<any>;

The scene it opens

shown ​

ts
shown?: () => boolean;

Whether it shows, asked as the menu opens (exitButton: in a desktop shell alone). Always when left out; a menu drawn by the game's own mount asks it itself