Skip to content

UnitTileProps beta ​

Interface of @v12-engine/client/hud

ts
export interface UnitTileProps

What a UnitTile is given

Members ​

active ​

ts
active?: boolean;

One of the subgroup the card is about: a gold edge

class ​

ts
class?: string;

CSS classes added to the tile's element

glyph ​

ts
glyph?: string;

Its drawn picture where it has no icon: its type's id

health ​

ts
health: number;

Its health now, shown in the bar and as a number

icon ​

ts
icon?: string;

Its picture, by address

level ​

ts
level?: number;

A hero's level, on the corner of its picture

maxHealth ​

ts
maxHealth: number;

Its most health: what the bar is filled against

name ​

ts
name: string;

The unit's name, shown on the tile

onAlt ​

ts
onAlt?: (event: MouseEvent) => void;

A right-click on the tile

onPress ​

ts
onPress?: (event: MouseEvent) => void;

A click (with Shift, Ctrl: the caller decides what they do)

style ​

ts
style?: JSX.CSSProperties;

Inline styles of the tile's element

tint ​

ts
tint?: string;

The colour behind its picture: its type's, or its owner's

tip ​

ts
tip?: string;

Words in the tile's tooltip