Class ColorPickerComponent
java.lang.Object
de.ellpeck.rockbottom.api.gui.component.GuiComponent
de.ellpeck.rockbottom.api.gui.component.ColorPickerComponent
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionColorPickerComponent(Gui gui, int x, int y, int sizeX, int sizeY, int defaultColor, BiConsumer<Integer, Boolean> consumer, boolean isEnlargable) -
Method Summary
Modifier and TypeMethodDescriptiongetName()intbooleanonKeyPressed(IGameInstance game, int button) 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.GuiComponent
canCloseWithInvKey, getElementColor, getElementOutlineColor, getGuiColor, getHeight, getRenderX, getRenderY, getUnselectedElementColor, getWidth, getX, getY, isActive, isMouseOver, isMouseOverPrioritized, onCharInput, renderOverlay, setActive, setPos, shouldDoFingerCursor, toString, updateInactive
-
Constructor Details
-
ColorPickerComponent
public ColorPickerComponent(Gui gui, int x, int y, int sizeX, int sizeY, int defaultColor, BiConsumer<Integer, Boolean> consumer, boolean isEnlargable)
-
-
Method Details
-
render
- Overrides:
renderin classGuiComponent
-
onMouseAction
- Overrides:
onMouseActionin classGuiComponent
-
onKeyPressed
- Overrides:
onKeyPressedin classGuiComponent
-
getName
- Specified by:
getNamein classGuiComponent
-
update
- Overrides:
updatein classGuiComponent
-
getPriority
public int getPriority()- Overrides:
getPriorityin classGuiComponent
-