Class ButtonComponent
java.lang.Object
de.ellpeck.rockbottom.api.gui.component.GuiComponent
de.ellpeck.rockbottom.api.gui.component.ButtonComponent
- Direct Known Subclasses:
FancyButtonComponent,FormatSelectorComponent,SliderComponent,ToggleButtonComponent
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String[]getHover()getName()protected StringgetText()booleanonMouseAction(IGameInstance game, int button, float x, float y) booleanonPressed(IGameInstance game) voidrender(IGameInstance game, IAssetManager manager, IRenderer g, int x, int y) voidrenderOverlay(IGameInstance game, IAssetManager manager, IRenderer g, int x, int y) setHasBackground(boolean has) voidMethods 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, setActive, setPos, shouldDoFingerCursor, toString, update, updateInactive
-
Field Details
-
hasBackground
public boolean hasBackground -
text
-
-
Constructor Details
-
ButtonComponent
-
-
Method Details
-
setHasBackground
-
render
- Overrides:
renderin classGuiComponent
-
getText
-
setText
-
getHover
-
renderOverlay
- Overrides:
renderOverlayin classGuiComponent
-
onMouseAction
- Overrides:
onMouseActionin classGuiComponent
-
getName
- Specified by:
getNamein classGuiComponent
-
onPressed
-