Package rekit.logic.gui.menu
Class MainMenuGrid
java.lang.Object
rekit.logic.gui.GuiElement
rekit.logic.gui.menu.MenuItem
rekit.logic.gui.menu.SubMenu
rekit.logic.gui.menu.MenuGrid
rekit.logic.gui.menu.MainMenuGrid
This class realizes the Main Menu displaying a list of MenuItems.
- 
Field Summary
Fields inherited from class rekit.logic.gui.GuiElement
pos, scene, size, visible - 
Constructor Summary
ConstructorsConstructorDescriptionMainMenuGrid(IScene scene, String text, int colCount) Create a new MainMenuGrid. - 
Method Summary
Methods inherited from class rekit.logic.gui.menu.MenuGrid
calcItemPos, menuDown, menuLeft, menuRight, menuUpMethods inherited from class rekit.logic.gui.menu.SubMenu
addItem, down, focus, hasChildren, left, removeItem, renderMenu, right, select, setIndex, setItemSize, unselect, upMethods inherited from class rekit.logic.gui.menu.MenuItem
getText, isSelectable, renderItem, setHover, setParent, toStringMethods inherited from class rekit.logic.gui.GuiElement
getPos, getScene, getSize, isVisible, render, setPos, setVisible 
- 
Constructor Details
- 
MainMenuGrid
Create a new MainMenuGrid.- Parameters:
 scene- the scenetext- the text (name)colCount- the amount of columns
 
 - 
 - 
Method Details
- 
logicLoop
public void logicLoop()Description copied from class:GuiElementTemplate method that will be called periodically after being added to a
IScene.Should be overwritten in sub classes for implementing custom logic, physics emulation, time-based actions, ...
- Overrides:
 logicLoopin classGuiElement
 - 
internalRender
Description copied from class:GuiElementTemplate method that will be called periodically after being added to a
IScene. Must be as performant as possible to keep the FPS low, since it will be called in every render-loop.Should be overwritten in sub classes for custom visualization using the
GameGrid.- Overrides:
 internalRenderin classSubMenu- Parameters:
 f- theGameGridthat represents the games field and supplies primitive drawing operations.
 
 -