Search in sources :

Example 1 with Rectangle_I_2D

use of riskyken.armourersWorkshop.common.data.Rectangle_I_2D in project Armourers-Workshop by RiskyKen.

the class GuiHologramProjectorTabExtra method drawBackgroundLayer.

@Override
public void drawBackgroundLayer(float partialTickTime, int mouseX, int mouseY) {
    Rectangle_I_2D rec = new Rectangle_I_2D(0, 0, 200, 78);
    rec.x = width / 2 - rec.width / 2;
    GuiUtils.drawContinuousTexturedBox(rec.x, rec.y, 0, 138, rec.width, rec.height, 38, 38, 4, zLevel);
}
Also used : Rectangle_I_2D(riskyken.armourersWorkshop.common.data.Rectangle_I_2D)

Example 2 with Rectangle_I_2D

use of riskyken.armourersWorkshop.common.data.Rectangle_I_2D in project Armourers-Workshop by RiskyKen.

the class GuiHologramProjectorTabOffset method drawBackgroundLayer.

@Override
public void drawBackgroundLayer(float partialTickTime, int mouseX, int mouseY) {
    Rectangle_I_2D rec = new Rectangle_I_2D(0, 0, 200, 82);
    rec.x = width / 2 - rec.width / 2;
    GuiUtils.drawContinuousTexturedBox(rec.x, rec.y, 0, 138, rec.width, rec.height, 38, 38, 4, zLevel);
}
Also used : Rectangle_I_2D(riskyken.armourersWorkshop.common.data.Rectangle_I_2D)

Example 3 with Rectangle_I_2D

use of riskyken.armourersWorkshop.common.data.Rectangle_I_2D in project Armourers-Workshop by RiskyKen.

the class GuiHologramProjectorTabRotationOffset method drawBackgroundLayer.

@Override
public void drawBackgroundLayer(float partialTickTime, int mouseX, int mouseY) {
    Rectangle_I_2D rec = new Rectangle_I_2D(0, 0, 200, 92);
    rec.x = width / 2 - rec.width / 2;
    GuiUtils.drawContinuousTexturedBox(rec.x, rec.y, 0, 138, rec.width, rec.height, 38, 38, 4, zLevel);
}
Also used : Rectangle_I_2D(riskyken.armourersWorkshop.common.data.Rectangle_I_2D)

Example 4 with Rectangle_I_2D

use of riskyken.armourersWorkshop.common.data.Rectangle_I_2D in project Armourers-Workshop by RiskyKen.

the class GuiMannequinTabOffset method drawBackgroundLayer.

@Override
public void drawBackgroundLayer(float partialTickTime, int mouseX, int mouseY) {
    Rectangle_I_2D rec = new Rectangle_I_2D(0, 0, TAB_WIDTH, TAB_HEIGHT);
    rec.x = width / 2 - rec.width / 2;
    GuiUtils.drawContinuousTexturedBox(rec.x, rec.y, 0, 200, rec.width, rec.height, 38, 38, 4, zLevel);
}
Also used : Rectangle_I_2D(riskyken.armourersWorkshop.common.data.Rectangle_I_2D)

Example 5 with Rectangle_I_2D

use of riskyken.armourersWorkshop.common.data.Rectangle_I_2D in project Armourers-Workshop by RiskyKen.

the class GuiMannequinTabRotations method initGui.

@Override
public void initGui(int xPos, int yPos, int width, int height) {
    super.initGui(xPos, yPos, width, height);
    guiLoaded = false;
    int recX = (int) ((width / 2F) - (ROT_MAN_TEX_WIDTH / 2));
    bipedParts[0] = new Rectangle_I_2D(recX + 183, 18, 8, 8);
    bipedParts[1] = new Rectangle_I_2D(recX + 183, 27, 8, 12);
    bipedParts[2] = new Rectangle_I_2D(recX + 178, 27, 4, 12);
    bipedParts[3] = new Rectangle_I_2D(recX + 192, 27, 4, 12);
    bipedParts[4] = new Rectangle_I_2D(recX + 182, 40, 4, 12);
    bipedParts[5] = new Rectangle_I_2D(recX + 188, 40, 4, 12);
    resetRotsButton = new GuiButtonExt(0, width / 2 + 15, 25, 50, 14, GuiHelper.getLocalizedControlName(inventoryName, "reset"));
    randomRotsButton = new GuiButtonExt(0, width / 2 + 15, 40, 50, 14, GuiHelper.getLocalizedControlName(inventoryName, "random"));
    bipedRotXslider = new GuiCustomSlider(0, (int) ((width / 2F) - (ROT_MAN_TEX_WIDTH / 2F)) + 10, 25, 100, 10, "X: ", "", -180D, 180D, 0D, true, true, this);
    bipedRotYslider = new GuiCustomSlider(0, (int) ((width / 2F) - (ROT_MAN_TEX_WIDTH / 2F)) + 10, 25 + 10, 100, 10, "Y: ", "", -180D, 180D, 0D, true, true, this);
    bipedRotZslider = new GuiCustomSlider(0, (int) ((width / 2F) - (ROT_MAN_TEX_WIDTH / 2F)) + 10, 25 + 20, 100, 10, "Z: ", "", -180D, 180D, 0D, true, true, this);
    if (bipedRotations != null) {
        setSliderValue(bipedRotXslider, Math.toDegrees(-bipedRotations.head.rotationX));
        setSliderValue(bipedRotYslider, Math.toDegrees(-bipedRotations.head.rotationY));
        setSliderValue(bipedRotZslider, Math.toDegrees(-bipedRotations.head.rotationZ));
    }
    buttonList.add(resetRotsButton);
    buttonList.add(randomRotsButton);
    buttonList.add(bipedRotXslider);
    buttonList.add(bipedRotYslider);
    buttonList.add(bipedRotZslider);
    bipedPartChange(0);
    guiLoaded = true;
}
Also used : Rectangle_I_2D(riskyken.armourersWorkshop.common.data.Rectangle_I_2D) GuiCustomSlider(riskyken.armourersWorkshop.client.gui.controls.GuiCustomSlider) GuiButtonExt(cpw.mods.fml.client.config.GuiButtonExt)

Aggregations

Rectangle_I_2D (riskyken.armourersWorkshop.common.data.Rectangle_I_2D)10 GuiButtonExt (cpw.mods.fml.client.config.GuiButtonExt)1 GuiCustomSlider (riskyken.armourersWorkshop.client.gui.controls.GuiCustomSlider)1