public class GuiSlider extends GuiButton
Modifier and Type | Field and Description |
---|---|
boolean |
dragging
Is this slider control being dragged.
|
float |
sliderValue
The value of this slider control.
|
buttonTextures, displayString, drawButton, enabled, field_82253_i, height, id, width, xPosition, yPosition
icons, optionsBackground, statIcons, zLevel
Constructor and Description |
---|
GuiSlider(int par1,
int par2,
int par3,
EnumOptions par4EnumOptions,
java.lang.String par5Str,
float par6) |
Modifier and Type | Method and Description |
---|---|
protected int |
getHoverState(boolean par1)
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 par1Minecraft,
int par2,
int par3)
Fired when the mouse button is dragged.
|
boolean |
mousePressed(Minecraft par1Minecraft,
int par2,
int par3)
Returns true if the mouse has been pressed on this control.
|
void |
mouseReleased(int par1,
int par2)
Fired when the mouse button is released.
|
drawButton, func_82251_b, func_82252_a
drawCenteredString, drawGradientRect, drawHorizontalLine, drawRect, drawString, drawTexturedModalRect, drawTexturedModelRectFromIcon, drawVerticalLine
public float sliderValue
public boolean dragging
public GuiSlider(int par1, int par2, int par3, EnumOptions par4EnumOptions, java.lang.String par5Str, float par6)
protected int getHoverState(boolean par1)
getHoverState
in class GuiButton
protected void mouseDragged(Minecraft par1Minecraft, int par2, int par3)
mouseDragged
in class GuiButton
public boolean mousePressed(Minecraft par1Minecraft, int par2, int par3)
mousePressed
in class GuiButton
public void mouseReleased(int par1, int par2)
mouseReleased
in class GuiButton