TextWidget beta
Interface of @v12-engine/client
ts
export interface TextWidget extends WidgetRulesWords. owner for the colour of whose the unit is to the player: theirs, an ally's, an enemy's
Members
bold
ts
bold?: boolean;Whether the words are bold; no when left out
color
ts
color?: Value<string> | 'owner';CSS colour of the words, by a function of the unit, or the player's relation to its owner with owner; the overlay's when left out
font
ts
font?: string;A CSS font family of its own: the overlay's when left out
size
ts
size?: number;Pixels high. 13 when left out
text
ts
text: Value<string>;The words: {level} and {name} in them are the unit's level and its type's name (for a plate of hud.json)