DomWidget beta
Interface of @v12-engine/client
ts
export interface DomWidget extends WidgetRulesAn element of the page of the game's own, at its place in the layout: made once for the unit (dom fills it in), moved with it, hidden with the plate, taken out when the unit is gone. What dom gives back is called every frame the plate shows, to keep the element up to date
Members
dom
ts
dom: (element: HTMLElement, entity: EntityView) => ((entity: EntityView) => void) | void;Fills the element for the unit; what it gives back is called every frame to keep the element up to date
height
ts
height: number;The element's height in pixels
width
ts
width: number;The element's width in pixels