PortraitWidget beta
Interface of @v12-engine/client
ts
export interface PortraitWidget extends WidgetRulesA picture of the unit (its type's portrait, IconSet.units, when left out), round or square, with an edge
Members
border
ts
border?: Value<string> | 'owner';CSS colour of the edge: none when left out
portrait
ts
portrait: true | Value<string>;true for the type's picture, or a picture's address
shape
ts
shape?: 'circle' | 'square';Round (when left out) or square
size
ts
size?: number;Pixels across. 26 when left out