ResourceBarProps
Properties
Section titled “Properties”| Property | Type | Default value | Description |
|---|---|---|---|
className? |
string |
undefined |
An override on the track, over size, such as w-full. |
classNames? |
BarClassNames |
undefined |
An override per part, as Bar takes it. |
color? |
string |
undefined |
A CSS colour in place of the resource’s own, for this bar alone. |
entity |
Entity | null |
undefined |
Whose resource it draws: the player’s character, or a target. |
label? |
string |
undefined |
The accessible name in place of the resource’s label, such as "Wolf health" on a target’s bar. |
resource |
ResourceKey |
undefined |
The resource’s key, from defineResource, or healthResource. |
showValue? |
boolean |
false |
Reads the value out beside the bar, 12 / 40. |
size? |
"base" | "sm" | "lg" | "xl" | BarSize |
BarSize.Base |
How large it draws, such as BarSize.ExtraLarge for a boss’s bar, as Bar takes it. |