Skip to content

ViewAction beta ​

Interface of @v12-engine/client

ts
export interface ViewAction

A button of the game's own on the HUD

Members ​

command ​

ts
command: ModCommand;

What pressing it sends: one of the game's commands, put together with its make

description ​

ts
description?: string;

Shown when the pointer is over it

enabled ​

ts
enabled?: (report: Record<string, unknown>) => boolean;

Whether it can be pressed now, as far as the report says. Always when left out. The simulation decides all the same

id ​

ts
id: string;

The button's id, unique among the view's actions

label ​

ts
label: string;

The words on the button

visible ​

ts
visible?: (report: Record<string, unknown>) => boolean;

Whether the button is on the HUD at all, as far as the report says: a game with a button for one mission hides it in the others. Always when left out