Class SliderComponent
java.lang.Object
de.ellpeck.rockbottom.api.gui.component.GuiComponent
de.ellpeck.rockbottom.api.gui.component.ButtonComponent
de.ellpeck.rockbottom.api.gui.component.SliderComponent
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BiConsumer<Integer,Boolean> protected final intprotected final intprotected intFields inherited from class de.ellpeck.rockbottom.api.gui.component.ButtonComponent
hasBackground, text -
Constructor Summary
ConstructorsConstructorDescriptionSliderComponent(Gui gui, int x, int y, int sizeX, int sizeY, int initialNumber, int min, int max, BiConsumer<Integer, Boolean> consumer, String text, String... hover) -
Method Summary
Modifier and TypeMethodDescriptiongetName()protected StringgetText()booleanonMouseAction(IGameInstance game, int button, float x, float y) voidrender(IGameInstance game, IAssetManager manager, IRenderer g, int x, int y) voidupdate(IGameInstance game) Methods inherited from class de.ellpeck.rockbottom.api.gui.component.ButtonComponent
getHover, onPressed, renderOverlay, setHasBackground, setTextMethods 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, updateInactive
-
Field Details
-
consumer
-
min
protected final int min -
max
protected final int max -
number
protected int number
-
-
Constructor Details
-
SliderComponent
-
-
Method Details
-
getText
- Overrides:
getTextin classButtonComponent
-
render
- Overrides:
renderin classButtonComponent
-
onMouseAction
- Overrides:
onMouseActionin classButtonComponent
-
update
- Overrides:
updatein classGuiComponent
-
getName
- Overrides:
getNamein classButtonComponent
-