Class BasicMainMenu



  • public class BasicMainMenu
    extends AbstractMainMenu
    This class provides a simple basic main menu if you don't want to set up your own and just want to test your game controllers.
    • Constructor Detail

      • BasicMainMenu

        public BasicMainMenu​(BasicMenuItem[] menuItems)
        Use this constructor to pass your controller and views in order of the main menu
        Parameters:
        menuItems -
      • BasicMainMenu

        public BasicMainMenu​()
    • Method Detail

      • init

        public void init​()
        Description copied from class: AbstractMainMenu
        Use init like the constructor. Init gets called when every system is ready.
        Specified by:
        init in class AbstractMainMenu
      • renderImpl

        public void renderImpl​(float dt)
        Description copied from class: WEScreen
        Main method which get's called every frame. Should be split up in data managment and data displaying.
        Specified by:
        renderImpl in class WEScreen
        Parameters:
        dt - time in ms
      • resize

        public void resize​(int width,
                           int height)
      • show

        public void show​()
      • hide

        public void hide​()
      • pause

        public void pause​()
      • resume

        public void resume​()
      • dispose

        public void dispose​()
      • getController

        public static MenuController getController​()
        Returns:
      • getView

        public static MenuView getView​()
        Returns:
      • supressWarning

        public void supressWarning​()
        If you want to hide the warning message call this method.