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
-
Constructor Summary
Constructors Constructor Description MenuScreen(PirateGame parent) -
Method Summary
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)Called once the window is resized updates constants and stagevoidshow()Called once the page is show sets input handler and adds actorsMethods inherited from class com.badlogic.gdx.ScreenAdapter
dispose, pause, resumeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MenuScreen
-
-
Method Details
-
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)Description copied from class:PageCalled once the window is resized updates constants and stage
-