Skip to content

HudWidgetsApi beta ​

Interface of @v12-engine/client

ts
export interface HudWidgetsApi

The HUD's parts as the game has them while it runs (client.hud.widgets): those of its view (GameView.hud.widgets) and those added since, each of the game's own or one of the client's changed by its id (HudWidgetDef)

Members ​

add ​

ts
add(part: HudWidgetDef): () => void;

Adds a part, after those there are (one of the client's changed again is changed by the last); gives back what takes it away

list ​

ts
list(): readonly HudWidgetDef[];

The parts of the game's, of its view and added, in that order. A signal