Skip to content

AbilitiesWidget beta ​

Interface of @v12-engine/client

ts
export interface AbilitiesWidget extends WidgetRules

The unit's abilities, as pictures in a row (IconSet.abilities, the game's icons): each darkened by how much of its cooldown is left, a sweep as it comes back. Its own (own: what the owner and allies are told, OwnEntityState. abilities; to the others, what the rules share, EntityState.abilities, RuleSettings.hud.shareAbilities), or a list of the game's. Those with no picture are a dot with the ability's first letter

Members ​

abilities ​

ts
abilities: 'own' | Value<readonly {
        id: string;
        cooldown?: number;
        level?: number;
    }[]>;

The unit's own (own; to the others, what the rules share), or the game's list: an id each, with its cooldown left in seconds and its level

gap ​

ts
gap?: number;

Pixels between two. 2 when left out

most ​

ts
most?: number;

At most so many. 6 when left out

show ​

ts
show?: 'all' | 'cooldown' | 'ready';

All of them (default), those on their cooldown, those ready

size ​

ts
size?: number;

Pixels across each. 18 when left out