public class PauseMenuHud extends Hud
Modifier and Type | Field and Description |
---|---|
static float |
BUTTON_SPACING
Stores the spacing between the buttons displayed in a list.
|
static com.badlogic.gdx.graphics.Color |
OVERLAY_COLOR
Holds the color which overlays the screen below the pause menu.
|
static float |
TABLE_OFFSET
Stores the amount the table is offset upwards so that the "Paused" label is shown higher up the screen.
|
Constructor and Description |
---|
PauseMenuHud(com.badlogic.gdx.scenes.scene2d.Stage stage,
com.jonathan.survivor.World world)
Accepts the stage where widgets are placed.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(float deltaTime)
Draws the Hud to the screen using the stage.
|
void |
reset(float guiWidth,
float guiHeight)
Called either when this pause menu is supposed to be displayed, or when the screen is resized.
|
addHudListener
public static final com.badlogic.gdx.graphics.Color OVERLAY_COLOR
public static final float BUTTON_SPACING
public static final float TABLE_OFFSET
public PauseMenuHud(com.badlogic.gdx.scenes.scene2d.Stage stage, com.jonathan.survivor.World world)
public void draw(float deltaTime)
Hud