public class GuiOptionSlider extends GuiButton
| Modifier and Type | Field and Description | 
|---|---|
| boolean | dragging | 
| private float | maxValue | 
| private float | minValue | 
| private GameSettings.Options | options | 
| private float | sliderValue | 
BUTTON_TEXTURES, displayString, enabled, height, hovered, id, packedFGColour, visible, width, x, yICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel| Constructor and Description | 
|---|
| GuiOptionSlider(int buttonId,
               int x,
               int y,
               GameSettings.Options optionIn) | 
| GuiOptionSlider(int buttonId,
               int x,
               int y,
               GameSettings.Options optionIn,
               float minValueIn,
               float maxValue) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected int | getHoverState(boolean mouseOver) | 
| protected void | mouseDragged(Minecraft mc,
            int mouseX,
            int mouseY) | 
| boolean | mousePressed(Minecraft mc,
            int mouseX,
            int mouseY) | 
| void | mouseReleased(int mouseX,
             int mouseY) | 
drawButton, drawButtonForegroundLayer, getButtonWidth, isMouseOver, playPressSound, setWidthdrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLineprivate float sliderValue
public boolean dragging
private final GameSettings.Options options
private final float minValue
private final float maxValue
public GuiOptionSlider(int buttonId,
                       int x,
                       int y,
                       GameSettings.Options optionIn)
public GuiOptionSlider(int buttonId,
                       int x,
                       int y,
                       GameSettings.Options optionIn,
                       float minValueIn,
                       float maxValue)
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