Search in sources :

Example 6 with Rectangle_I_2D

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

the class GuiMannequinTabTexture 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 7 with Rectangle_I_2D

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

the class GuiHologramProjectorTabAngle 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 8 with Rectangle_I_2D

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

the class GuiHologramProjectorTabRotationSpeed 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 9 with Rectangle_I_2D

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

the class GuiMannequinTabExtraRenders method drawBackgroundLayer.

@Override
public void drawBackgroundLayer(float partialTickTime, int mouseX, int mouseY) {
    Rectangle_I_2D rec = new Rectangle_I_2D(0, 0, 176, 88);
    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 10 with Rectangle_I_2D

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

the class GuiMannequinTabSkinHair 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);
    if (selectingSkinColour) {
        if (hoverColour != null) {
            drawColourBox(width / 2 - 7, 25, hoverColour.getRGB());
        }
    } else {
        drawColourBox(width / 2 - 7, 25, skinColour);
    }
    if (selectingHairColour) {
        if (hoverColour != null) {
            drawColourBox(width / 2 - 7, 40, hoverColour.getRGB());
        }
    } else {
        drawColourBox(width / 2 - 7, 40, hairColour);
    }
}
Also used : Rectangle_I_2D(riskyken.armourersWorkshop.common.data.Rectangle_I_2D)

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