public class ComponentColorPicker extends GuiComponent
| Constructor | Description |
|---|---|
ComponentColorPicker(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 | Description |
|---|---|---|
IResourceName |
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 ComponentColorPicker(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 IResourceName getName()
getName in class GuiComponentpublic void update(IGameInstance game)
update in class GuiComponentpublic int getPriority()
getPriority in class GuiComponent