Package net.minecraft.src
Class GuiSlider
java.lang.Object
net.minecraft.src.Gui
net.minecraft.src.GuiButton
net.minecraft.src.GuiSlider
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanIs this slider control being dragged.floatThe value of this slider control.Fields inherited from class net.minecraft.src.GuiButton
buttonTextures, displayString, drawButton, enabled, field_82253_i, height, id, width, xPosition, yPositionFields inherited from class net.minecraft.src.Gui
icons, optionsBackground, statIcons, zLevel -
Constructor Summary
ConstructorsConstructorDescriptionGuiSlider(int par1, int par2, int par3, EnumOptions par4EnumOptions, String par5Str, float par6) -
Method Summary
Modifier and TypeMethodDescriptionprotected intgetHoverState(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 voidmouseDragged(Minecraft par1Minecraft, int par2, int par3) Fired when the mouse button is dragged.booleanmousePressed(Minecraft par1Minecraft, int par2, int par3) Returns true if the mouse has been pressed on this control.voidmouseReleased(int par1, int par2) Fired when the mouse button is released.Methods inherited from class net.minecraft.src.GuiButton
drawButton, func_82251_b, func_82252_aMethods inherited from class net.minecraft.src.Gui
drawCenteredString, drawGradientRect, drawHorizontalLine, drawRect, drawString, drawTexturedModalRect, drawTexturedModelRectFromIcon, drawVerticalLine
-
Field Details
-
sliderValue
public float sliderValueThe value of this slider control. -
dragging
public boolean draggingIs this slider control being dragged.
-
-
Constructor Details
-
GuiSlider
public GuiSlider(int par1, int par2, int par3, EnumOptions par4EnumOptions, String par5Str, float par6)
-
-
Method Details
-
getHoverState
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.- Overrides:
getHoverStatein classGuiButton
-
mouseDragged
Fired when the mouse button is dragged. Equivalent of MouseListener.mouseDragged(MouseEvent e).- Overrides:
mouseDraggedin classGuiButton
-
mousePressed
Returns true if the mouse has been pressed on this control. Equivalent of MouseListener.mousePressed(MouseEvent e).- Overrides:
mousePressedin classGuiButton
-
mouseReleased
public void mouseReleased(int par1, int par2) Fired when the mouse button is released. Equivalent of MouseListener.mouseReleased(MouseEvent e).- Overrides:
mouseReleasedin classGuiButton
-