Advertisement
Guest User

Untitled

a guest
Sep 8th, 2017
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.83 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. }
  68.  
  69. client.java:9650: cannot find symbol
  70. symbol : method drawSprite1(int,int,int)
  71. location: class Background
  72. aBackground_966.drawSprite1(0, 0, 80);
  73. ^
  74. client.java:9652: cannot find symbol
  75. symbol : method drawSprite(int,int)
  76. location: class Background
  77. aBackground_966.drawSprite(0, 0);
  78. ^
  79. client.java:9656: cannot find symbol
  80. symbol : variable aTextDrawingArea_1270
  81. location: class client
  82. aTextDrawingArea_1270.method382(0xffff00, c / 2, loginMe
  83. ssage1, j - 15, true);
  84. ^
  85. client.java:9657: cannot find symbol
  86. symbol : variable aTextDrawingArea_1270
  87. location: class client
  88. aTextDrawingArea_1270.method382(0xffff00, c / 2, loginMe
  89. ssage2, j, true);
  90. ^
  91. client.java:9659: cannot find symbol
  92. symbol : variable aTextDrawingArea_1270
  93. location: class client
  94. aTextDrawingArea_1270.method382(0xffff00, c / 2, loginMe
  95. ssage2, j - 7, true);
  96. ^
  97. client.java:9663: cannot find symbol
  98. symbol : variable aTextDrawingArea_1270
  99. location: class client
  100. aTextDrawingArea_1270.method389(true, c / 2 - 97, 0xffffff,
  101. ^
  102. client.java:9666: cannot find symbol
  103. symbol : variable aTextDrawingArea_1270
  104. location: class client
  105. aTextDrawingArea_1270.method389(true, c / 2 - 97, 0xffffff,
  106. ^
  107. client.java:9674: cannot find symbol
  108. symbol : variable titleButton
  109. location: class client
  110. titleButton.drawSprite(i1 - 73, l1 - 20);
  111. ^
  112. client.java:9676: cannot find symbol
  113. symbol : variable titleButton
  114. location: class client
  115. titleButton.drawSprite(i1 - 73, l1 - 20);
  116. ^
  117. client.java:9684: cannot find symbol
  118. symbol : method method361(int,int,int)
  119. location: class Background
  120. aBackground_967.method361(i1 - 73, l1 - 20, 128);
  121. ^
  122. client.java:9686: cannot find symbol
  123. symbol : method method361(int,int,int)
  124. location: class Background
  125. aBackground_967.method361(i1 - 73, l1 - 20, 128);
  126. ^
  127.  
  128. private void drawLoginScreen(boolean flag) {
  129. resetImageProducers();
  130. aRSImageProducer_1109.initDrawingArea();
  131. aBackground_966.drawBackground(0, 0);
  132. char c = '\u0168';
  133. char c1 = '\310';
  134. if (loginScreenState == 0) {
  135. int i = c1 / 2 + 80;
  136. smallText.method382(0x75a9a9, c / 2, onDemandFetcher.statusString, i, true);
  137. i = c1 / 2 - 20;
  138. chatTextDrawingArea.method382(0xffff00, c / 2, "Welcome to Insomnius", i, true);
  139. i += 30;
  140. int l = c / 2 - 80;
  141. int k1 = c1 / 2 + 20;
  142. aBackground_967.drawBackground(l - 73, k1 - 20);
  143. chatTextDrawingArea.method382(0xffffff, l, "Information", k1 + 5, true);
  144. l = c / 2 + 80;
  145. aBackground_967.drawBackground(l - 73, k1 - 20);
  146. chatTextDrawingArea.method382(0xffffff, l, "Existing User", k1 + 5, true);
  147. }
  148. if (loginScreenState == 2) {
  149. int j = c1 / 2 - 40;
  150. if (loginMessage1.length() > 0) {
  151. chatTextDrawingArea.method382(0xffff00, c / 2, loginMessage1, j - 15, true);
  152. chatTextDrawingArea.method382(0xffff00, c / 2, loginMessage2, j, true);
  153. j += 30;
  154. } else {
  155. chatTextDrawingArea.method382(0xffff00, c / 2, loginMessage2, j - 7, true);
  156. j += 30;
  157. }
  158. chatTextDrawingArea.method389(true, c / 2 - 90, 0xffffff, "Username: " + myUsername + ((loginScreenCursorPos == 0) & (loopCycle % 40 < 20) ? "@yel@|" : ""), j);
  159. j += 15;
  160. chatTextDrawingArea.method389(true, c / 2 - 88, 0xffffff, "Password: " + TextClass.passwordAsterisks(myPassword) + ((loginScreenCursorPos == 1) & (loopCycle % 40 < 20) ? "@yel@|" : ""), j);
  161. j += 15;
  162. if (!flag) {
  163. int i1 = c / 2 - 80;
  164. int l1 = c1 / 2 + 50;
  165. aBackground_967.drawBackground(i1 - 73, l1 - 20);
  166. chatTextDrawingArea.method382(0xffffff, i1, "Login", l1 + 5, true);
  167. i1 = c / 2 + 80;
  168. aBackground_967.drawBackground(i1 - 73, l1 - 20);
  169. chatTextDrawingArea.method382(0xffffff, i1, "Cancel", l1 + 5, true);
  170. }
  171. }
  172. if (loginScreenState == 3) {
  173. chatTextDrawingArea.method382(0xffff00, c / 2, "Information:", c1 / 2 - 60, true);
  174. int k = c1 / 2 - 35;
  175. chatTextDrawingArea.method382(0xffffff, c / 2, "Made by: Purely chill.", k, true);
  176. k += 15;
  177. chatTextDrawingArea.method382(0xffffff, c / 2, "Base: Galkon's 474 look-alike.", k, true);
  178. k += 15;
  179. chatTextDrawingArea.method382(0xffffff, c / 2, "Credits: Galkon, Jagex, Purely chill,", k, true);
  180. k += 15;
  181. chatTextDrawingArea.method382(0xffffff, c / 2, "Rune-Server, Songoty, and Zee Best.", k, true);
  182. k += 15;
  183. int j1 = c / 2;
  184. int i2 = c1 / 2 + 50;
  185. aBackground_967.drawBackground(j1 - 73, i2 - 20);
  186. chatTextDrawingArea.method382(0xffffff, j1, "Cancel", i2 + 5, true);
  187. }
  188. aRSImageProducer_1109.drawGraphics(171, super.graphics, 202);
  189. if (welcomeScreenRaised) {
  190. welcomeScreenRaised = false;
  191. aRSImageProducer_1107.drawGraphics(0, super.graphics, 128);
  192. aRSImageProducer_1108.drawGraphics(371, super.graphics, 202);
  193. aRSImageProducer_1112.drawGraphics(265, super.graphics, 0);
  194. aRSImageProducer_1113.drawGraphics(265, super.graphics, 562);
  195. aRSImageProducer_1114.drawGraphics(171, super.graphics, 128);
  196. aRSImageProducer_1115.drawGraphics(171, super.graphics, 562);
  197. }
  198. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement