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 String
getText()
Get the text of the item.boolean
Indicates whether has children.void
left()
This method will be invoked to indicate an LEFT request.protected void
Render the Item itself.void
right()
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, up
Methods 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:MenuItem
This method will be invoked to indicate an RIGHT request. -
left
public void left()Description copied from class:MenuItem
This method will be invoked to indicate an LEFT request. -
getText
Description copied from class:MenuItem
Get the text of the item. -
renderItem
Description copied from class:MenuItem
Render the Item itself.- Overrides:
renderItem
in classMenuItem
- Parameters:
f
- the field
-
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
-