@Override protected void drawBackground() { super.drawBackground(); if (!isFullyOpened()) { return; } float colorR = (backgroundColor >> 16 & 255) / 255.0F * 0.6F; float colorG = (backgroundColor >> 8 & 255) / 255.0F * 0.6F; float colorB = (backgroundColor & 255) / 255.0F * 0.6F; GlStateManager.color(colorR, colorG, colorB, 1.0F); gui.drawTexturedModalRect(24, 16, 16, 20, 64, 24); GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F); }
@Override protected void drawBackground() { super.drawBackground(); if (!isFullyOpened()) { return; } float colorR = (backgroundColor >> 16 & 255) / 255.0F * 0.6F; float colorG = (backgroundColor >> 8 & 255) / 255.0F * 0.6F; float colorB = (backgroundColor & 255) / 255.0F * 0.6F; GlStateManager.color(colorR, colorG, colorB, 1.0F); gui.drawTexturedModalRect(24, 16, 16, 20, 64, 24); GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F); }
@Override protected void drawBackground() { super.drawBackground(); if (!isFullyOpened()) { return; } float colorR = (backgroundColor >> 16 & 255) / 255.0F * 0.6F; float colorG = (backgroundColor >> 8 & 255) / 255.0F * 0.6F; float colorB = (backgroundColor & 255) / 255.0F * 0.6F; GlStateManager.color(colorR, colorG, colorB, 1.0F); gui.drawTexturedModalRect(16, 20, 16, 20, 64, 64); GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F); }
@Override protected void drawBackground() { super.drawBackground(); if (!isFullyOpened()) { return; } float colorR = (backgroundColor >> 16 & 255) / 255.0F * 0.6F; float colorG = (backgroundColor >> 8 & 255) / 255.0F * 0.6F; float colorB = (backgroundColor & 255) / 255.0F * 0.6F; GlStateManager.color(colorR, colorG, colorB, 1.0F); gui.drawTexturedModalRect(28, 20, 16, 20, 64, 64); gui.drawTexturedModalRect(6, 32, 16, 20, 20, 40); GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F); }
tab.drawBackground(mouseX, mouseY, partialTick); yPosLeft += tab.currentHeight; } else { tab.setPosition(xSize, yPosRight); tab.drawBackground(mouseX, mouseY, partialTick); yPosRight += tab.currentHeight;
@Override public void drawBackground(int mouseX, int mouseY, float gameTicks) { mouseX -= this.posX(); mouseY -= this.posY; GlStateManager.pushMatrix(); GlStateManager.translate(this.posX(), this.posY, 0.0F); drawBackground(); for (ElementBase element : elements) { if (element.isVisible()) { element.drawBackground(mouseX, mouseY, gameTicks); } } GlStateManager.popMatrix(); }
@Override protected void drawBackground() { super.drawBackground();