public class GuiOptionSlider extends GuiButton
| Modifier and Type | Field and Description |
|---|---|
boolean |
dragging |
buttonTextures, displayString, enabled, height, hovered, id, packedFGColour, visible, width, xPosition, yPositionicons, optionsBackground, statIcons, zLevel| Constructor and Description |
|---|
GuiOptionSlider(int p_i45016_1_,
int p_i45016_2_,
int p_i45016_3_,
GameSettings.Options p_i45016_4_) |
GuiOptionSlider(int p_i45017_1_,
int p_i45017_2_,
int p_i45017_3_,
GameSettings.Options p_i45017_4_,
float p_i45017_5_,
float p_i45017_6_) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getHoverState(boolean mouseOver)
Returns 0 if the button is disabled, 1 if the mouse is NOT hovering over this button and 2 if it IS hovering over
this button.
|
protected void |
mouseDragged(Minecraft mc,
int mouseX,
int mouseY)
Fired when the mouse button is dragged.
|
boolean |
mousePressed(Minecraft mc,
int mouseX,
int mouseY)
Returns true if the mouse has been pressed on this control.
|
void |
mouseReleased(int mouseX,
int mouseY)
Fired when the mouse button is released.
|
drawButton, drawButtonForegroundLayer, getButtonWidth, isMouseOver, playPressSound, setWidthdrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLinepublic GuiOptionSlider(int p_i45016_1_,
int p_i45016_2_,
int p_i45016_3_,
GameSettings.Options p_i45016_4_)
public GuiOptionSlider(int p_i45017_1_,
int p_i45017_2_,
int p_i45017_3_,
GameSettings.Options p_i45017_4_,
float p_i45017_5_,
float p_i45017_6_)
protected int getHoverState(boolean mouseOver)
getHoverState in class GuiButtonprotected void mouseDragged(Minecraft mc, int mouseX, int mouseY)
mouseDragged in class GuiButtonpublic boolean mousePressed(Minecraft mc, int mouseX, int mouseY)
mousePressed in class GuiButtonpublic void mouseReleased(int mouseX,
int mouseY)
mouseReleased in class GuiButton