Class MenuComponent
java.lang.Object
de.ellpeck.rockbottom.api.gui.component.GuiComponent
de.ellpeck.rockbottom.api.gui.component.ScrollBarComponent
de.ellpeck.rockbottom.api.gui.component.MenuComponent
-
Field Summary
Fields inherited from class de.ellpeck.rockbottom.api.gui.component.ScrollBarComponent
drawReversed, hoverArea, max, number, scrollConsumer, scrollTexture, wasMouseDown -
Constructor Summary
ConstructorsConstructorDescriptionMenuComponent(Gui gui, int x, int y, int barWidth, int height, int displayedComponentsX, int displayedComponentsY, int componentsOffsetX, int componentsOffsetY, BoundingBox hoverArea, ResourceName scrollTexture) MenuComponent(Gui gui, int x, int y, int barWidth, int height, int displayedComponentsX, int displayedComponentsY, int componentsOffsetX, int componentsOffsetY, BoundingBox hoverArea, ResourceName scrollTexture, int componentGap) MenuComponent(Gui gui, int x, int y, int height, int displayedComponentsX, int displayedComponentsY, BoundingBox hoverArea) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(MenuItemComponent component) voidclear()intgetMax()getName()booleanisEmpty()protected voidonScroll()voidorganize()voidremove(MenuItemComponent component) Methods inherited from class de.ellpeck.rockbottom.api.gui.component.ScrollBarComponent
getHoverArea, getNumber, onMouseAction, render, setDrawReversed, setMax, setNumber, updateMethods inherited from class de.ellpeck.rockbottom.api.gui.component.GuiComponent
canCloseWithInvKey, getElementColor, getElementOutlineColor, getGuiColor, getHeight, getPriority, getRenderX, getRenderY, getUnselectedElementColor, getWidth, getX, getY, isActive, isMouseOver, isMouseOverPrioritized, onCharInput, onKeyPressed, renderOverlay, setActive, setPos, shouldDoFingerCursor, toString, updateInactive
-
Constructor Details
-
MenuComponent
public MenuComponent(Gui gui, int x, int y, int barWidth, int height, int displayedComponentsX, int displayedComponentsY, int componentsOffsetX, int componentsOffsetY, BoundingBox hoverArea, ResourceName scrollTexture, int componentGap) -
MenuComponent
public MenuComponent(Gui gui, int x, int y, int barWidth, int height, int displayedComponentsX, int displayedComponentsY, int componentsOffsetX, int componentsOffsetY, BoundingBox hoverArea, ResourceName scrollTexture) -
MenuComponent
public MenuComponent(Gui gui, int x, int y, int height, int displayedComponentsX, int displayedComponentsY, BoundingBox hoverArea)
-
-
Method Details
-
add
-
remove
-
clear
public void clear() -
isEmpty
public boolean isEmpty() -
onScroll
protected void onScroll()- Overrides:
onScrollin classScrollBarComponent
-
organize
public void organize() -
getMax
public int getMax()- Overrides:
getMaxin classScrollBarComponent
-
getName
- Overrides:
getNamein classScrollBarComponent
-