Advertisement
Guest User

GuiAddReject

a guest
Jun 10th, 2012
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
  2. // Jad home page: http://www.kpdus.com/jad.html
  3. // Decompiler options: packimports(3) braces deadcode fieldsfirst
  4.  
  5. package net.minecraft.src;
  6.  
  7. import java.util.List;
  8. import net.minecraft.client.Minecraft;
  9.  
  10. // Referenced classes of package net.minecraft.src:
  11. // GuiScreen, GuiButton, teaminfo, GuiTextField
  12.  
  13. public class GuiAddReject extends GuiScreen
  14. {
  15.  
  16. private GuiScreen parentScreen;
  17. private GuiTextField serverTextField;
  18. private String playername;
  19. private String fullMessage;
  20.  
  21. public GuiAddReject(GuiScreen guiscreen, String s, String s1)
  22. {
  23. parentScreen = guiscreen;
  24. playername = s;
  25. fullMessage = s1;
  26. }
  27.  
  28. public void updateScreen()
  29. {
  30. }
  31.  
  32. public void drawScreen(int i, int j, float f)
  33. {
  34. drawRect(width / 2 - 120, height / 2 - 20, width / 2 + 120, height / 2 + 30, 0x60000000);
  35. drawCenteredString(fontRenderer, (new StringBuilder((new StringBuilder()).append("\247c").append(playername).append("\247f").toString())).append(" wants to share team info with you").toString(), width / 2, height / 2 - 13, 0xffffff);
  36. super.drawScreen(i, j, f);
  37. }
  38.  
  39. public void initGui()
  40. {
  41. controlList.clear();
  42. controlList.add(new GuiButton(0, width / 2 - 66, height / 2 + 5, 60, 20, "Add"));
  43. controlList.add(new GuiButton(1, width / 2 + 6, height / 2 + 5, 60, 20, "Reject"));
  44. }
  45.  
  46. public void actionPerformed(GuiButton guibutton)
  47. {
  48. if(guibutton.id == 0)
  49. {
  50. teaminfo.acceptadd(playername);
  51. teaminfo.interpretUpdate(fullMessage);
  52. mc.displayGuiScreen(parentScreen);
  53. }
  54. if(guibutton.id == 1)
  55. {
  56. teaminfo.rejectadd(playername);
  57. mc.displayGuiScreen(parentScreen);
  58. }
  59. }
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement