GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GL11.glTranslatef(beastNodeX, beastNodeY, 0); // Moves texture into place
SpoutClient.getHandle().renderEngine.bindTexture(beastNodeLogo.getTextureID());
GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_NEAREST);
GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_NEAREST);
Tessellator tessellator = Tessellator.instance;
//GL11.glScalef(0.5f, 0.5f, 0.5f);
tessellator.startDrawingQuads();
tessellator.addVertexWithUV(0.0D, 33, -90, 0.0D, 0.0D); // Draw corners
tessellator.addVertexWithUV(147, 33, -90, beastNodeLogo.getWidth(), 0.0D);
tessellator.addVertexWithUV(147, 0.0D, -90, beastNodeLogo.getWidth(), beastNodeLogo.getHeight());
tessellator.addVertexWithUV(0.0D, 0.0D, -90, 0.0D, beastNodeLogo.getHeight());
tessellator.draw();
GL11.glDepthMask(true);
GL11.glEnable(GL11.GL_DEPTH_TEST);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GL11.glPopMatrix();
}
int minecraftBizX = (this.width / 2 + 30);
int minecraftBizY = getScaledHeight(85);
if (minecraftBizLogo != null) {
GL11.glPushMatrix();
GL11.glDisable(GL11.GL_DEPTH_TEST);
GL11.glEnable(GL11.GL_BLEND);
GL11.glDepthMask(false);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GL11.glTranslatef(minecraftBizX, minecraftBizY, 0); // Moves texture into place
SpoutClient.getHandle().renderEngine.bindTexture(minecraftBizLogo.getTextureID());
GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_NEAREST);
GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_NEAREST);
Tessellator tessellator = Tessellator.instance;
//GL11.glScalef(0.5f, 0.5f, 0.5f);
tessellator.startDrawingQuads();
tessellator.addVertexWithUV(0.0D, 33, -90, 0.0D, 0.0D); // Draw corners
tessellator.addVertexWithUV(147, 33, -90, minecraftBizLogo.getWidth(), 0.0D);
tessellator.addVertexWithUV(147, 0.0D, -90, minecraftBizLogo.getWidth(), minecraftBizLogo.getHeight());
tessellator.addVertexWithUV(0.0D, 0.0D, -90, 0.0D, minecraftBizLogo.getHeight());
tessellator.draw();
GL11.glDepthMask(true);
GL11.glEnable(GL11.GL_DEPTH_TEST);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GL11.glPopMatrix();
}
// Draw tooltips
if (isInBoundingRect(beastNodeX, beastNodeY, 33, 147, x, y)) {
drawTooltip(
"BeastNode provides high quality Minecraft and web hosting at affordable\n" +
"prices and is generously sponsoring the Spout project with its hosting\n" +
"& server needs. Mine, build, craft, and chat with your own high quality\n" +
"Minecraft server with FREE mumble voice server and web hosting.", x, y);
} else if (isInBoundingRect(minecraftBizX, minecraftBizY, 33, 147, x, y)) {
drawTooltip(
"Your Minecraft community in a new dimension!", x, y);
}
GL11.glDisable(2896 /*GL_LIGHTING*/);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
Minecraft.getMinecraft().getTextureManager().bindTexture(new ResourceLocation("gui/gui.png"));
RenderUtil.drawTexturedModalRectangle(this.width - 14, getInvertedScaledHeight(this.height), 0, 208, 16, 16, 0f);
GL11.glDisable(2912 /*GL_FOG*/);
GL11.glDisable(2929 /*GL_DEPTH_TEST*/);
this.overlayBackground(0, 30, 255, 255);
this.overlayBackground(this.height - 50, this.height, 255, 255);
drawCenteredString(this.fontRenderer, "About", this.width / 2, 16, 0xffffff);
Minecraft.getMinecraft().getTextureManager().bindTexture(new ResourceLocation("textures/gui/title/mojang.png"));
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GL11.glPushMatrix();
GL11.glTranslatef((0.0325f * this.width), (this.height - 40), 0);
GL11.glScalef(0.4f, 0.4f, 0.4f);
this.drawTexturedModalRect(0, 0, 0, 0, 155, 44);
this.drawTexturedModalRect(155, 0, 0, 45, 155, 44);
GL11.glPopMatrix();
if (spoutcraftTexture != null) {
GL11.glPushMatrix();
GL11.glDisable(GL11.GL_DEPTH_TEST);
GL11.glDisable(GL11.GL_BLEND);
GL11.glDepthMask(false);
GL11.glEnable(3008 /*GL_ALPHA_TEST*/);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GL11.glTranslatef((this.width - 140), (this.height - 45), 0); // Moves texture into place
SpoutClient.getHandle().renderEngine.bindTexture(spoutcraftTexture.getTextureID());
GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_NEAREST);
GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_NEAREST);
Tessellator tessellator = Tessellator.instance;
tessellator.startDrawingQuads();
tessellator.addVertexWithUV(0.0D, 32, -90, 0.0D, 0.0D); // Draw corners
tessellator.addVertexWithUV(128, 32, -90, spoutcraftTexture.getWidth(), 0.0D);
tessellator.addVertexWithUV(128, 0.0D, -90, spoutcraftTexture.getWidth(), spoutcraftTexture.getHeight());
tessellator.addVertexWithUV(0.0D, 0.0D, -90, 0.0D, spoutcraftTexture.getHeight());
tessellator.draw();
GL11.glDepthMask(true);
GL11.glEnable(GL11.GL_DEPTH_TEST);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GL11.glPopMatrix();
}
drawString(this.fontRenderer, "Unknown Version", (int)(this.width * 0.034f), this.height - 20, 0xffffff);
drawString(this.fontRenderer, "Copyright Mojang AB", (int)(this.width * 0.034f), this.height - 10, 0x808080);
String version = SpoutClient.getClientVersion();
drawString(this.fontRenderer, version, (int)(this.width - 45) - fontRenderer.getStringWidth(version) + fontRenderer.getStringWidth("0"), this.height - 20, 0xffffff);
drawString(this.fontRenderer, "Licensed under LGPLv3", (int)(this.width - 129), this.height - 10, 0x808080);
((GuiButton)this.buttonList.get(0)).xPosition = this.width / 2 - 50;
((GuiButton)this.buttonList.get(0)).yPosition = this.height - 25;
((GuiButton)this.buttonList.get(0)).drawButton(this.mc, x, y);
//super.drawScreen(x, x, z);
// Shadow magic
GL11.glEnable(3042 /*GL_BLEND*/);
GL11.glBlendFunc(770, 771);
GL11.glDisable(3008 /*GL_ALPHA_TEST*/);
GL11.glShadeModel(7425 /*GL_SMOOTH*/);
GL11.glDisable(3553 /*GL_TEXTURE_2D*/);
Tessellator var16 = Tessellator.instance;
byte var19 = 4;
var16.startDrawingQuads();
var16.setColorRGBA_I(0, 0);
var16.addVertexWithUV(0, (double)(30 + var19), 0.0D, 0.0D, 1.0D);
var16.addVertexWithUV(this.width - 12, (double)(30 + var19), 0.0D, 1.0D, 1.0D);
var16.setColorRGBA_I(0, 255);
var16.addVertexWithUV(this.width - 12, 30, 0.0D, 1.0D, 0.0D);
var16.addVertexWithUV(0, 30, 0.0D, 0.0D, 0.0D);
var16.draw();
var16.startDrawingQuads();
var16.setColorRGBA_I(0, 255);
var16.addVertexWithUV(0, this.height - 50, 0.0D, 0.0D, 1.0D);
var16.addVertexWithUV(this.width - 12, this.height - 50, 0.0D, 1.0D, 1.0D);
var16.setColorRGBA_I(0, 0);
var16.addVertexWithUV(this.width - 12, (double)(this.height - 50 - var19), 0.0D, 1.0D, 0.0D);
var16.addVertexWithUV(0, (double)(this.height - 50 - var19), 0.0D, 0.0D, 0.0D);
var16.draw();
GL11.glEnable(3008 /*GL_ALPHA_TEST*/);
GL11.glPopMatrix();
}