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.
-
-
Field Summary
Fields Modifier and Type Field Description int
difficulty
-
Constructor Summary
Constructors Constructor Description MenuScreen(PirateGame parent)
-
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()
Called once the page is hidden.void
resize(int width, int height)
Called once the window is resized updates constants and stagevoid
show()
Called once the page is show sets input handler and adds actors
-
-
-
Constructor Detail
-
MenuScreen
public MenuScreen(PirateGame parent)
-
-
Method Detail
-
CreateActors
protected void CreateActors()
Create menu widgets such as start button, labels, etc.- Specified by:
CreateActors
in classPage
-
show
public void show()
Description copied from class:Page
Called once the page is show sets input handler and adds actors
-
hide
public void hide()
Description copied from class:Page
Called once the page is hidden. sets input handler to null and clears teh stage
-
-