Package rekit.logic.gui.menu
Class BoolSetting
java.lang.Object
rekit.logic.gui.GuiElement
rekit.logic.gui.menu.MenuItem
rekit.logic.gui.menu.BoolSetting
This class defines a menu to modify setting (boolean) of
GameConf.-
Field Summary
Fields inherited from class rekit.logic.gui.GuiElement
pos, scene, size, visible -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetText()Get the text of the item.booleanIndicates whether has children.voidleft()This method will be invoked to indicate an LEFT request.protected voidRender the Item itself.voidright()This method will be invoked to indicate an RIGHT request.Methods inherited from class rekit.logic.gui.menu.MenuItem
down, focus, internalRender, isSelectable, select, setHover, setParent, toString, unselect, upMethods inherited from class rekit.logic.gui.GuiElement
getPos, getScene, getSize, isVisible, logicLoop, render, setPos, setVisible
-
Constructor Details
-
BoolSetting
Create entry.- Parameters:
scene- the scene (menu)text- the textgameConfVal- the name of the value inGameConf
-
-
Method Details
-
right
public void right()Description copied from class:MenuItemThis method will be invoked to indicate an RIGHT request. -
left
public void left()Description copied from class:MenuItemThis method will be invoked to indicate an LEFT request. -
getText
Description copied from class:MenuItemGet the text of the item. -
renderItem
Description copied from class:MenuItemRender the Item itself.- Overrides:
renderItemin classMenuItem- Parameters:
f- the field
-
hasChildren
public boolean hasChildren()Description copied from class:MenuItemIndicates whether has children.- Specified by:
hasChildrenin classMenuItem- Returns:
trueif children are availablefalseotherwise
-