Constructor
Variables
defaultScale:Float = 1
The Default Scale For The Icon
This is what scale the icon should return to when its bump animation is finished
healthSteps:Map<Int, OneOfTwo<String, Int>> = null
Health steps in this format:
Min Percentage => Frame Index / Animation Name
sprTrackerAlignment:TrackerAlignment = RIGHT
Where to place the icon in relation to the sprite
LEFT: Left of the sprite
CENTER: Center of the sprite
RIGHT: Right of the sprite
sprTrackerOffset:FlxPoint = new FlxPoint(10, -30)
Offset of the icon in relation to the sprite
By default it is set to (10, -30) and is intended to be used with Alphabet
Methods
View in GitHub
dynamicgetIconAnim(health:Float):IconAnimData
Gets the animation data for a specific health percentage
Parameters:
health | Health percentage |
---|
Returns:
Animation data (-1 if invalid)
View in GitHub
setIcon(char:String, allowAnimated:Bool = true):Void
Sets the icon to the specified character
Parameters:
char | Character to set the icon to |
---|---|
allowAnimated | Whenever the icon can be animated |
Inherited Variables
Defined by FunkinSprite
Inherited Methods
Defined by FunkinSprite
View in GitHub
inlineaddAnim(name:String, prefix:String, frameRate:Float = 24, ?looped:Bool, ?forced:Bool, ?indices:Array<Int>, x:Float = 0, y:Float = 0, animType:XMLAnimType = NONE):ErrorCode
View in GitHub