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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidCreateActors()Create menu widgets such as start button, labels, etc.voidhide()Called once the page is hidden.voidresize(int width, int height)Resize background and game window to the inputted scalevoidshow()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:
CreateActorsin classPage
-
show
public void show()
Description copied from class:PageCalled once the page is show sets input handler and adds actors
-
hide
public void hide()
Description copied from class:PageCalled once the page is hidden. sets input handler to null and clears teh stage
-
resize
public void resize(int width, int height)Resize background and game window to the inputted scale
-
-