public class ComponentScrollMenu extends ComponentButton
| Modifier and Type | Field and Description |
|---|---|
protected int |
number |
hasBackground, text| Constructor and Description |
|---|
ComponentScrollMenu(Gui gui,
int x,
int y,
int sizeY,
int contentsX,
int contentsY,
BoundBox hoverArea) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(GuiComponent component) |
void |
clear() |
IResourceName |
getName() |
boolean |
isEmpty() |
boolean |
onMouseAction(IGameInstance game,
int button,
float x,
float y) |
void |
organize() |
void |
remove(GuiComponent component) |
void |
render(IGameInstance game,
IAssetManager manager,
IGraphics g,
int x,
int y) |
void |
update(IGameInstance game) |
getHover, getText, onPressed, renderOverlay, setHasBackground, setTextgetElementColor, getElementOutlineColor, getGuiColor, getHeight, getPriority, getRenderX, getRenderY, getUnselectedElementColor, getWidth, getX, getY, isActive, isMouseOver, isMouseOverPrioritized, onKeyboardAction, setActive, shouldDoFingerCursor, toStringpublic void add(GuiComponent component)
public void remove(GuiComponent component)
public void clear()
public boolean isEmpty()
public void render(IGameInstance game, IAssetManager manager, IGraphics g, int x, int y)
render in class ComponentButtonpublic boolean onMouseAction(IGameInstance game, int button, float x, float y)
onMouseAction in class ComponentButtonpublic IResourceName getName()
getName in class ComponentButtonpublic void organize()
public void update(IGameInstance game)
update in class GuiComponent