BuffsWidget beta
Interface of @v12-engine/client
export interface BuffsWidget extends WidgetRulesThe 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
buffs: 'all' | Value<readonly string[]>;All the unit's buffs (all), or the game's list of buff ids
dots
dots?: boolean;A dot with the first letter for a buff with no picture: no, left out, when left out
gap
gap?: number;Pixels between two. 2 when left out
left
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
most?: number;At most so many. 8 when left out
size
size?: number;Pixels across each. 14 when left out
timers
timers?: boolean;A sweep of the time left where it is known: yes when left out