DrawnWidget beta
Interface of @v12-engine/client/hud
ts
export interface DrawnWidgetA part as it is drawn now: the client's changed by the game's of its id, or the game's own
Members
client
ts
client?: HudWidgetDef;The client's own, where it is one: what draws it where the game does not
game
ts
game?: Pick<HudWidgetDef, 'component' | 'mount'>;What the game draws in its place, or of its own
id
ts
id: string;Its id: the client's part's (HudWidget), or the game's own
order
ts
order: number;Among the parts of its place, the least first: the part's order, as the game or the client sets it
place
ts
place: HudPlace;Where it is drawn, and among the parts there (the least first)
section
ts
section: 'inline' | false | undefined;A section the player moves (undefined), one in the flow of its place (inline), or none
style
ts
style?: string;CSS for the element of a part of the game's own
when
ts
when: () => boolean;Whether it is drawn now, as the client's and the game's say (read as a signal)