public class ComponentColorPicker extends GuiComponent
| Constructor and 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 and Description |
|---|---|
IResourceName |
getName() |
int |
getPriority() |
boolean |
onKeyboardAction(IGameInstance game,
int button,
char character) |
boolean |
onMouseAction(IGameInstance game,
int button,
float x,
float y) |
void |
render(IGameInstance game,
IAssetManager manager,
IGraphics g,
int x,
int y) |
void |
update(IGameInstance game) |
getElementColor, getElementOutlineColor, getGuiColor, getRenderX, getRenderY, getUnselectedElementColor, getX, getY, isActive, isMouseOver, isMouseOverPrioritized, renderOverlay, setActive, shouldDoFingerCursor, toStringpublic 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, IGraphics g, int x, int y)
render in class GuiComponentpublic boolean onMouseAction(IGameInstance game, int button, float x, float y)
onMouseAction in class GuiComponentpublic boolean onKeyboardAction(IGameInstance game, int button, char character)
onKeyboardAction in class GuiComponentpublic IResourceName getName()
getName in class GuiComponentpublic void update(IGameInstance game)
update in class GuiComponentpublic int getPriority()
getPriority in class GuiComponent