public void drawScreen(int par1, int par2, float par3) { this.drawDefaultBackground(); final int var5 = (this.width - this.width / 4) / 2; final int var6 = (this.height - this.height / 4) / 2; if (this.initialized) { this.drawCenteredString( this.fontRendererObj, "Join Space Race", this.width / 2, this.height / 2 - this.height / 3 - 15, 16777215); this.drawFlagButton(par1, par2); this.drawCenteredString( this.fontRendererObj, "Owner: " + this.spaceRaceData.getPlayerNames().get(0), this.width / 2, (int) (this.buttonFlag_yPosition + this.buttonFlag_height + 25), GCCoreUtil.to32BitColor(255, 150, 150, 150)); this.drawCenteredString( this.fontRendererObj, this.spaceRaceData.getPlayerNames().size() + " members", this.width / 2, (int) (this.buttonFlag_yPosition + this.buttonFlag_height + 40), GCCoreUtil.to32BitColor(255, 150, 150, 150)); GL11.glPushMatrix(); GL11.glTranslatef( this.width / 2, (int) (this.buttonFlag_yPosition + this.buttonFlag_height + 5) + FMLClientHandler.instance().getClient().fontRenderer.FONT_HEIGHT / 2, 0); GL11.glScalef(1.5F, 1.5F, 1.0F); GL11.glTranslatef( -this.width / 2, (int) -(this.buttonFlag_yPosition + this.buttonFlag_height + 5) - FMLClientHandler.instance().getClient().fontRenderer.FONT_HEIGHT / 2, 0); this.drawCenteredString( this.fontRendererObj, this.spaceRaceData.getTeamName(), this.width / 2, (int) (this.buttonFlag_yPosition + this.buttonFlag_height + 5), GCCoreUtil.to32BitColor(255, 100, 150, 20)); GL11.glPopMatrix(); } super.drawScreen(par1, par2, par3); }
@Override public void drawScreen(int par1, int par2, float par3) { final int var5 = (this.width - this.xSize) / 2; final int var6 = (this.height - this.ySize) / 2; this.mc.renderEngine.bindTexture(GuiAirLockController.airLockControllerGui); this.drawTexturedModalRect(var5, var6, 0, 0, this.xSize, this.ySize); this.drawTexturedModalRect(var5 + 15, var6 + 51, 176, 0, 7, 9); String displayString = this.controller.ownerName + "\'s " + "Air Lock Controller"; this.fontRendererObj.drawString( displayString, this.width / 2 - this.fontRendererObj.getStringWidth(displayString) / 2, this.height / 2 - 65, 4210752); if (this.cannotEditTimer > 0) { this.fontRendererObj.drawString( this.controller.ownerName, this.width / 2 - this.fontRendererObj.getStringWidth(displayString) / 2, this.height / 2 - 65, this.cannotEditTimer % 30 < 15 ? GCCoreUtil.to32BitColor(255, 255, 100, 100) : 4210752); this.cannotEditTimer--; } displayString = "Status:"; this.fontRendererObj.drawString( displayString, this.width / 2 - this.fontRendererObj.getStringWidth(displayString) / 2, this.height / 2 + 45, 4210752); displayString = "Air Lock Closed"; if (this.controller.active) { displayString = "Air Lock Closed"; } else { displayString = "Air Lock Open"; } this.fontRendererObj.drawString( displayString, this.width / 2 - this.fontRendererObj.getStringWidth(displayString) / 2, this.height / 2 + 55, 4210752); super.drawScreen(par1, par2, par3); }
@Override public int getTextColor(GuiElementTextBox textBox) { return GCCoreUtil.to32BitColor(255, 200, 200, 200); }