Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. package net.minecraft.client.gui;
  2.  
  3. import net.minecraft.client.Minecraft;
  4. import net.minecraft.util.ResourceLocation;
  5.  
  6. import org.lwjgl.opengl.GL11;
  7.  
  8. public class TEST
  9. extends GuiButton
  10. {
  11.  
  12. protected static final ResourceLocation aight = new ResourceLocation("cyl/textures/gui/buttonIYC.png");
  13.  
  14. public TEST(int par1, int par2, int par3)
  15. {
  16. super(par1, par2, par3, 20, 20, "");
  17. }
  18.  
  19. public void drawButton(Minecraft par1Minecraft, int par2, int par3)
  20. {
  21. if (this.drawButton)
  22. {
  23. par1Minecraft.getTextureManager().bindTexture(aight);
  24. GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
  25. boolean var4 = par2 >= this.xPosition && par3 >= this.yPosition && par2 < this.xPosition + this.width && par3 < this.yPosition + this.height;
  26. int var5 = 146;
  27. if (var4)
  28. {
  29. var5 += this.height;
  30. }
  31. this.drawTexturedModalRect(this.xPosition, this.yPosition, 0, var5, this.width, this.height);
  32. }
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement