Search in sources :

Example 1 with GuiSlider

use of cpw.mods.fml.client.config.GuiSlider in project Armourers-Workshop by RiskyKen.

the class ToolOptionRadius method writeToNBT.

@Override
public void writeToNBT(NBTTagCompound compound, GuiButton control) {
    GuiSlider sliderControl = (GuiSlider) control;
    writeToNBT(compound, sliderControl.getValueInt());
}
Also used : GuiSlider(cpw.mods.fml.client.config.GuiSlider)

Example 2 with GuiSlider

use of cpw.mods.fml.client.config.GuiSlider in project Armourers-Workshop by RiskyKen.

the class ToolOptionRadius method getGuiControl.

@SideOnly(Side.CLIENT)
@Override
public GuiButton getGuiControl(int id, int x, int y, NBTTagCompound compound) {
    GuiSlider sliderControl = new GuiSlider(id, x, y, getLocalisedLabel() + " ", 1, 6, (Integer) readFromNBT(compound), null);
    sliderControl.showDecimal = false;
    return sliderControl;
}
Also used : GuiSlider(cpw.mods.fml.client.config.GuiSlider) SideOnly(cpw.mods.fml.relauncher.SideOnly)

Example 3 with GuiSlider

use of cpw.mods.fml.client.config.GuiSlider in project Armourers-Workshop by RiskyKen.

the class ToolOptionIntensity method getGuiControl.

@SideOnly(Side.CLIENT)
@Override
public GuiButton getGuiControl(int id, int x, int y, NBTTagCompound compound) {
    GuiSlider sliderControl = new GuiSlider(id, x, y, getLocalisedLabel() + " ", 1, 64, (Integer) readFromNBT(compound), null);
    sliderControl.showDecimal = false;
    return sliderControl;
}
Also used : GuiSlider(cpw.mods.fml.client.config.GuiSlider) SideOnly(cpw.mods.fml.relauncher.SideOnly)

Example 4 with GuiSlider

use of cpw.mods.fml.client.config.GuiSlider in project Armourers-Workshop by RiskyKen.

the class ToolOptionIntensity method writeToNBT.

@Override
public void writeToNBT(NBTTagCompound compound, GuiButton control) {
    GuiSlider sliderControl = (GuiSlider) control;
    writeToNBT(compound, sliderControl.getValueInt());
}
Also used : GuiSlider(cpw.mods.fml.client.config.GuiSlider)

Aggregations

GuiSlider (cpw.mods.fml.client.config.GuiSlider)4 SideOnly (cpw.mods.fml.relauncher.SideOnly)2