public class ComponentFancyToggleButton extends ComponentFancyButton
texturehasBackground, text| Constructor and Description |
|---|
ComponentFancyToggleButton(Gui gui,
int x,
int y,
int sizeX,
int sizeY,
boolean defaultState,
java.util.function.Supplier<java.lang.Boolean> supplier,
ResourceName texture,
java.lang.String... hover) |
| Modifier and Type | Method and Description |
|---|---|
ResourceName |
getName() |
protected ResourceName |
getTexture() |
boolean |
onPressed(IGameInstance game) |
rendergetHover, getText, onMouseAction, renderOverlay, setHasBackground, setTextcanCloseWithInvKey, getElementColor, getElementOutlineColor, getGuiColor, getHeight, getPriority, getRenderX, getRenderY, getUnselectedElementColor, getWidth, getX, getY, isActive, isMouseOver, isMouseOverPrioritized, onCharInput, onKeyPressed, setActive, setPos, shouldDoFingerCursor, toString, update, updateInactivepublic ComponentFancyToggleButton(Gui gui, int x, int y, int sizeX, int sizeY, boolean defaultState, java.util.function.Supplier<java.lang.Boolean> supplier, ResourceName texture, java.lang.String... hover)
protected ResourceName getTexture()
getTexture in class ComponentFancyButtonpublic boolean onPressed(IGameInstance game)
onPressed in class ComponentButtonpublic ResourceName getName()
getName in class ComponentFancyButton