Kiwi.HUD.Widget.MenuItem Class
A MenuItem extends the Button Widget and is typically contained inside of a Menu Widget. Since a MenuItem extends the Button Widget you can access the Input Component that it has to listen to mouse events.
Constructor
Kiwi.HUD.Widget.MenuItem
(
Kiwi.HUD.Widget.MenuItem
-
game
-
text
-
x
-
y
Parameters:
-
game
Kiwi.GameThe game that this MenuItem belongs to.
-
text
StringThe text that is to be inside the menuitem.
-
x
NumberThe position of this menu item on the x-axis.
-
y
NumberThe position of this menu item on the y-axis.
Returns:
Methods
objType
()
String
public
The type of object that this is.
Returns:
String:
"MenuItem"
Properties
input
Kiwi.HUD.HUDComponents.WidgetInput
public
The WidgetInput component that handles the management of events for this button.