Skip to content

BuffsWidget beta ​

Interface of @v12-engine/client

ts
export interface BuffsWidget extends WidgetRules

The unit's buffs, as pictures in a row (IconSet.buffs): with a sweep of how much is left, where the game says (left: 0 to 1 of the buff's time) or where this screen is told the seconds left (EntityState.buffTimes, as the rules share them: RuleSettings.hud.shareBuffTimes; of the longest left seen since the buff came, as an ability's cooldown). Those with no picture are left out, or a dot of the first letter (dots)

Members ​

buffs ​

ts
buffs: 'all' | Value<readonly string[]>;

All the unit's buffs (all), or the game's list of buff ids

dots ​

ts
dots?: boolean;

A dot with the first letter for a buff with no picture: no, left out, when left out

gap ​

ts
gap?: number;

Pixels between two. 2 when left out

left ​

ts
left?: (entity: EntityView, buff: string) => number | undefined;

How much of a buff's time is left, 0 to 1: from the seconds this screen is told when left out, none for undefined

most ​

ts
most?: number;

At most so many. 8 when left out

size ​

ts
size?: number;

Pixels across each. 14 when left out

timers ​

ts
timers?: boolean;

A sweep of the time left where it is known: yes when left out