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:
-
game
Kiwi.GameThe game that this belongs to.
-
text
StringThe text that you want to display inside the button.
-
x
NumberThe x-coordnates of this Widget.
-
y
NumberThe 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.