Advertisement
Guest User

Untitled

a guest
Nov 29th, 2015
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.96 KB | None | 0 0
  1. package com.runeunity.cache.media.interfaces.impl;
  2.  
  3. import com.runeunity.cache.media.interfaces.Widget;
  4. import com.runeunity.media.text.GameFont;
  5.  
  6. public class TeleportInterface extends Widget {
  7.  
  8. public static void teleportTop(GameFont[] TDA) {
  9. addText(16502, "Monsters", 0xff981f, true, true, 0, TDA, 1);
  10. addText(16503, "Bosses", 0xff981f, true, true, 0, TDA, 1);
  11. addText(16504, "Dungeons", 0xff981f, true, true, 0, TDA, 1);
  12. addText(16505, "Teleports", 0xff981f, true, true, 0, TDA, 1);
  13. addButton(16506, 0, "Teleports/ButtonThing", "Monsters");
  14. addButton(16507, 0, "Teleports/ButtonThing", "Bosses");
  15. addButton(16508, 0, "Teleports/ButtonThing", "Dungeons");
  16. addButton(16509, 0, "Teleports/ButtonThing", "Teleports");
  17. }
  18.  
  19. public static void monsterTeleports(GameFont[] TDA) {
  20. Widget tab = addInterface(16500);
  21. addSprite(16501, 0, "/Teleports/TELEPORTS");
  22. Widget tab2 = addInterface(16510);
  23. Widget tab3 = addInterface(16511);
  24. addText(16512, "Slayer Monsters", 0xff9040, true, true, 0, TDA, 3);
  25. addText(16513, "Regular Monsters", 0xff9040, true, true, 0, TDA, 3);
  26. addHoverButton(16514, "/Teleports/BUTTON", 2, 170, 26, "View", 0, 16515, 1);
  27. addHoveredButton(16515, "/Teleports/BUTTON", 3, 170, 26, 16517);
  28. addText(16516, "Official Drop List", 0xffff00, true, true, 0, TDA, 0);
  29. tab.totalChildren(18);
  30. int x = 10, y = 10;
  31. tab.child(0, 16501, x, y);
  32. tab.child(1, 16502, 68 + x, 12 + y);
  33. tab.child(2, 16503, 184 + x, 12 + y);
  34. tab.child(3, 16504, 300 + x, 12 + y);
  35. tab.child(4, 16505, 416 + x, 12 + y);
  36. tab.child(5, 16506, 13 + x, 10 + y);
  37. tab.child(6, 16507, 129 + x, 10 + y);
  38. tab.child(7, 16508, 245 + x, 10 + y);
  39. tab.child(8, 16509, 361 + x, 10 + y);
  40. tab.child(9, 16510, 10 + x, 60 + y);
  41. tab.child(10, 16511, 183 + x, 60 + y);
  42. tab.child(11, 16512, 85 + x, 36 + y);
  43. tab.child(12, 16513, 320 + x, 36 + y);
  44. tab.child(13, 16514, 225 + x, 271 + y);
  45. tab.child(14, 16515, 225 + x, 271 + y);
  46. tab.child(15, 16516, 310 + x, 278 + y);
  47. tab.child(16, 2703, 473 + x, 0 + y);
  48. tab.child(17, 2704, 473 + x, 0 + y);
  49. tab2.width = 160;
  50. tab2.height = 230;
  51. tab2.scrollMax = 545;
  52. String[] slayerMonsters = new String[] { "Dust Devil", "Gargoyle", "Nechryael", "Abyssal Demon", "Dark Beast",
  53. "Kurask Overload", "Skeletal Wyvern", "Aquanite", "Open", "Open", "Open", "Open", "Open", "Open", "Open" };
  54. String[] normalMonsters = new String[] { "Rock Crabs", "Elf Warrior", "Skeletal Warlocks", "Starlight", "Ghost",
  55. "Bree", "Giant Bat", "Greater Demon", "Rock Lobster", "Chaos Dwarf" };
  56. String[] normalMonsters2 = new String[] { "Warped Tortoise", "Chaos Druid", "Balanced Elemental", "Giants",
  57. "Hellhound", "Black Demon", "Lesser Demon", "Blue Dragon", "Green Dragon(lvl13 wildy)", "Black Dragon" };
  58. tab2.totalChildren(45);
  59. for (int i = 0; i < 45; i += 3) {
  60. addHoverButton(16520 + i, "/Teleports/BUTTON", 0, 125, 26, "Teleport", 0, 16521 + i, 1);
  61. addHoveredButton(16521 + i, "/Teleports/BUTTON", 1, 125, 26, 16519);
  62. addText(16522 + i, slayerMonsters[i / 3], 0xff9040, true, true, 0, TDA, 0);
  63. tab2.child(i, 16520 + i, 18, ((i / 3) * 34) + 9);
  64. tab2.child(i + 1, 16521 + i, 18, ((i / 3) * 34) + 9);
  65. tab2.child(i + 2, 16522 + i, 79, ((i / 3) * 34) + 16);
  66. }
  67. tab3.width = 273;
  68. tab3.height = 208;
  69. tab3.scrollMax = 350;
  70. tab3.totalChildren(60);
  71. for (int i = 0; i < 30; i += 3) {
  72. addHoverButton(16570 + i, "/Teleports/BUTTON", 0, 125, 26, "Teleport", 0, 16571 + i, 1);
  73. addHoveredButton(16571 + i, "/Teleports/BUTTON", 1, 125, 26, 16519);
  74. addText(16572 + i, normalMonsters[i / 3], 0xff9040, true, true, 0, TDA, 0);
  75. tab3.child(i, 16570 + i, 6, ((i / 3) * 34) + 9);
  76. tab3.child(i + 1, 16571 + i, 6, ((i / 3) * 34) + 9);
  77. tab3.child(i + 2, 16572 + i, 67, ((i / 3) * 34) + 16);
  78. }
  79. for (int i = 30; i < 60; i += 3) {
  80. addHoverButton(16570 + i, "/Teleports/BUTTON", 0, 125, 26, "Teleport", 0, 16571 + i, 1);
  81. addHoveredButton(16571 + i, "/Teleports/BUTTON", 1, 125, 26, 16519);
  82. addText(16572 + i, normalMonsters2[(i - 30) / 3], 0xff9040, true, true, 0, TDA, 0);
  83. tab3.child(i, 16570 + i, 6 + 140, (((i - 30) / 3) * 34) + 9);
  84. tab3.child(i + 1, 16571 + i, 6 + 140, (((i - 30) / 3) * 34) + 9);
  85. tab3.child(i + 2, 16572 + i, 67 + 140, (((i - 30) / 3) * 34) + 16);
  86. }
  87. }
  88.  
  89. public static void bossTeleports(GameFont[] TDA) {
  90. Widget tab = addInterface(16700);
  91. addSprite(16701, 1, "/Teleports/TELEPORTS");
  92. Widget tab2 = addInterface(16710);
  93. Widget tab3 = addInterface(16711);
  94. addText(16712, "Godwars Bosses", 0xff9040, true, true, 0, TDA, 3);
  95. addText(16713, "Other Bosses", 0xff9040, true, true, 0, TDA, 3);
  96. tab.totalChildren(18);
  97. int x = 10, y = 10;
  98. tab.child(0, 16701, x, y);
  99. tab.child(1, 16502, 68 + x, 12 + y);
  100. tab.child(2, 16503, 184 + x, 12 + y);
  101. tab.child(3, 16504, 300 + x, 12 + y);
  102. tab.child(4, 16505, 416 + x, 12 + y);
  103. tab.child(5, 16506, 13 + x, 10 + y);
  104. tab.child(6, 16507, 129 + x, 10 + y);
  105. tab.child(7, 16508, 245 + x, 10 + y);
  106. tab.child(8, 16509, 361 + x, 10 + y);
  107. tab.child(9, 16710, 10 + x, 60 + y);
  108. tab.child(10, 16711, 183 + x, 60 + y);
  109. tab.child(11, 16712, 85 + x, 36 + y);
  110. tab.child(12, 16713, 320 + x, 36 + y);
  111. tab.child(13, 16514, 225 + x, 271 + y);
  112. tab.child(14, 16515, 225 + x, 271 + y);
  113. tab.child(15, 16516, 310 + x, 278 + y);
  114. tab.child(16, 2703, 473 + x, 0 + y);
  115. tab.child(17, 2704, 473 + x, 0 + y);
  116. tab2.width = 160;
  117. tab2.height = 230;
  118. tab2.scrollMax = 235;
  119. String[] gwdBosses = new String[] { "Nex", "Bandos", "Zamorak", "Saradomin", "Armadyl" };
  120. String[] normalBosses = new String[] { "Avatar of Creation", "Avatar of Destruction", "Barrelchest", "Bork",
  121. "Blink", "Chaos Elemental", "Dagganoth Kings", "Frost Dragons", "Giant Roc", "Giant Mole" };
  122. String[] normalBosses2 = new String[] { "Glacors", "King Black Dragon", "Kalphite Queen", "Nomad",
  123. "Penance Queen", "Tormented Demons", "Unholy Curse Bearer", "Corporeal Beast", "Open", "Open", };
  124. tab2.totalChildren(15);
  125. for (int i = 0; i < 15; i += 3) {
  126. addHoverButton(16720 + i, "/Teleports/BUTTON", 0, 125, 26, "Teleport", 0, 16721 + i, 1);
  127. addHoveredButton(16721 + i, "/Teleports/BUTTON", 1, 125, 26, 16719);
  128. addText(16722 + i, gwdBosses[i / 3], 0xff9040, true, true, 0, TDA, 0);
  129. tab2.child(i, 16720 + i, 18, ((i / 3) * 34) + 9);
  130. tab2.child(i + 1, 16721 + i, 18, ((i / 3) * 34) + 9);
  131. tab2.child(i + 2, 16722 + i, 79, ((i / 3) * 34) + 16);
  132. }
  133. tab3.width = 273;
  134. tab3.height = 208;
  135. tab3.scrollMax = 350;
  136. tab3.totalChildren(60);
  137. for (int i = 0; i < 30; i += 3) {
  138. addHoverButton(16770 + i, "/Teleports/BUTTON", 0, 125, 26, "Teleport", 0, 16771 + i, 1);
  139. addHoveredButton(16771 + i, "/Teleports/BUTTON", 1, 125, 26, 16719);
  140. addText(16772 + i, normalBosses[i / 3], 0xff9040, true, true, 0, TDA, 0);
  141. tab3.child(i, 16770 + i, 6, ((i / 3) * 34) + 9);
  142. tab3.child(i + 1, 16771 + i, 6, ((i / 3) * 34) + 9);
  143. tab3.child(i + 2, 16772 + i, 67, ((i / 3) * 34) + 16);
  144. }
  145. for (int i = 30; i < 60; i += 3) {
  146. addHoverButton(16770 + i, "/Teleports/BUTTON", 0, 125, 26, "Teleport", 0, 16771 + i, 1);
  147. addHoveredButton(16771 + i, "/Teleports/BUTTON", 1, 125, 26, 16719);
  148. addText(16772 + i, normalBosses2[(i - 30) / 3], 0xff9040, true, true, 0, TDA, 0);
  149. tab3.child(i, 16770 + i, 6 + 140, (((i - 30) / 3) * 34) + 9);
  150. tab3.child(i + 1, 16771 + i, 6 + 140, (((i - 30) / 3) * 34) + 9);
  151. tab3.child(i + 2, 16772 + i, 67 + 140, (((i - 30) / 3) * 34) + 16);
  152. }
  153. }
  154.  
  155. public static void dungeonTeleports(GameFont[] TDA) {
  156. Widget tab = addInterface(16900);
  157. addSprite(16901, 2, "/Teleports/TELEPORTS");
  158. addText(16902, "Location", 0xffff00, true, true, 0, TDA, 2);
  159. addText(16903, "Monsters Inside", 0xffff00, true, true, 0, TDA, 2);
  160. String[] locs = { "Taverly Dungeon", "Brimhaven Dungeon", "New Cave", "New Mystic Island", "Open" };
  161. String[] insides = {
  162. "Ghosts, Skeleton Warlocks, Blue Dragons, Chaos Dwarfs,\\nChaos Druids, Hell Hounds, Dark Beasts, Black Demons, \\nBlack Dragons",
  163. "Lesser Demons, Fire Giants, Hill Giants, Moss Giants",
  164. "Bork, Unholy Curse Bearer, Nomad - Bosses\\nKurask Overlord - Slayer Monsters",
  165. "Balanced Elementals, Starlight, Bree, Warped Tortoise\\nGiant Roc - Boss", "..." };
  166. for (int i = 0; i < 20; i += 4) {
  167. addHoverButton(16904 + i, "/Teleports/BUTTON", 0, 125, 26, "Teleport", 0, 16905 + i, 1);
  168. addHoveredButton(16905 + i, "/Teleports/BUTTON", 1, 125, 26, 16719);
  169. addText(16906 + i, locs[i / 4], 0x80ff00, true, true, 1, TDA, 0);
  170. addText(16907 + i, insides[i / 4], 0xff9040, false, true, 0, TDA, 0);
  171. }
  172. tab.totalChildren(33);
  173. int x = 10, y = 10;
  174. tab.child(0, 16901, x, y);
  175. tab.child(1, 16502, 68 + x, 12 + y);
  176. tab.child(2, 16503, 184 + x, 12 + y);
  177. tab.child(3, 16504, 300 + x, 12 + y);
  178. tab.child(4, 16505, 416 + x, 12 + y);
  179. tab.child(5, 16506, 13 + x, 10 + y);
  180. tab.child(6, 16507, 129 + x, 10 + y);
  181. tab.child(7, 16508, 245 + x, 10 + y);
  182. tab.child(8, 16509, 361 + x, 10 + y);
  183. tab.child(9, 16902, 81 + x, 36 + y);
  184. tab.child(10, 16903, 318 + x, 36 + y);
  185. tab.child(11, 2703, 473 + x, 0 + y);
  186. tab.child(12, 2704, 473 + x, 0 + y);
  187. for (int i = 0; i < 20; i += 4) {
  188. tab.child(13 + i, 16904 + i, 17 + x, 60 + ((i / 4) * 47) + y);
  189. tab.child(14 + i, 16905 + i, 17 + x, 60 + ((i / 4) * 47) + y);
  190. tab.child(15 + i, 16906 + i, 80 + x, 67 + ((i / 4) * 47) + y);
  191. tab.child(16 + i, 16907 + i, 170 + x, 60 + ((i / 4) * 47) + y);
  192. }
  193. }
  194.  
  195. public static void otherTeleports(GameFont[] TDA) {
  196. Widget tab = addInterface(17100);
  197. addSprite(17101, 3, "/Teleports/TELEPORTS");
  198. String[] teleports = { "Lumbridge", "Varrock", "Edgeville", "Ardougne", "Falador", "Yanille", "Taverley",
  199. "Barrows", "Duel Arena", "Pest Control", "TzHaar Caves", "Party Room", "Warriors Guild", "Zombies",
  200. "@red@Varrock PK", "@red@Castle PK", "@red@Mage Bank", "@red@Green Dragons", "@red@Rev Dungeon",
  201. "@red@Greater Demons", "Market", };
  202. for (int i = 0; i < 63; i += 3) {
  203. addHoverButton(17102 + i, "/Teleports/BUTTON", 0, 125, 26, "Teleport", 0, 17103 + i, 1);
  204. addHoveredButton(17103 + i, "/Teleports/BUTTON", 1, 125, 26, 16719);
  205. addText(17104 + i, teleports[i / 3], 0x80ff00, true, true, 0, TDA, 0);
  206. }
  207. tab.totalChildren(74);
  208. int x = 10, y = 10;
  209. tab.child(0, 17101, x, y);
  210. tab.child(1, 16502, 68 + x, 12 + y);
  211. tab.child(2, 16503, 184 + x, 12 + y);
  212. tab.child(3, 16504, 300 + x, 12 + y);
  213. tab.child(4, 16505, 416 + x, 12 + y);
  214. tab.child(5, 16506, 13 + x, 10 + y);
  215. tab.child(6, 16507, 129 + x, 10 + y);
  216. tab.child(7, 16508, 245 + x, 10 + y);
  217. tab.child(8, 16509, 361 + x, 10 + y);
  218. tab.child(9, 2703, 473 + x, 0 + y);
  219. tab.child(10, 2704, 473 + x, 0 + y);
  220. for (int i = 0; i < 21; i += 3) {
  221. tab.child(11 + i, 17102 + i, 14 + x, 39 + ((i / 3) * 34) + y);
  222. tab.child(12 + i, 17103 + i, 14 + x, 39 + ((i / 3) * 34) + y);
  223. tab.child(13 + i, 17104 + i, 77 + x, 45 + ((i / 3) * 34) + y);
  224. }
  225. for (int i = 21; i < 42; i += 3) {
  226. tab.child(11 + i, 17102 + i, 176 + x, 39 + (((i - 21) / 3) * 34) + y);
  227. tab.child(12 + i, 17103 + i, 176 + x, 39 + (((i - 21) / 3) * 34) + y);
  228. tab.child(13 + i, 17104 + i, 239 + x, 45 + (((i - 21) / 3) * 34) + y);
  229. }
  230. for (int i = 42; i < 63; i += 3) {
  231. tab.child(11 + i, 17102 + i, 339 + x, 39 + (((i - 42) / 3) * 34) + y);
  232. tab.child(12 + i, 17103 + i, 339 + x, 39 + (((i - 42) / 3) * 34) + y);
  233. tab.child(13 + i, 17104 + i, 402 + x, 45 + (((i - 42) / 3) * 34) + y);
  234. }
  235. }
  236.  
  237. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement