Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static int redcolor = 153;
- private static boolean redhochRunter;
- private static int greencolor = 153;
- private static boolean greenhochRunter;
- private static int bluecolor = 255;
- private static boolean bluehochRunter;
- public void drawScreen(int mouseX, int mouseY, float partialTicks) {
- if (redcolor == 153)
- redhochRunter = false;
- if (redcolor == 2) {
- redhochRunter = true;
- }
- if (redhochRunter)
- redcolor++;
- if (!redhochRunter)
- redcolor--;
- // --
- if (greencolor == 153)
- greenhochRunter = false;
- if (greencolor == 2) {
- greenhochRunter = true;
- }
- if (greenhochRunter)
- greencolor++;
- if (!greenhochRunter)
- greencolor--;
- // --
- if (bluecolor == 255)
- bluehochRunter = false;
- if (bluecolor == 155) {
- bluehochRunter = true;
- }
- if (bluehochRunter)
- bluecolor++;
- if (!bluehochRunter)
- bluecolor--;
- Color test = new Color(redcolor,greencolor,bluecolor);
- if (greencolor <= 24) {
- try {
- this.drawGradientRect(0, 0, this.width, this.height, test.getRGB(), new Color(redcolor - 25, greencolor, bluecolor - 25).getRGB());
- }catch (IllegalArgumentException iae) {
- this.drawGradientRect(0, 0, this.width, this.height, test.getRGB(), new Color(redcolor, greencolor, bluecolor - 25).getRGB());
- }
- }else {
- try {
- this.drawGradientRect(0, 0, this.width, this.height, test.getRGB(), new Color(redcolor - 25, greencolor - 25, bluecolor - 25).getRGB());
- }catch (IllegalArgumentException iae) {
- this.drawGradientRect(0, 0, this.width, this.height, test.getRGB(), new Color(redcolor, greencolor - 25, bluecolor - 25).getRGB());
- }
- }
- GlStateManager.disableAlpha();
- this.renderSkybox(mouseX, mouseY, partialTicks);
- GlStateManager.enableAlpha();
- Tessellator var4 = Tessellator.getInstance();
- WorldRenderer var5 = var4.getWorldRenderer();
- short var6 = 274;
- int var7 = this.width / 2 - var6 / 2;
- byte var8 = 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);
- GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
- if ((double) this.updateCounter < 1.0E-4D) {
- this.drawTexturedModalRect(var7 + 0, var8 + 0, 0, 0, 99, 44);
- this.drawTexturedModalRect(var7 + 99, var8 + 0, 129, 0, 27, 44);
- this.drawTexturedModalRect(var7 + 99 + 26, var8 + 0, 126, 0, 3, 44);
- this.drawTexturedModalRect(var7 + 99 + 26 + 3, var8 + 0, 99, 0, 26, 44);
- this.drawTexturedModalRect(var7 + 155, var8 + 0, 0, 45, 155, 44);
- } else {
- this.drawTexturedModalRect(var7 + 0, var8 + 0, 0, 0, 155, 44);
- this.drawTexturedModalRect(var7 + 155, var8 + 0, 0, 45, 155, 44);
- }
- var5.func_178991_c(-1);
- GlStateManager.pushMatrix();
- GlStateManager.translate((float) (this.width / 2 + 90), 70.0F, 0.0F);
- GlStateManager.rotate(-20.0F, 0.0F, 0.0F, 1.0F);
- float var9 = 1.8F - MathHelper.abs(
- MathHelper.sin((float) (Minecraft.getSystemTime() % 1000L) / 1000.0F * (float) Math.PI * 2.0F) * 0.1F);
- var9 = var9 * 100.0F / (float) (this.fontRendererObj.getStringWidth(this.splashText) + 32);
- GlStateManager.scale(var9, var9, var9);
- this.drawCenteredString(this.fontRendererObj, this.splashText, 0, -8, -256);
- GlStateManager.popMatrix();
- String var10 = "Minecraft 1.8";
- if (this.mc.isDemo()) {
- var10 = var10 + " Demo";
- }
- this.drawString(this.fontRendererObj, var10, 2, this.height - 10, -1);
- String var11 = "Copyright Mojang AB. Do not distribute!";
- this.drawString(this.fontRendererObj, var11, this.width - this.fontRendererObj.getStringWidth(var11) - 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(mouseX, mouseY, partialTicks);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement