UnitHudLook beta
Interface of @v12-engine/client
export interface UnitHudLookThe 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
above?: number;Cells over the unit's head a plate stands (UnitHudDef.above)
barColors
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
fade?: number;Seconds a plate fades in and out over (UnitHudDef.fade)
fixedSize
fixedSize?: boolean;Plates keep their size on the screen at every distance (UnitHudDef.fixedSize)
font
font?: string;The plates' typeface, as CSS ('Cinzel', serif): the client's Alegreya Sans when left out
grey
grey?: string | false;The filter over a remembered building's plate where its def does not say (UnitHudDef.grey)
ownerColors
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
remembered?: 'none' | 'plate' | 'far';What a remembered building shows where its def does not say (UnitHudDef.remembered): none when left out
render
render?: PlateRender;How every plate is drawn where its def does not say (UnitHudDef.render): canvas when left out
sizeAt
sizeAt?: number;The distance a plate is its own size at, where it is not fixed (UnitHudDef.sizeAt)
within
within?: number;Cells from the camera past which a plate is not drawn (or its far one is): UnitHudDef.within