ComponentButton, ComponentClickableText, ComponentColorPicker, ComponentConfirmationPopup, ComponentConstruct, ComponentIngredient, ComponentInputField, ComponentMessageBox, ComponentPolaroid, ComponentProgressBar, ComponentScrollBar, ComponentSlot, ComponentStatistic, ComponentTextpublic abstract class GuiComponent
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
Gui |
gui |
|
protected int |
height |
|
protected int |
width |
|
protected int |
x |
|
protected int |
y |
| Constructor | Description |
|---|---|
GuiComponent(Gui gui,
int x,
int y,
int width,
int height) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
canCloseWithInvKey() |
|
static int |
getElementColor() |
|
static int |
getElementOutlineColor() |
|
static int |
getGuiColor() |
|
int |
getHeight() |
|
abstract ResourceName |
getName() |
|
int |
getPriority() |
|
int |
getRenderX() |
|
int |
getRenderY() |
|
static int |
getUnselectedElementColor() |
|
int |
getWidth() |
|
int |
getX() |
|
int |
getY() |
|
boolean |
isActive() |
|
boolean |
isMouseOver(IGameInstance game) |
|
boolean |
isMouseOverPrioritized(IGameInstance game) |
|
boolean |
onCharInput(IGameInstance game,
int codePoint,
char[] characters) |
|
boolean |
onKeyPressed(IGameInstance game,
int button) |
|
boolean |
onMouseAction(IGameInstance game,
int button,
float x,
float y) |
|
void |
render(IGameInstance game,
IAssetManager manager,
IRenderer g,
int x,
int y) |
|
void |
renderOverlay(IGameInstance game,
IAssetManager manager,
IRenderer g,
int x,
int y) |
|
void |
setActive(boolean active) |
|
void |
setPos(int x,
int y) |
|
boolean |
shouldDoFingerCursor(IGameInstance game) |
|
java.lang.String |
toString() |
|
void |
update(IGameInstance game) |
|
void |
updateInactive(IGameInstance game) |
public final Gui gui
protected int width
protected int height
protected int x
protected int y
public GuiComponent(Gui gui, int x, int y, int width, int height)
public void setPos(int x,
int y)
public static int getGuiColor()
public static int getElementColor()
public static int getUnselectedElementColor()
public static int getElementOutlineColor()
public void update(IGameInstance game)
public void updateInactive(IGameInstance game)
public void render(IGameInstance game, IAssetManager manager, IRenderer g, int x, int y)
public void renderOverlay(IGameInstance game, IAssetManager manager, IRenderer g, int x, int y)
public boolean isMouseOverPrioritized(IGameInstance game)
public boolean isMouseOver(IGameInstance game)
public boolean isActive()
public void setActive(boolean active)
public boolean onMouseAction(IGameInstance game, int button, float x, float y)
public boolean onKeyPressed(IGameInstance game, int button)
public boolean onCharInput(IGameInstance game, int codePoint, char[] characters)
public java.lang.String toString()
toString in class java.lang.Objectpublic abstract ResourceName getName()
public int getX()
public int getY()
public int getWidth()
public int getHeight()
public int getRenderX()
public int getRenderY()
public int getPriority()
public boolean shouldDoFingerCursor(IGameInstance game)
public boolean canCloseWithInvKey()