public class GuiComponent
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
org.newdawn.slick.Color |
colorButton |
org.newdawn.slick.Color |
colorButtonUnselected |
org.newdawn.slick.Color |
colorOutline |
Gui |
gui |
org.newdawn.slick.Color |
guiColor |
int |
sizeX |
int |
sizeY |
int |
x |
int |
y |
| Constructor and Description |
|---|
GuiComponent(Gui gui,
int x,
int y,
int sizeX,
int sizeY) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isMouseOver(IGameInstance game) |
boolean |
isMouseOverPrioritized(IGameInstance game) |
boolean |
onKeyboardAction(IGameInstance game,
int button,
char character) |
boolean |
onMouseAction(IGameInstance game,
int button,
float x,
float y) |
void |
render(IGameInstance game,
IAssetManager manager,
org.newdawn.slick.Graphics g) |
void |
renderOverlay(IGameInstance game,
IAssetManager manager,
org.newdawn.slick.Graphics g) |
void |
update(IGameInstance game) |
public final org.newdawn.slick.Color guiColor
public final org.newdawn.slick.Color colorButton
public final org.newdawn.slick.Color colorButtonUnselected
public final org.newdawn.slick.Color colorOutline
public int sizeX
public int sizeY
public Gui gui
public int x
public int y
public GuiComponent(Gui gui, int x, int y, int sizeX, int sizeY)
public void update(IGameInstance game)
public void render(IGameInstance game, IAssetManager manager, org.newdawn.slick.Graphics g)
public void renderOverlay(IGameInstance game, IAssetManager manager, org.newdawn.slick.Graphics g)
public boolean isMouseOverPrioritized(IGameInstance game)
public boolean isMouseOver(IGameInstance game)
public boolean onMouseAction(IGameInstance game, int button, float x, float y)
public boolean onKeyboardAction(IGameInstance game, int button, char character)