public class ColorPickerComponent extends GuiComponent
| Constructor and Description |
|---|
ColorPickerComponent(Gui gui,
int x,
int y,
int sizeX,
int sizeY,
int defaultColor,
java.util.function.BiConsumer<java.lang.Integer,java.lang.Boolean> consumer,
boolean isEnlargable) |
| Modifier and Type | Method and Description |
|---|---|
ResourceName |
getName() |
int |
getPriority() |
boolean |
onKeyPressed(IGameInstance game,
int button) |
boolean |
onMouseAction(IGameInstance game,
int button,
float x,
float y) |
void |
render(IGameInstance game,
IAssetManager manager,
IRenderer g,
int x,
int y) |
void |
update(IGameInstance game) |
canCloseWithInvKey, getElementColor, getElementOutlineColor, getGuiColor, getHeight, getRenderX, getRenderY, getUnselectedElementColor, getWidth, getX, getY, isActive, isMouseOver, isMouseOverPrioritized, onCharInput, renderOverlay, setActive, setPos, shouldDoFingerCursor, toString, updateInactivepublic ColorPickerComponent(Gui gui, int x, int y, int sizeX, int sizeY, int defaultColor, java.util.function.BiConsumer<java.lang.Integer,java.lang.Boolean> consumer, boolean isEnlargable)
public void render(IGameInstance game, IAssetManager manager, IRenderer g, int x, int y)
render in class GuiComponentpublic boolean onMouseAction(IGameInstance game, int button, float x, float y)
onMouseAction in class GuiComponentpublic boolean onKeyPressed(IGameInstance game, int button)
onKeyPressed in class GuiComponentpublic ResourceName getName()
getName in class GuiComponentpublic void update(IGameInstance game)
update in class GuiComponentpublic int getPriority()
getPriority in class GuiComponent