Kiwi.HUD.Widget.Button Class
A subclass of the TextField that has its own input component so that you can listen for mouse events on this widget.
Constructor
Kiwi.HUD.Widget.Button
(
Kiwi.HUD.Widget.Button
-
game -
text -
x -
y
Parameters:
-
gameKiwi.GameThe game that this belongs to.
-
textStringThe text that you want to display inside the button.
-
xNumberThe x-coordnates of this Widget.
-
yNumberThe y-coordinates of this Widget.
Returns:
Methods
objType
()
String
public
The type of object that this is.
Returns:
String:
"ButtonWidget"
Properties
input
Kiwi.HUD.HUDComponents.WidgetInput
public
The WidgetInput component that handles the management of events for this button.
