Alors il me pointe ça :super.drawScreen(par1, par2, par3);
et c’est inséré dans la méthode suivante :
| |
| public void drawScreen(int par1, int par2, float par3) |
| { |
| GL11.glDisable(GL11.GL_ALPHA_TEST); |
| this.renderSkybox(par1, par2, par3); |
| GL11.glEnable(GL11.GL_ALPHA_TEST); |
| Tessellator tessellator = Tessellator.instance; |
| short short1 = 274; |
| int k = this.width / 2 - short1 / 2; |
| byte b0 = 30; |
| this.drawGradientRect(0, 0, this.width, this.height, -2130706433, 16777215); |
| this.drawGradientRect(0, 0, this.width, this.height, 0, Integer.MIN_VALUE); |
| this.mc.getTextureManager().bindTexture(minecraftTitleTextures); |
| GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); |
| |
| if ((double)this.updateCounter < 1.0E-4D) |
| { |
| this.drawTexturedModalRect(k + 0, b0 + 0, 0, 0, 99, 44); |
| this.drawTexturedModalRect(k + 99, b0 + 0, 129, 0, 27, 44); |
| this.drawTexturedModalRect(k + 99 + 26, b0 + 0, 126, 0, 3, 44); |
| this.drawTexturedModalRect(k + 99 + 26 + 3, b0 + 0, 99, 0, 26, 44); |
| this.drawTexturedModalRect(k + 155, b0 + 0, 0, 45, 155, 44); |
| } |
| else |
| { |
| this.drawTexturedModalRect(k + 0, b0 + 0, 0, 0, 155, 44); |
| this.drawTexturedModalRect(k + 155, b0 + 0, 0, 45, 155, 44); |
| } |
| |
| tessellator.setColorOpaque_I(-1); |
| GL11.glPushMatrix(); |
| GL11.glTranslatef((float)(this.width / 2 + 90), 70.0F, 0.0F); |
| GL11.glRotatef(-20.0F, 0.0F, 0.0F, 1.0F); |
| float f1 = 1.8F - MathHelper.abs(MathHelper.sin((float)(Minecraft.getSystemTime() % 1000L) / 1000.0F * (float)Math.PI * 2.0F) * 0.1F); |
| f1 = f1 * 100.0F / (float)(this.fontRendererObj.getStringWidth(this.splashText) + 32); |
| GL11.glScalef(f1, f1, f1); |
| this.drawCenteredString(this.fontRendererObj, this.splashText, 0, -8, -256); |
| GL11.glPopMatrix(); |
| String s = "Minecraft 1.7.2"; |
| |
| if (this.mc.isDemo()) |
| { |
| s = s + " Demo"; |
| } |
| |
| List <string>brandings = Lists.reverse(FMLCommonHandler.instance().getBrandings(true)); |
| for (int i = 0; i < brandings.size(); i++) |
| { |
| String brd = brandings.get(i); |
| if (!Strings.isNullOrEmpty(brd)) |
| { |
| this.drawString(this.fontRendererObj, brd, 2, this.height - ( 10 + i * (this.fontRendererObj.FONT_HEIGHT + 1)), 16777215); |
| } |
| } |
| ForgeHooksClient.renderMainMenu(this, fontRendererObj, width, height); |
| String s1 = "Copyright Mojang AB. Do not distribute!"; |
| this.drawString(this.fontRendererObj, s1, this.width - this.fontRendererObj.getStringWidth(s1) - 2, this.height - 10, -1); |
| |
| if (this.field_92025_p != null && this.field_92025_p.length() > 0) |
| { |
| drawRect(this.field_92022_t - 2, this.field_92021_u - 2, this.field_92020_v + 2, this.field_92019_w - 1, 1428160512); |
| this.drawString(this.fontRendererObj, this.field_92025_p, this.field_92022_t, this.field_92021_u, -1); |
| this.drawString(this.fontRendererObj, this.field_146972_A, (this.width - this.field_92024_r) / 2, ((GuiButton)this.buttonList.get(0)).yPosition - 12, -1); |
| } |
| |
| super.drawScreen(par1, par2, par3); |
| } |
| |
| ```</string> |