enum abstract HealthIconState(String)
package funkin.play.components
from String to String
import funkin.play.components.HealthIcon
Available on all platforms
The current state of the health
Variables
inlineread onlyFromLosing:HealthIconState = "fromLosing"
Indicates that the health icon is transitioning between losing and idle.
The next animation will play once the current animation finishes.
inlineread onlyFromWinning:HealthIconState = "fromWinning"
Indicates that the health icon is transitioning between winning and idle.
The next animation will play once the current animation finishes.
inlineread onlyIdle:HealthIconState = "idle"
Indicates the health icon is in the default animation. Plays as long as health is between 20% and 80%.
inlineread onlyLosing:HealthIconState = "losing"
Indicates the health icon is playing the Losing animation. Plays as long as health is below 20%.
inlineread onlyToLosing:HealthIconState = "toLosing"
Indicates that the health icon is transitioning between idle and losing.
The next animation will play once the current animation finishes.
inlineread onlyToWinning:HealthIconState = "toWinning"
Indicates that the health icon is transitioning between idle and winning.
The next animation will play once the current animation finishes.
inlineread onlyWinning:HealthIconState = "winning"
Indicates the health icon is playing the Winning animation. Plays as long as health is above 80%.