|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.TeamHEC.LocomotionCommotion.UI_Elements.GameScreenUI
public class GameScreenUI
Constructor Summary | |
---|---|
GameScreenUI()
|
Method Summary | |
---|---|
void |
create(com.badlogic.gdx.scenes.scene2d.Stage stage)
Create method instantiates all Labels, Sprites and SpriteButtons in the Main game screen and then adds them to the stage. |
static com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle |
getLabelStyle(int fontsize)
|
static int |
getStageEnd()
Get the resources stage end |
static int |
getStageStart()
get the stage start for the menu objects |
static void |
refreshResources()
refreshResources() refreshes all resource quantities for the current player. |
static void |
setResourcesHeight(float height)
Changes all quantity label heights with the toggle resources button |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static com.badlogic.gdx.scenes.scene2d.ui.Label playerScore
public static Sprite game_menuobject_topbar
public static Sprite game_menuobject_ticketenclosure
public static SpriteButton game_menuobject_tickettoggle
public static SpriteButton game_menuobject_goalscreenbtn
public static SpriteButton game_menuobject_menubtn
public static com.badlogic.gdx.scenes.scene2d.ui.Label currentPlayerName
public static Sprite game_menuobject_cornerframe
public static SpriteButton game_menuobject_infobutton
public static SpriteButton game_menuobject_shopbtn
public static SpriteButton game_menuobject_traindepotbtn
public static SpriteButton game_menuobject_endturnbutton
public static int menuobjectsStageStart
public static int menuobjectsStageEnd
public static com.badlogic.gdx.scenes.scene2d.ui.Label goldQuant
public static com.badlogic.gdx.scenes.scene2d.ui.Label coalQuant
public static com.badlogic.gdx.scenes.scene2d.ui.Label oilQuant
public static com.badlogic.gdx.scenes.scene2d.ui.Label electricityQuant
public static com.badlogic.gdx.scenes.scene2d.ui.Label nuclearQuant
public static com.badlogic.gdx.scenes.scene2d.ui.Label cardQuant
public static Sprite game_menuobject_resourcesbar
public static SpriteButton game_card_togglebtn
public static SpriteButton game_resources_togglebtn
public static int resourcesStageStart
public static int resourcesStageEnd
public static int expandedheight
public static boolean resourcebarexpanded
Constructor Detail |
---|
public GameScreenUI()
Method Detail |
---|
public void create(com.badlogic.gdx.scenes.scene2d.Stage stage)
stage
- The stage is the central collection of actors(Sprites and SpriteButtons) passed from GameScreenpublic static int getStageStart()
public static int getStageEnd()
public static void refreshResources()
public static void setResourcesHeight(float height)
height
- the height that the labels are to be raised or lowered topublic static com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle getLabelStyle(int fontsize)
fontsize
- -the size of the font style returned by method
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |