Search in sources :

Example 6 with GuiCustomSlider

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;
}
Also used : GuiCustomSlider(riskyken.armourersWorkshop.client.gui.controls.GuiCustomSlider)

Example 7 with GuiCustomSlider

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;
}
Also used : GuiCustomSlider(riskyken.armourersWorkshop.client.gui.controls.GuiCustomSlider) GuiButtonExt(cpw.mods.fml.client.config.GuiButtonExt)

Aggregations

GuiCustomSlider (riskyken.armourersWorkshop.client.gui.controls.GuiCustomSlider)7 GuiButtonExt (cpw.mods.fml.client.config.GuiButtonExt)2 GuiCheckBox (riskyken.armourersWorkshop.client.gui.controls.GuiCheckBox)2 GuiDropDownList (riskyken.armourersWorkshop.client.gui.controls.GuiDropDownList)1 GuiInventorySize (riskyken.armourersWorkshop.client.gui.controls.GuiInventorySize)1 Rectangle_I_2D (riskyken.armourersWorkshop.common.data.Rectangle_I_2D)1 SkinProperties (riskyken.armourersWorkshop.common.skin.data.SkinProperties)1 MovementType (riskyken.armourersWorkshop.common.skin.type.wings.SkinWings.MovementType)1