public class Clues
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private com.badlogic.gdx.scenes.scene2d.ui.Table |
cluesTable |
private GameMain |
game |
private com.badlogic.gdx.scenes.scene2d.Stage |
stage |
private com.badlogic.gdx.scenes.scene2d.ui.Skin |
uiSkin |
| Constructor and Description |
|---|
Clues(GameMain game,
com.badlogic.gdx.scenes.scene2d.ui.Skin uiSkin) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
This method disposes of all elements
|
com.badlogic.gdx.scenes.scene2d.Stage |
getStage()
Returns the stage used to hold GUI elements
|
com.badlogic.gdx.scenes.scene2d.Stage |
initClues(GameMain game,
com.badlogic.gdx.scenes.scene2d.ui.Skin uiSkin)
Creates the Clues GUI elements and places them correctly.
|
void |
renderMain()
Renders the Clues GUI elements
|
void |
resize(int width,
int height)
This method is called when the window is resized.
|
void |
updateMain()
Updates the clues table
|
private GameMain game
private com.badlogic.gdx.scenes.scene2d.ui.Table cluesTable
private com.badlogic.gdx.scenes.scene2d.Stage stage
private com.badlogic.gdx.scenes.scene2d.ui.Skin uiSkin
public Clues(GameMain game, com.badlogic.gdx.scenes.scene2d.ui.Skin uiSkin)
public com.badlogic.gdx.scenes.scene2d.Stage initClues(GameMain game, com.badlogic.gdx.scenes.scene2d.ui.Skin uiSkin)
game - uiSkin - public void updateMain()
public void renderMain()
public void dispose()
public void resize(int width,
int height)
width - - The new widthheight - - The new heightpublic com.badlogic.gdx.scenes.scene2d.Stage getStage()