1681-engine / ui / setDrainValue
Function: setDrainValue() ​
ts
function setDrainValue(
state,
value,
options?
): void;Defined in: src/ui/layout/barDrain.ts:27
Sets the bar. A loss restarts the hold, so blows in quick succession show one trail for all of them; a gain fills at once and pulls the trail up with it (a heal has nothing to show behind it).
Parameters ​
| Parameter | Type |
|---|---|
state | DrainState |
value | number |
options | DrainOptions |
Returns ​
void