public class ComponentScrollMenu extends ComponentButton
| Modifier and Type | Field and Description |
|---|---|
protected int |
number |
hasBackground, isVisible, textcolorButton, colorButtonUnselected, colorOutline, gui, guiColor, isActive, sizeX, sizeY, x, y| 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) |
IResourceName |
getName() |
boolean |
onMouseAction(IGameInstance game,
int button,
float x,
float y) |
void |
organize() |
void |
remove(GuiComponent component) |
void |
render(IGameInstance game,
IAssetManager manager,
org.newdawn.slick.Graphics g) |
void |
update(IGameInstance game) |
getHover, getText, onPressed, renderOverlay, setHasBackground, setTextisMouseOver, isMouseOverPrioritized, onKeyboardAction, toStringpublic void add(GuiComponent component)
public void remove(GuiComponent component)
public void render(IGameInstance game, IAssetManager manager, org.newdawn.slick.Graphics g)
render in class ComponentButtonpublic void organize()
public boolean onMouseAction(IGameInstance game, int button, float x, float y)
onMouseAction in class ComponentButtonpublic void update(IGameInstance game)
update in class GuiComponentpublic IResourceName getName()
getName in class ComponentButton