Skip to content

ViewUnitHud beta ​

Interface of @v12-engine/client

ts
export interface ViewUnitHud

The HUD over every unit, as the game's view says it (GameView.units.hud): the plates and the rules around them, the defaults of every unit's, the bars, or a system of the game's own in the client's place

Members ​

bars ​

ts
bars?: BarsChooser;

How the bars over an entity look, decided for each in view, every frame: hidden, shown, coloured, a bar of its own (see BarsLook)

def ​

ts
def?: UnitHudSource;

The HUD over every unit (see UnitHudDef): a plate (UnitHudPlate: widgets as data) or plates with rules around them, picked by who looks and the unit's state, how far, at which size, faded; or a function deciding it every frame for each unit in view (it is given the client's to start from). A type's own (UnitLook.unitHud) goes first, the client's when left out. client.unitHud changes them while the game runs

look ​

ts
look?: UnitHudLook;

The defaults of every unit's HUD where its def does not say (within, fixedSize, fade...): client.unitHud.look while the game runs

system ​

ts
system?: (kit: UnitHudKit) => UnitHudSystem;

A system of plates of the game's own, in place of the client's: made once, told every frame where every unit in view is on the screen, drawing with the overlay's canvas, the page or Babylon GUI as it likes