Skip to content

StanceButtonsOptions beta ​

Interface of @v12-engine/client

ts
export interface StanceButtonsOptions

What the stance buttons are made of

Members ​

from ​

ts
from?: number;

The slot of the first of the four (0..11): the first of the menu when left out; the first free ones on the root

icon ​

ts
icon?: (def: StanceDef) => string | undefined;

A picture for each, by its id: none when left out

mark ​

ts
mark?: (def: StanceDef) => string;

How the stance the selected are in is marked: a dot before its name when left out

ts
menu?: string;

The menu the four are on: stances when left out, the root when there is no opener and none is said

opener ​

ts
opener?: {
        label?: string;
        description?: string;
        hotkey?: string;
        slot?: number;
        icon?: string;
    } | false;

The button that opens the stances as a menu of the card's, so that the four take no room on the root: its words, its key and its slot (K and the first free slot when left out). false puts the four on the root themselves, at from

stances ​

ts
stances?: readonly StanceDef[];

The stances, in the order of the buttons: the usual four when left out (STANCES), as stancesPack was given