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());
}
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;
}
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;
}
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());
}