use of riskyken.armourersWorkshop.client.gui.controls.GuiCustomSlider in project Armourers-Workshop by RiskyKen.
the class GuiHologramProjectorTabRotationSpeed method initGui.
@Override
public void initGui(int xPos, int yPos, int width, int height) {
super.initGui(xPos, yPos, width, height);
guiLoaded = false;
sliderOffsetX = new GuiCustomSlider(-1, (int) ((width / 2F) - (200 / 2F)) + 10, 30, 178, 10, "", "ms", -10000D, 10000D, tileEntity.getRotationSpeedX(), false, true, this);
sliderOffsetY = new GuiCustomSlider(-1, (int) ((width / 2F) - (200 / 2F)) + 10, 45, 178, 10, "", "ms", -10000D, 10000D, tileEntity.getRotationSpeedY(), false, true, this);
sliderOffsetZ = new GuiCustomSlider(-1, (int) ((width / 2F) - (200 / 2F)) + 10, 60, 178, 10, "", "ms", -10000D, 10000D, tileEntity.getRotationSpeedZ(), false, true, this);
sliderOffsetX.setFineTuneButtons(true);
sliderOffsetY.setFineTuneButtons(true);
sliderOffsetZ.setFineTuneButtons(true);
buttonList.add(sliderOffsetX);
buttonList.add(sliderOffsetY);
buttonList.add(sliderOffsetZ);
guiLoaded = true;
}
use of riskyken.armourersWorkshop.client.gui.controls.GuiCustomSlider in project Armourers-Workshop by RiskyKen.
the class GuiMannequinTabOffset method initGui.
@Override
public void initGui(int xPos, int yPos, int width, int height) {
super.initGui(xPos, yPos, width, height);
guiLoaded = false;
resetOffsetButton = new GuiButtonExt(0, 0, TAB_HEIGHT - 18 - 8, 50, 18, GuiHelper.getLocalizedControlName(inventoryName, "reset"));
resetOffsetButton.width = fontRenderer.getStringWidth(resetOffsetButton.displayString) + fontRenderer.getStringWidth(" ") * 4;
resetOffsetButton.xPosition = this.width / 2 - TAB_WIDTH / 2 + TAB_WIDTH - 10 - resetOffsetButton.width;
bipedOffsetXslider = new GuiCustomSlider(0, (int) ((width / 2F) - (TAB_WIDTH / 2F)) + 10, 25, TAB_WIDTH - 20, 10, "X: ", "", -1D, 1D, 0D, true, true, this);
bipedOffsetYslider = new GuiCustomSlider(0, (int) ((width / 2F) - (TAB_WIDTH / 2F)) + 10, 25 + 12, TAB_WIDTH - 20, 10, "Y: ", "", -1D, 1D, 0D, true, true, this);
bipedOffsetZslider = new GuiCustomSlider(0, (int) ((width / 2F) - (TAB_WIDTH / 2F)) + 10, 25 + 24, TAB_WIDTH - 20, 10, "Z: ", "", -1D, 1D, 0D, true, true, this);
setSliderValue(bipedOffsetXslider, tileEntity.getOffsetX());
setSliderValue(bipedOffsetYslider, tileEntity.getOffsetY());
setSliderValue(bipedOffsetZslider, tileEntity.getOffsetZ());
buttonList.add(resetOffsetButton);
buttonList.add(bipedOffsetXslider);
buttonList.add(bipedOffsetYslider);
buttonList.add(bipedOffsetZslider);
guiLoaded = true;
}
Aggregations