public class SurvivalGuideHud extends Hud
Modifier and Type | Field and Description |
---|---|
static float |
BACK_BUTTON_X_OFFSET
Stores the offset used to anchor the back button to the bottom-right of the screen with a certain padding.
|
static float |
BACK_BUTTON_Y_OFFSET |
static float |
HEADER_X_OFFSET
Stores the x-offset of the "Guide" header relative to the center of the screen.
|
static float |
HEADER_Y_OFFSET
Stores the offset between the bottom of the "Guide" header and the top of the listof entries.
|
static float |
LIST_X_OFFSET
Holds the amount the list is nudged to the left.
|
static float |
LIST_Y_OFFSET
Stores the amount the list is offset up, relative to the center of the screen.
|
static float |
SCROLL_PANE_HEIGHT |
static float |
SCROLL_PANE_WIDTH
Holds the width and height of the scroll pane where entries are displayed in the survival guide.
|
Constructor and Description |
---|
SurvivalGuideHud(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 float LIST_Y_OFFSET
public static final float LIST_X_OFFSET
public static final float SCROLL_PANE_WIDTH
public static final float SCROLL_PANE_HEIGHT
public static final float HEADER_X_OFFSET
public static final float HEADER_Y_OFFSET
public static final float BACK_BUTTON_X_OFFSET
public static final float BACK_BUTTON_Y_OFFSET
public SurvivalGuideHud(com.badlogic.gdx.scenes.scene2d.Stage stage, com.jonathan.survivor.World world)
public void draw(float deltaTime)
Hud