@Environment(value=CLIENT) public class GameModeSelectionScreen.ButtonWidget extends AbstractButtonWidget
| Modifier and Type | Field and Description |
|---|---|
private GameModeSelectionScreen.GameMode |
gameMode |
private boolean |
selected |
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, yGUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
ButtonWidget(GameModeSelectionScreen.GameMode gameMode,
int x,
int y) |
| Modifier and Type | Method and Description |
|---|---|
private void |
drawBackground(MatrixStack matrices,
TextureManager textureManager) |
private void |
drawSelectionBox(MatrixStack matrices,
TextureManager textureManager) |
boolean |
isHovered() |
void |
renderButton(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
void |
setSelected(boolean selected) |
changeFocus, clicked, getHeight, getMessage, getNarrationMessage, getWidth, getYImage, isFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onClick, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, renderToolTip, setAlpha, setFocused, setMessage, setWidthdrawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharTyped, keyPressed, keyReleased, mouseMoved, mouseScrolledprivate final GameModeSelectionScreen.GameMode gameMode
private boolean selected
public ButtonWidget(GameModeSelectionScreen.GameMode gameMode, int x, int y)
public void renderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)
renderButton in class AbstractButtonWidgetpublic boolean isHovered()
isHovered in class AbstractButtonWidgetpublic void setSelected(boolean selected)
private void drawBackground(MatrixStack matrices, TextureManager textureManager)
private void drawSelectionBox(MatrixStack matrices, TextureManager textureManager)