View source
class FunkinBackButton
package funkin.mobile.ui
extends FunkinButton › FunkinSprite
Available on all platforms
Constructor
new(x:Float = 0, y:Float = 0, color:FlxColor = FlxColor.WHITE, ?confirmCallback:() ‑> Void, restingOpacity:Float = 0.3, instant:Bool = false)
Creates a new FunkinBackButton instance.
Parameters:
x | The x position of the object. |
|---|---|
y | The y position of the object. |
color | Button's optional color. |
confirmCallback | An optional callback function that will be triggered when the object is clicked. |
restingOpacity | An optional float that is the alpha the button will be when not selected/hovered over. |
instant | An optional flag that makes the button not play the full animation before calling the callback. |