Guest User

Untitled

a guest
Nov 21st, 2013
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. package TwixCore.gui;
  2.  
  3. import java.awt.image.BufferedImage;
  4.  
  5. import net.minecraft.client.Minecraft;
  6. import net.minecraft.client.gui.GuiButton;
  7. import net.minecraft.client.gui.GuiScreen;
  8. import net.minecraft.util.StatCollector;
  9.  
  10. import org.lwjgl.opengl.GL11;
  11.  
  12. public class GuiChangelogDownload extends GuiScreen {
  13.  
  14. private GuiButton download;
  15.  
  16. public GuiChangelogDownload()
  17. {
  18. }
  19.  
  20. @Override
  21. public void initGui() {
  22. this.buttonList.add(new GuiButton(200, (this.width / 2) - 50, this.height - 45, 100, 20, "Close"));
  23. }
  24.  
  25. public boolean doesGuiPauseGame()
  26. {
  27. return false;
  28. }
  29.  
  30. protected void actionPerformed(GuiButton guibutton)
  31. {
  32. if(guibutton.id == 1)
  33. {
  34. //close gui code here
  35.  
  36. }
  37. }
  38.  
  39. public void onGuiClosed()
  40. {
  41.  
  42. }
  43.  
  44. public void drawScreen(int i, int j, float f)
  45. {
  46. drawDefaultBackground();
  47. drawGradientRect(150, 20, width - 150, height - 20, 0x60500000, 0xa0803030);
  48. drawCenteredString(fontRenderer, " \u00A7lMy Mods", width / 2, 45, 0xffffff);
  49. drawCenteredString(fontRenderer, "\u00A7l1." + "\u00A7fTwixCore", width / 2, 55, 0xffffff);
  50. drawCenteredString(fontRenderer, "\u00A7l2." + "\u00A7fTwixMod", width / 2, 65, 0xffffff);
  51. super.drawScreen(i, j, f);
  52. }
  53.  
  54. }
Advertisement
Add Comment
Please, Sign In to add comment