Package rekit.logic.gui.menu
Class MenuActionItem
java.lang.Object
rekit.logic.gui.GuiElement
rekit.logic.gui.menu.MenuItem
rekit.logic.gui.menu.MenuActionItem
- Direct Known Subclasses:
ArcadeLevelItem
This class realizes a
MenuItem with an attached Action.-
Field Summary
Fields inherited from class rekit.logic.gui.GuiElement
pos, scene, size, visible -
Constructor Summary
ConstructorsConstructorDescriptionMenuActionItem(IScene scene, String text, VoidFunction selectAction) Create MenuActionItem.MenuActionItem(IScene scene, Vec size, String text, VoidFunction selectAction) Create MenuActionItem. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether has children.voidselect()Select the Item.Methods inherited from class rekit.logic.gui.menu.MenuItem
down, focus, getText, internalRender, isSelectable, left, renderItem, right, setHover, setParent, toString, unselect, upMethods inherited from class rekit.logic.gui.GuiElement
getPos, getScene, getSize, isVisible, logicLoop, render, setPos, setVisible
-
Constructor Details
-
MenuActionItem
Create MenuActionItem.- Parameters:
scene- the scenetext- the textselectAction- the action
-
MenuActionItem
Create MenuActionItem.- Parameters:
scene- the scenetext- the textsize- the sizeselectAction- the action
-
-
Method Details
-
select
public void select()Description copied from class:MenuItemSelect the Item. -
hasChildren
public boolean hasChildren()Description copied from class:MenuItemIndicates whether has children.- Specified by:
hasChildrenin classMenuItem- Returns:
trueif children are availablefalseotherwise
-