class flixel.addons.ui.FlxClickArea extends FlxObject
Available on all platforms
Trimmed-down button, invisible click area, only responds to onUP
Instance Fields
function new(?X:Float = 0, ?Y:Float = 0, ?Width:Float = 80, ?Height:Float = 20, ?OnUp:Void ->Void = null):Void
Creates a new FlxClickArea object * and a callback function on the UI thread. * *
X | The X position of the button. * |
Y | The Y position of the button. * |
Width | Width of the area * |
Height | Height of the area * |
OnUp | The function to call whenever the button is clicked. |