UnitHudApi beta
Interface of @v12-engine/client
export interface UnitHudApiThe HUD over units while the game runs (client.unitHud, indicators-plan U2, see UnitHudDef): one set for a unit (null for none, undefined to take it back), one set for a unit type over its UnitLook's, what a unit has and which plate it shows now, and the defaults of every def (look, changed in place: client.unitHud.look.within = 60)
Members
defs
readonly defs: {
set(type: string, hud: UnitHudSource | null | undefined): void;
of(type: string): UnitHudSource | null | undefined;
};A unit type's HUD while the game runs, over its UnitLook's: null for none, undefined to take it back
look
readonly look: UnitHudLook;The defaults of every unit's HUD where its def does not say: from GameView.units.hud.look, changed in place
of
of(id: number): UnitHudDef | UnitHudPlate | null;The HUD a unit has, as said (set for it, its type's, the game's, the client's plate), before a plate is picked
plate
plate(id: number): UnitHudPlate | null;The plate a unit shows now, as the client works it out: picked for this screen, its state and its distance
set
set(id: number, hud: UnitHudDef | UnitHudPlate | null | undefined): void;Sets the HUD for a unit, a type's or none: null for no HUD, undefined to take the setting back