Skip to content

UnitHudLook beta ​

Interface of @v12-engine/client

ts
export interface UnitHudLook

The defaults of every unit's HUD where its def does not say (GameView.units.hud.look, client.unitHud.look): plain plates and the client's own too

Members ​

above ​

ts
above?: number;

Cells over the unit's head a plate stands (UnitHudDef.above)

barColors ​

ts
barColors?: BarColors;

The bars' colours where a widget says none, as CSS: health by how full it is (the first whose above it is over, the last for the rest; green over 60%, yellow over 30%, red), mana, shield, experience, progress

fade ​

ts
fade?: number;

Seconds a plate fades in and out over (UnitHudDef.fade)

fixedSize ​

ts
fixedSize?: boolean;

Plates keep their size on the screen at every distance (UnitHudDef.fixedSize)

font ​

ts
font?: string;

The plates' typeface, as CSS ('Cinzel', serif): the client's Alegreya Sans when left out

grey ​

ts
grey?: string | false;

The filter over a remembered building's plate where its def does not say (UnitHudDef.grey)

ownerColors ​

ts
ownerColors?: {
        self?: string;
        ally?: string;
        enemy?: string;
    };

What tells whose a unit is, in its name's colour and a widget's owner colour (CSS): the player's own, an ally's, an enemy's. Pale cream, pale blue and coral where nothing is said

remembered ​

ts
remembered?: 'none' | 'plate' | 'far';

What a remembered building shows where its def does not say (UnitHudDef.remembered): none when left out

render ​

ts
render?: PlateRender;

How every plate is drawn where its def does not say (UnitHudDef.render): canvas when left out

sizeAt ​

ts
sizeAt?: number;

The distance a plate is its own size at, where it is not fixed (UnitHudDef.sizeAt)

within ​

ts
within?: number;

Cells from the camera past which a plate is not drawn (or its far one is): UnitHudDef.within