Advertisement
Guest User

Untitled

a guest
May 11th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. private void drawLoginScreen(boolean flag) {
  2. resetImageProducers();
  3. aRSImageProducer_1109.initDrawingArea();
  4. /* Setup the variables */
  5. char c = '\u0168';
  6. char c1 = '\310';
  7. int j = c1 / 2 - 40;
  8. int i1 = c / 2 - 80;
  9. int l1 = c1 / 2 + 50;
  10.  
  11. /* Draws the titlebox ( */
  12. if(!flag)
  13. titleBox.drawSprite1(0, 0, 80);
  14. else
  15. titleBox.drawSprite(0, 0);
  16.  
  17. /* Draws the login message(s) */
  18. if (loginMessage1.length() > 0) {
  19. aTextDrawingArea_1270.method382(0xffff00, c / 2, loginMessage1, j - 15, true);
  20. aTextDrawingArea_1270.method382(0xffff00, c / 2, loginMessage2, j, true);
  21. } else {
  22. aTextDrawingArea_1270.method382(0xffff00, c / 2, loginMessage2, j - 7, true);
  23. }
  24.  
  25. /* Draws username/password text */
  26. aTextDrawingArea_1270.method389(true, c / 2 - 97, 0xffffff,
  27. "Username: " + myUsername + ((loginScreenCursorPos == 0)
  28. & (loopCycle % 40 < 20) ? "@yel@|" : ""), j + 30);
  29. aTextDrawingArea_1270.method389(true, c / 2 - 97, 0xffffff,
  30. "Password: " + TextClass.passwordAsterisks(myPassword)
  31. + ((loginScreenCursorPos == 1) & (loopCycle % 40 < 20)
  32. ? "@yel@|" : ""), j + 45);
  33.  
  34. /* Draws the titlebuttons and text */
  35. if(!flag) {
  36. i1 = c / 2 - 80;
  37. titleButton.drawSprite(i1 - 73, l1 - 20);
  38. i1 = c / 2 + 80;
  39. titleButton.drawSprite(i1 - 73, l1 - 20);
  40. }
  41. i1 = c / 2 - 80;
  42. chatTextDrawingArea.method382(0xffffff, i1, "Login", l1 + 5, true);
  43. i1 = c / 2 + 80;
  44. chatTextDrawingArea.method382(0xffffff, i1, "Clear", l1 + 5, true);
  45. if(flag) {
  46. i1 = c / 2 - 80;
  47. aBackground_967.method361(i1 - 73, l1 - 20, 128);
  48. i1 = c / 2 + 80;
  49. aBackground_967.method361(i1 - 73, l1 - 20, 128);
  50. }
  51.  
  52. /* What the titlebox gets drawn on */
  53. aRSImageProducer_1109.drawGraphics(171, super.graphics, 202);
  54.  
  55. /* If needed, draws the background again */
  56. if (welcomeScreenRaised) {
  57. welcomeScreenRaised = false;
  58. aRSImageProducer_1110.drawGraphics(0, super.graphics, 0);
  59. aRSImageProducer_1111.drawGraphics(0, super.graphics, 637);
  60. aRSImageProducer_1107.drawGraphics(0, super.graphics, 128);
  61. aRSImageProducer_1108.drawGraphics(371, super.graphics, 202);
  62. aRSImageProducer_1112.drawGraphics(265, super.graphics, 0);
  63. aRSImageProducer_1113.drawGraphics(265, super.graphics, 562);
  64. aRSImageProducer_1114.drawGraphics(171, super.graphics, 128);
  65. aRSImageProducer_1115.drawGraphics(171, super.graphics, 562);
  66. }
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement