public class Gui
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<GuiComponent> |
components |
static org.newdawn.slick.Color |
GRADIENT |
int |
guiLeft |
int |
guiTop |
static org.newdawn.slick.Color |
HOVER_INFO_BACKGROUND |
protected Gui |
parent |
int |
sizeX |
int |
sizeY |
| Constructor and Description |
|---|
Gui(int sizeX,
int sizeY) |
Gui(int sizeX,
int sizeY,
Gui parent) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doesPauseGame() |
boolean |
hasGradient() |
void |
initGui(IGameInstance game) |
protected void |
initGuiVars(IGameInstance game) |
boolean |
isMouseOver(IGameInstance game) |
boolean |
isMouseOverComponent(IGameInstance game) |
boolean |
isMouseOverPrioritized(IGameInstance game,
GuiComponent component) |
boolean |
onButtonActivated(IGameInstance game,
int button) |
void |
onClosed(IGameInstance game) |
boolean |
onKeyboardAction(IGameInstance game,
int button,
char character) |
boolean |
onMouseAction(IGameInstance game,
int button,
float x,
float y) |
void |
onOpened(IGameInstance game) |
void |
prioritize(GuiComponent component) |
void |
render(IGameInstance game,
IAssetManager manager,
org.newdawn.slick.Graphics g) |
void |
renderOverlay(IGameInstance game,
IAssetManager manager,
org.newdawn.slick.Graphics g) |
protected boolean |
tryEscape(IGameInstance game) |
void |
update(IGameInstance game) |
public static final org.newdawn.slick.Color GRADIENT
public static final org.newdawn.slick.Color HOVER_INFO_BACKGROUND
protected final Gui parent
public int sizeX
public int sizeY
public int guiLeft
public int guiTop
protected java.util.List<GuiComponent> components
public Gui(int sizeX,
int sizeY)
public Gui(int sizeX,
int sizeY,
Gui parent)
public void onOpened(IGameInstance game)
public void onClosed(IGameInstance game)
public void initGui(IGameInstance game)
protected void initGuiVars(IGameInstance game)
public void update(IGameInstance game)
public boolean onMouseAction(IGameInstance game, int button, float x, float y)
public boolean onKeyboardAction(IGameInstance game, int button, char character)
public void render(IGameInstance game, IAssetManager manager, org.newdawn.slick.Graphics g)
public void renderOverlay(IGameInstance game, IAssetManager manager, org.newdawn.slick.Graphics g)
protected boolean tryEscape(IGameInstance game)
public boolean doesPauseGame()
public boolean isMouseOverComponent(IGameInstance game)
public boolean isMouseOver(IGameInstance game)
public boolean onButtonActivated(IGameInstance game, int button)
public boolean hasGradient()
public void prioritize(GuiComponent component)
public boolean isMouseOverPrioritized(IGameInstance game, GuiComponent component)