1681-engine / ui / BarOptions
Interface: BarOptions ​
Defined in: src/ui/Bar.ts:6
Extends ​
Properties ​
backAlpha? ​
ts
optional backAlpha?: number;Defined in: src/ui/Bar.ts:16
backColor? ​
ts
optional backColor?: number;Defined in: src/ui/Bar.ts:15
The empty part (default black at half alpha).
color ​
ts
color: number;Defined in: src/ui/Bar.ts:10
The bar itself.
delayMs? ​
ts
optional delayMs?: number;Defined in: src/ui/layout/barDrain.ts:14
How long the trail holds after a loss before draining (default 400 ms).
Inherited from ​
height ​
ts
height: number;Defined in: src/ui/Bar.ts:8
rate? ​
ts
optional rate?: number;Defined in: src/ui/layout/barDrain.ts:16
How fast it drains, in whole bars a second (default 0.6).
Inherited from ​
trailAlpha? ​
ts
optional trailAlpha?: number;Defined in: src/ui/Bar.ts:13
trailColor? ​
ts
optional trailColor?: number;Defined in: src/ui/Bar.ts:12
The trail behind it after a loss (default white at 0.6 alpha).
value? ​
ts
optional value?: number;Defined in: src/ui/Bar.ts:20
Starting value, 0–1 (default 1).
vertical? ​
ts
optional vertical?: boolean;Defined in: src/ui/Bar.ts:18
Fills upward instead of rightward.
width ​
ts
width: number;Defined in: src/ui/Bar.ts:7