Constructor
new StatusBar()
Creates an instance of StatusBar.
Initializes the status bar with default values and loads the images.
- Source:
Methods
resolveImageIndex() → {number}
Resolves the image index based on the percentage of health.
- Source:
Returns:
The index of the image to be displayed.
- Type
- number
setPercentage(percentage)
Sets the percentage of the health status bar.
Parameters:
Name | Type | Description |
---|---|---|
percentage |
number | The percentage of health to be displayed. |
- Source: