Skip to content

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 ​

ParameterType
stateDrainState
valuenumber
optionsDrainOptions

Returns ​

void

Released under the MIT License.