protected void func_77214_a( int p_77214_1_, int p_77214_2_, int p_77214_3_, int p_77214_4_, Tessellator p_77214_5_) { TexturePackBase texturepackbase = (TexturePackBase) GuiTexturePacks.func_73953_j(field_77270_a) .field_71418_C .func_77293_d() .get(p_77214_1_); texturepackbase.func_77535_b(GuiTexturePacks.func_73961_k(field_77270_a).field_71446_o); GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); p_77214_5_.func_78382_b(); p_77214_5_.func_78378_d(0xffffff); p_77214_5_.func_78374_a(p_77214_2_, p_77214_3_ + p_77214_4_, 0.0D, 0.0D, 1.0D); p_77214_5_.func_78374_a(p_77214_2_ + 32, p_77214_3_ + p_77214_4_, 0.0D, 1.0D, 1.0D); p_77214_5_.func_78374_a(p_77214_2_ + 32, p_77214_3_, 0.0D, 1.0D, 0.0D); p_77214_5_.func_78374_a(p_77214_2_, p_77214_3_, 0.0D, 0.0D, 0.0D); p_77214_5_.func_78381_a(); field_77270_a.func_73731_b( GuiTexturePacks.func_73960_l(field_77270_a), texturepackbase.func_77538_c(), p_77214_2_ + 32 + 2, p_77214_3_ + 1, 0xffffff); field_77270_a.func_73731_b( GuiTexturePacks.func_73963_m(field_77270_a), texturepackbase.func_77531_d(), p_77214_2_ + 32 + 2, p_77214_3_ + 12, 0x808080); field_77270_a.func_73731_b( GuiTexturePacks.func_73954_n(field_77270_a), texturepackbase.func_77537_e(), p_77214_2_ + 32 + 2, p_77214_3_ + 12 + 10, 0x808080); }
public void func_77211_a(int p_77211_1_, int p_77211_2_, float p_77211_3_) { this.field_77230_e = p_77211_1_; this.field_77227_f = p_77211_2_; this.func_77221_c(); int var4 = this.func_77217_a(); int var5 = this.func_77225_g(); int var6 = var5 + 6; int var9; int var10; int var11; int var13; int var19; if (Mouse.isButtonDown(0)) { if (this.field_77237_m == -1.0F) { boolean var7 = true; if (p_77211_2_ >= this.field_77231_b && p_77211_2_ <= this.field_77232_c) { int var8 = this.field_77228_g / 2 - 110; var9 = this.field_77228_g / 2 + 110; var10 = p_77211_2_ - this.field_77231_b - this.field_77242_t + (int) this.field_77235_o - 4; var11 = var10 / this.field_77229_d; if (p_77211_1_ >= var8 && p_77211_1_ <= var9 && var11 >= 0 && var10 >= 0 && var11 < var4) { boolean var12 = var11 == this.field_77246_p && Minecraft.func_71386_F() - this.field_77245_q < 250L; this.func_77213_a(var11, var12); this.field_77246_p = var11; this.field_77245_q = Minecraft.func_71386_F(); } else if (p_77211_1_ >= var8 && p_77211_1_ <= var9 && var10 < 0) { this.func_77224_a( p_77211_1_ - var8, p_77211_2_ - this.field_77231_b + (int) this.field_77235_o - 4); var7 = false; } if (p_77211_1_ >= var5 && p_77211_1_ <= var6) { this.field_77234_n = -1.0F; var19 = this.func_77209_d(); if (var19 < 1) { var19 = 1; } var13 = (int) ((float) ((this.field_77232_c - this.field_77231_b) * (this.field_77232_c - this.field_77231_b)) / (float) this.func_77212_b()); if (var13 < 32) { var13 = 32; } if (var13 > this.field_77232_c - this.field_77231_b - 8) { var13 = this.field_77232_c - this.field_77231_b - 8; } this.field_77234_n /= (float) (this.field_77232_c - this.field_77231_b - var13) / (float) var19; } else { this.field_77234_n = 1.0F; } if (var7) { this.field_77237_m = (float) p_77211_2_; } else { this.field_77237_m = -2.0F; } } else { this.field_77237_m = -2.0F; } } else if (this.field_77237_m >= 0.0F) { this.field_77235_o -= ((float) p_77211_2_ - this.field_77237_m) * this.field_77234_n; this.field_77237_m = (float) p_77211_2_; } } else { while (Mouse.next()) { int var16 = Mouse.getEventDWheel(); if (var16 != 0) { if (var16 > 0) { var16 = -1; } else if (var16 < 0) { var16 = 1; } this.field_77235_o += (float) (var16 * this.field_77229_d / 2); } } this.field_77237_m = -1.0F; } this.func_77226_h(); GL11.glDisable(2896); GL11.glDisable(2912); Tessellator var18 = Tessellator.field_78398_a; GL11.glBindTexture(3553, this.field_77233_a.field_71446_o.func_78341_b("/gui/background.png")); GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); float var17 = 32.0F; var18.func_78382_b(); var18.func_78378_d(2105376); var18.func_78374_a( (double) this.field_77238_j, (double) this.field_77232_c, 0.0D, (double) ((float) this.field_77238_j / var17), (double) ((float) (this.field_77232_c + (int) this.field_77235_o) / var17)); var18.func_78374_a( (double) this.field_77241_i, (double) this.field_77232_c, 0.0D, (double) ((float) this.field_77241_i / var17), (double) ((float) (this.field_77232_c + (int) this.field_77235_o) / var17)); var18.func_78374_a( (double) this.field_77241_i, (double) this.field_77231_b, 0.0D, (double) ((float) this.field_77241_i / var17), (double) ((float) (this.field_77231_b + (int) this.field_77235_o) / var17)); var18.func_78374_a( (double) this.field_77238_j, (double) this.field_77231_b, 0.0D, (double) ((float) this.field_77238_j / var17), (double) ((float) (this.field_77231_b + (int) this.field_77235_o) / var17)); var18.func_78381_a(); var9 = this.field_77228_g / 2 - 92 - 16; var10 = this.field_77231_b + 4 - (int) this.field_77235_o; if (this.field_77243_s) { this.func_77222_a(var9, var10, var18); } int var14; for (var11 = 0; var11 < var4; ++var11) { var19 = var10 + var11 * this.field_77229_d + this.field_77242_t; var13 = this.field_77229_d - 4; if (var19 <= this.field_77232_c && var19 + var13 >= this.field_77231_b) { if (this.field_77244_r && this.func_77218_a(var11)) { var14 = this.field_77228_g / 2 - 110; int var15 = this.field_77228_g / 2 + 110; GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); GL11.glDisable(3553); var18.func_78382_b(); var18.func_78378_d(8421504); var18.func_78374_a((double) var14, (double) (var19 + var13 + 2), 0.0D, 0.0D, 1.0D); var18.func_78374_a((double) var15, (double) (var19 + var13 + 2), 0.0D, 1.0D, 1.0D); var18.func_78374_a((double) var15, (double) (var19 - 2), 0.0D, 1.0D, 0.0D); var18.func_78374_a((double) var14, (double) (var19 - 2), 0.0D, 0.0D, 0.0D); var18.func_78378_d(0); var18.func_78374_a((double) (var14 + 1), (double) (var19 + var13 + 1), 0.0D, 0.0D, 1.0D); var18.func_78374_a((double) (var15 - 1), (double) (var19 + var13 + 1), 0.0D, 1.0D, 1.0D); var18.func_78374_a((double) (var15 - 1), (double) (var19 - 1), 0.0D, 1.0D, 0.0D); var18.func_78374_a((double) (var14 + 1), (double) (var19 - 1), 0.0D, 0.0D, 0.0D); var18.func_78381_a(); GL11.glEnable(3553); } this.func_77214_a(var11, var9, var19, var13, var18); } } GL11.glDisable(2929); byte var20 = 4; this.func_77206_b(0, this.field_77231_b, 255, 255); this.func_77206_b(this.field_77232_c, this.field_77240_h, 255, 255); GL11.glEnable(3042); GL11.glBlendFunc(770, 771); GL11.glDisable(3008); GL11.glShadeModel(7425); GL11.glDisable(3553); var18.func_78382_b(); var18.func_78384_a(0, 0); var18.func_78374_a( (double) this.field_77238_j, (double) (this.field_77231_b + var20), 0.0D, 0.0D, 1.0D); var18.func_78374_a( (double) this.field_77241_i, (double) (this.field_77231_b + var20), 0.0D, 1.0D, 1.0D); var18.func_78384_a(0, 255); var18.func_78374_a((double) this.field_77241_i, (double) this.field_77231_b, 0.0D, 1.0D, 0.0D); var18.func_78374_a((double) this.field_77238_j, (double) this.field_77231_b, 0.0D, 0.0D, 0.0D); var18.func_78381_a(); var18.func_78382_b(); var18.func_78384_a(0, 255); var18.func_78374_a((double) this.field_77238_j, (double) this.field_77232_c, 0.0D, 0.0D, 1.0D); var18.func_78374_a((double) this.field_77241_i, (double) this.field_77232_c, 0.0D, 1.0D, 1.0D); var18.func_78384_a(0, 0); var18.func_78374_a( (double) this.field_77241_i, (double) (this.field_77232_c - var20), 0.0D, 1.0D, 0.0D); var18.func_78374_a( (double) this.field_77238_j, (double) (this.field_77232_c - var20), 0.0D, 0.0D, 0.0D); var18.func_78381_a(); var19 = this.func_77209_d(); if (var19 > 0) { var13 = (this.field_77232_c - this.field_77231_b) * (this.field_77232_c - this.field_77231_b) / this.func_77212_b(); if (var13 < 32) { var13 = 32; } if (var13 > this.field_77232_c - this.field_77231_b - 8) { var13 = this.field_77232_c - this.field_77231_b - 8; } var14 = (int) this.field_77235_o * (this.field_77232_c - this.field_77231_b - var13) / var19 + this.field_77231_b; if (var14 < this.field_77231_b) { var14 = this.field_77231_b; } var18.func_78382_b(); var18.func_78384_a(0, 255); var18.func_78374_a((double) var5, (double) this.field_77232_c, 0.0D, 0.0D, 1.0D); var18.func_78374_a((double) var6, (double) this.field_77232_c, 0.0D, 1.0D, 1.0D); var18.func_78374_a((double) var6, (double) this.field_77231_b, 0.0D, 1.0D, 0.0D); var18.func_78374_a((double) var5, (double) this.field_77231_b, 0.0D, 0.0D, 0.0D); var18.func_78381_a(); var18.func_78382_b(); var18.func_78384_a(8421504, 255); var18.func_78374_a((double) var5, (double) (var14 + var13), 0.0D, 0.0D, 1.0D); var18.func_78374_a((double) var6, (double) (var14 + var13), 0.0D, 1.0D, 1.0D); var18.func_78374_a((double) var6, (double) var14, 0.0D, 1.0D, 0.0D); var18.func_78374_a((double) var5, (double) var14, 0.0D, 0.0D, 0.0D); var18.func_78381_a(); var18.func_78382_b(); var18.func_78384_a(12632256, 255); var18.func_78374_a((double) var5, (double) (var14 + var13 - 1), 0.0D, 0.0D, 1.0D); var18.func_78374_a((double) (var6 - 1), (double) (var14 + var13 - 1), 0.0D, 1.0D, 1.0D); var18.func_78374_a((double) (var6 - 1), (double) var14, 0.0D, 1.0D, 0.0D); var18.func_78374_a((double) var5, (double) var14, 0.0D, 0.0D, 0.0D); var18.func_78381_a(); } this.func_77215_b(p_77211_1_, p_77211_2_); GL11.glEnable(3553); GL11.glShadeModel(7424); GL11.glEnable(3008); GL11.glDisable(3042); }