Package com.mygdx.game.UI
Class MenuScreen
- java.lang.Object
-
- com.badlogic.gdx.ScreenAdapter
-
- com.mygdx.game.UI.Page
-
- com.mygdx.game.UI.MenuScreen
-
- All Implemented Interfaces:
com.badlogic.gdx.Screen
public class MenuScreen extends Page
Contains widgets defining the start-of-game menu screen.
-
-
Constructor Summary
Constructors Constructor Description MenuScreen(PirateGame parent)
Creates a Menu Screen
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
CreateActors()
Create menu widgets such as start button, labels, etc.void
hide()
Hides the Menu Screenvoid
resize(int width, int height)
Resizes the viewportvoid
show()
Shows the Menu Screen
-
-
-
Constructor Detail
-
MenuScreen
public MenuScreen(PirateGame parent)
Creates a Menu Screen- Parameters:
parent
- The game object this screen is viewing
-
-
Method Detail
-
CreateActors
protected void CreateActors()
Create menu widgets such as start button, labels, etc.- Specified by:
CreateActors
in classPage
-
show
public void show()
Shows the Menu Screen
-
hide
public void hide()
Hides the Menu Screen
-
-