Package rekit.logic.gui.menu
Class MenuGrid
java.lang.Object
rekit.logic.gui.GuiElement
rekit.logic.gui.menu.MenuItem
rekit.logic.gui.menu.SubMenu
rekit.logic.gui.menu.MenuGrid
- Direct Known Subclasses:
MainMenuGrid
This class realizes a
MenuList
. In this SubMenu Items will be
arranged as Grid-
Field Summary
Fields inherited from class rekit.logic.gui.GuiElement
pos, scene, size, visible
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Calculate the new Position of each Item.void
menuDown()
Process down while this menu is selected.void
menuLeft()
Process left while this menu is selected.void
Process right while this menu is selected.void
menuUp()
Process up while this menu is selected.Methods inherited from class rekit.logic.gui.menu.SubMenu
addItem, down, focus, hasChildren, internalRender, left, removeItem, renderMenu, right, select, setIndex, setItemSize, unselect, up
Methods inherited from class rekit.logic.gui.menu.MenuItem
getText, isSelectable, renderItem, setHover, setParent, toString
Methods inherited from class rekit.logic.gui.GuiElement
getPos, getScene, getSize, isVisible, logicLoop, render, setPos, setVisible
-
Constructor Details
-
MenuGrid
Create a MenuGrid.- Parameters:
scene
- the scenetext
- the text (name)colCount
- the column count
-
MenuGrid
Create a MenuGrid.- Parameters:
scene
- the scenetext
- the text (name)colCount
- the column countsizeX
- the itemSize XsizeY
- the itemSize Y
-
-
Method Details
-
calcItemPos
protected void calcItemPos()Description copied from class:SubMenu
Calculate the new Position of each Item.- Specified by:
calcItemPos
in classSubMenu