public class TextComponent extends GuiComponent
| Constructor and Description |
|---|
TextComponent(Gui gui,
int x,
int y,
int width,
int height,
float scale,
boolean fromRight,
java.lang.String... text) |
| Modifier and Type | Method and Description |
|---|---|
ResourceName |
getName() |
java.lang.String[] |
getText() |
void |
render(IGameInstance game,
IAssetManager manager,
IRenderer g,
int x,
int y) |
boolean |
shouldDoFingerCursor(IGameInstance game) |
canCloseWithInvKey, getElementColor, getElementOutlineColor, getGuiColor, getHeight, getPriority, getRenderX, getRenderY, getUnselectedElementColor, getWidth, getX, getY, isActive, isMouseOver, isMouseOverPrioritized, onCharInput, onKeyPressed, onMouseAction, renderOverlay, setActive, setPos, toString, update, updateInactivepublic TextComponent(Gui gui, int x, int y, int width, int height, float scale, boolean fromRight, java.lang.String... text)
public java.lang.String[] getText()
public void render(IGameInstance game, IAssetManager manager, IRenderer g, int x, int y)
render in class GuiComponentpublic ResourceName getName()
getName in class GuiComponentpublic boolean shouldDoFingerCursor(IGameInstance game)
shouldDoFingerCursor in class GuiComponent