Package com.mygdx.game.UI
Class ShopScreen
- java.lang.Object
-
- com.badlogic.gdx.ScreenAdapter
-
- com.mygdx.game.UI.Page
-
- com.mygdx.game.UI.ShopScreen
-
- All Implemented Interfaces:
com.badlogic.gdx.Screen
public class ShopScreen extends Page
NEW Contains widgets defining the shop screen.
-
-
Constructor Summary
Constructors Constructor Description ShopScreen(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.voidrender(float delta)Called every frame calls all other functions that need to be called every frame by rasing events and update methodsvoidresize(int width, int height)Used to resize the background texture to the correct size to fill the windowvoidshow()Called once the page is show sets input handler and adds actorsprotected voidupdate()Called once per frame
-
-
-
Constructor Detail
-
ShopScreen
public ShopScreen(PirateGame parent)
-
-
Method Detail
-
render
public void render(float delta)
Called every frame calls all other functions that need to be called every frame by rasing events and update methods
-
update
protected void update()
Description copied from class:PageCalled once per frame
-
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)Used to resize the background texture to the correct size to fill the window
-
-