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 TypeMethodDescriptionboolean
Indicates whether has children.void
select()
Select the Item.Methods inherited from class rekit.logic.gui.menu.MenuItem
down, focus, getText, internalRender, isSelectable, left, renderItem, right, setHover, setParent, toString, unselect, up
Methods 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:MenuItem
Select the Item. -
hasChildren
public boolean hasChildren()Description copied from class:MenuItem
Indicates whether has children.- Specified by:
hasChildren
in classMenuItem
- Returns:
true
if children are availablefalse
otherwise
-