public abstract class Gui
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<GuiComponent> |
components |
static int |
GRADIENT_COLOR |
protected boolean |
hasUnspecifiedBounds |
protected int |
height |
static int |
HOVER_INFO_BACKGROUND |
protected Gui |
parent |
protected int |
width |
protected int |
x |
protected int |
y |
| Constructor and Description |
|---|
Gui() |
Gui(Gui parent) |
Gui(int width,
int height) |
Gui(int width,
int height,
Gui parent) |
public static final int GRADIENT_COLOR
public static final int HOVER_INFO_BACKGROUND
protected final Gui parent
protected final boolean hasUnspecifiedBounds
protected int width
protected int height
protected int x
protected int y
protected java.util.List<GuiComponent> components
public Gui()
public Gui(Gui parent)
public Gui(int width,
int height,
Gui parent)
public Gui(int width,
int height)
public void onOpened(IGameInstance game)
public void onClosed(IGameInstance game)
public void init(IGameInstance game)
protected void updateDimensions(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 boolean canCloseWithInvKey()
protected boolean tryEscape(IGameInstance game)
public void render(IGameInstance game, IAssetManager manager, IGraphics g)
public void renderOverlay(IGameInstance game, IAssetManager manager, IGraphics g)
public boolean doesPauseGame()
public boolean isMouseOver(IGameInstance game)
public boolean isMouseOverComponent(IGameInstance game)
public boolean hasGradient()
public void sortComponents()
public boolean isMouseOverPrioritized(IGameInstance game, GuiComponent component)
public java.util.List<GuiComponent> getComponents()
public java.lang.String toString()
toString in class java.lang.Objectpublic abstract IResourceName getName()
public int getX()
public int getY()
public int getWidth()
public int getHeight()