BarsLook beta
Interface of @v12-engine/client
ts
export interface BarsLookHow the bars over an entity look, decided in code (GameView.units.hud.bars), for each entity in view every frame: nothing for the usual. Kept cheap: the same object may be given every time
Members
colors
ts
colors?: Partial<Record<'health' | 'progress' | 'mana' | 'shield', string>>;Colours of its bars, by kind, over the client's
extra
ts
extra?: readonly {
value: number;
color: string;
}[];Bars of the game's own under the rest: a charge, a timer, ammunition. value is 0..1
hide
ts
hide?: boolean;None over it, whatever it is
label
ts
label?: string | null;The words over it, in place of a hero's level and name: null for none
labelColor
ts
labelColor?: string;CSS colour of the label's words; the client's when left out
show
ts
show?: boolean;Its bars, even when it is not hurt, selected or a hero