public class Journal
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
Journal.State |
Modifier and Type | Field and Description |
---|---|
private com.badlogic.gdx.graphics.g2d.Sprite |
backgroundImage |
private com.badlogic.gdx.graphics.g2d.SpriteBatch |
batch |
Clues |
cluesView |
private Notepad |
notepadView |
com.badlogic.gdx.scenes.scene2d.Stage |
stage |
private Journal.State |
state |
private 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 |
initJournal(com.badlogic.gdx.scenes.scene2d.ui.Skin uiSkin,
GameMain game)
Initialises the Journal GUI elements and places them.
|
com.badlogic.gdx.scenes.scene2d.ui.Skin |
initSkin()
Initialises the skin used across the journal
|
void |
renderMain()
Renders relevant GUI for Journal depending on state.
|
void |
resize(int width,
int height)
This method is called when the window is resized.
|
void |
updateMain()
Updates the input processors based on the current state
|
public com.badlogic.gdx.scenes.scene2d.Stage stage
private com.badlogic.gdx.scenes.scene2d.ui.Skin uiSkin
private Journal.State state
private com.badlogic.gdx.graphics.g2d.Sprite backgroundImage
public Clues cluesView
private Notepad notepadView
private com.badlogic.gdx.graphics.g2d.SpriteBatch batch
public Journal(GameMain game)
public com.badlogic.gdx.scenes.scene2d.ui.Skin initSkin()
public com.badlogic.gdx.scenes.scene2d.Stage initJournal(com.badlogic.gdx.scenes.scene2d.ui.Skin uiSkin, GameMain game)
uiSkin
- game
- public void updateMain()
public void renderMain()
public void dispose()
public void resize(int width, int height)
width
- - The new widthheight
- - The new height