bearbear12345

Untitled

Jul 27th, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. package u.ra.l.bearbear12345.forge.Mod_Downloader;
  2.  
  3. import net.minecraft.client.gui.GuiScreen;
  4. import cpw.mods.fml.common.MissingModsException;
  5. import cpw.mods.fml.common.versioning.ArtifactVersion;
  6.  
  7. public class GuiDownloadComplete extends GuiScreen
  8. {
  9.  
  10. private MissingModsException modsMissing;
  11.  
  12. public GuiDownloadComplete(MissingModsException modsMissing)
  13. {
  14. this.modsMissing = modsMissing;
  15. }
  16.  
  17. @Override
  18.  
  19. /**
  20. * Adds the buttons (and other controls) to the screen in question.
  21. */
  22. public void initGui()
  23. {
  24. super.initGui();
  25. }
  26. @Override
  27.  
  28. /**
  29. * Draws the screen and all the components in it.
  30. */
  31. public void drawScreen(int par1, int par2, float par3)
  32. {
  33. this.drawDefaultBackground();
  34. int offset = Math.max(85 - modsMissing.missingMods.size() * 10, 10);
  35. this.drawCenteredString(this.fontRenderer, "Forge Mod Loader has found a problem with your minecraft installation", this.width / 2, offset, 0xFFFFFF);
  36. offset+=10;
  37. this.drawCenteredString(this.fontRenderer, "The mods and versions listed below could not be found", this.width / 2, offset, 0xFFFFFF);
  38. offset+=5;
  39. for (ArtifactVersion v : modsMissing.missingMods)
  40. {
  41. offset+=10;
  42. this.drawCenteredString(this.fontRenderer, String.format("%s : %s", v.getLabel(), v.getRangeString()), this.width / 2, offset, 0xEEEEEE);
  43. }
  44. offset+=20;
  45. this.drawCenteredString(this.fontRenderer, "The file 'ForgeModLoader-client-0.log' contains more information", this.width / 2, offset, 0xFFFFFF);
  46. }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment