A simple button with simple premade 4 states. Based on openfl.display.SimpleButton design.
Constructor
new (w:Int, h:Int, idle:Object, hover:Object, press:Object, ?disabled:Object, ?parent:Object, ?shape:Collider)
Variables
enabled:Bool = true
Button availability state. If false
, does not Interact with mouse and showns disabled
state.