public class Notepad
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private GameMain |
game |
private com.badlogic.gdx.scenes.scene2d.Stage |
stage |
private com.badlogic.gdx.scenes.scene2d.ui.Skin |
uiSkin |
Constructor and Description |
---|
Notepad(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 containing all GUI elements
|
com.badlogic.gdx.scenes.scene2d.Stage |
initNotepad()
Initialise the Notepad GUI elements.
|
void |
renderMain()
Renders the Notepad GUI elements
|
void |
resize(int width,
int height)
This method is called when the window is resized.
|
private com.badlogic.gdx.scenes.scene2d.ui.Skin uiSkin
private com.badlogic.gdx.scenes.scene2d.Stage stage
private GameMain game
public Notepad(GameMain game, com.badlogic.gdx.scenes.scene2d.ui.Skin uiSkin)
public com.badlogic.gdx.scenes.scene2d.Stage initNotepad()
public void renderMain()
public com.badlogic.gdx.scenes.scene2d.Stage getStage()
public void dispose()
public void resize(int width, int height)
width
- - The new widthheight
- - The new height