Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.runeunity.cache.media.interfaces.impl;
- import com.runeunity.cache.media.interfaces.Widget;
- import com.runeunity.media.text.GameFont;
- public class TeleportInterface extends Widget {
- public static void teleportTop(GameFont[] TDA) {
- addText(16502, "Monsters", 0xff981f, true, true, 0, TDA, 1);
- addText(16503, "Bosses", 0xff981f, true, true, 0, TDA, 1);
- addText(16504, "Dungeons", 0xff981f, true, true, 0, TDA, 1);
- addText(16505, "Teleports", 0xff981f, true, true, 0, TDA, 1);
- addButton(16506, 0, "Teleports/ButtonThing", "Monsters");
- addButton(16507, 0, "Teleports/ButtonThing", "Bosses");
- addButton(16508, 0, "Teleports/ButtonThing", "Dungeons");
- addButton(16509, 0, "Teleports/ButtonThing", "Teleports");
- }
- public static void monsterTeleports(GameFont[] TDA) {
- Widget tab = addInterface(16500);
- addSprite(16501, 0, "/Teleports/TELEPORTS");
- Widget tab2 = addInterface(16510);
- Widget tab3 = addInterface(16511);
- addText(16512, "Slayer Monsters", 0xff9040, true, true, 0, TDA, 3);
- addText(16513, "Regular Monsters", 0xff9040, true, true, 0, TDA, 3);
- addHoverButton(16514, "/Teleports/BUTTON", 2, 170, 26, "View", 0, 16515, 1);
- addHoveredButton(16515, "/Teleports/BUTTON", 3, 170, 26, 16517);
- addText(16516, "Official Drop List", 0xffff00, true, true, 0, TDA, 0);
- tab.totalChildren(18);
- int x = 10, y = 10;
- tab.child(0, 16501, x, y);
- tab.child(1, 16502, 68 + x, 12 + y);
- tab.child(2, 16503, 184 + x, 12 + y);
- tab.child(3, 16504, 300 + x, 12 + y);
- tab.child(4, 16505, 416 + x, 12 + y);
- tab.child(5, 16506, 13 + x, 10 + y);
- tab.child(6, 16507, 129 + x, 10 + y);
- tab.child(7, 16508, 245 + x, 10 + y);
- tab.child(8, 16509, 361 + x, 10 + y);
- tab.child(9, 16510, 10 + x, 60 + y);
- tab.child(10, 16511, 183 + x, 60 + y);
- tab.child(11, 16512, 85 + x, 36 + y);
- tab.child(12, 16513, 320 + x, 36 + y);
- tab.child(13, 16514, 225 + x, 271 + y);
- tab.child(14, 16515, 225 + x, 271 + y);
- tab.child(15, 16516, 310 + x, 278 + y);
- tab.child(16, 2703, 473 + x, 0 + y);
- tab.child(17, 2704, 473 + x, 0 + y);
- tab2.width = 160;
- tab2.height = 230;
- tab2.scrollMax = 545;
- String[] slayerMonsters = new String[] { "Dust Devil", "Gargoyle", "Nechryael", "Abyssal Demon", "Dark Beast",
- "Kurask Overload", "Skeletal Wyvern", "Aquanite", "Open", "Open", "Open", "Open", "Open", "Open", "Open" };
- String[] normalMonsters = new String[] { "Rock Crabs", "Elf Warrior", "Skeletal Warlocks", "Starlight", "Ghost",
- "Bree", "Giant Bat", "Greater Demon", "Rock Lobster", "Chaos Dwarf" };
- String[] normalMonsters2 = new String[] { "Warped Tortoise", "Chaos Druid", "Balanced Elemental", "Giants",
- "Hellhound", "Black Demon", "Lesser Demon", "Blue Dragon", "Green Dragon(lvl13 wildy)", "Black Dragon" };
- tab2.totalChildren(45);
- for (int i = 0; i < 45; i += 3) {
- addHoverButton(16520 + i, "/Teleports/BUTTON", 0, 125, 26, "Teleport", 0, 16521 + i, 1);
- addHoveredButton(16521 + i, "/Teleports/BUTTON", 1, 125, 26, 16519);
- addText(16522 + i, slayerMonsters[i / 3], 0xff9040, true, true, 0, TDA, 0);
- tab2.child(i, 16520 + i, 18, ((i / 3) * 34) + 9);
- tab2.child(i + 1, 16521 + i, 18, ((i / 3) * 34) + 9);
- tab2.child(i + 2, 16522 + i, 79, ((i / 3) * 34) + 16);
- }
- tab3.width = 273;
- tab3.height = 208;
- tab3.scrollMax = 350;
- tab3.totalChildren(60);
- for (int i = 0; i < 30; i += 3) {
- addHoverButton(16570 + i, "/Teleports/BUTTON", 0, 125, 26, "Teleport", 0, 16571 + i, 1);
- addHoveredButton(16571 + i, "/Teleports/BUTTON", 1, 125, 26, 16519);
- addText(16572 + i, normalMonsters[i / 3], 0xff9040, true, true, 0, TDA, 0);
- tab3.child(i, 16570 + i, 6, ((i / 3) * 34) + 9);
- tab3.child(i + 1, 16571 + i, 6, ((i / 3) * 34) + 9);
- tab3.child(i + 2, 16572 + i, 67, ((i / 3) * 34) + 16);
- }
- for (int i = 30; i < 60; i += 3) {
- addHoverButton(16570 + i, "/Teleports/BUTTON", 0, 125, 26, "Teleport", 0, 16571 + i, 1);
- addHoveredButton(16571 + i, "/Teleports/BUTTON", 1, 125, 26, 16519);
- addText(16572 + i, normalMonsters2[(i - 30) / 3], 0xff9040, true, true, 0, TDA, 0);
- tab3.child(i, 16570 + i, 6 + 140, (((i - 30) / 3) * 34) + 9);
- tab3.child(i + 1, 16571 + i, 6 + 140, (((i - 30) / 3) * 34) + 9);
- tab3.child(i + 2, 16572 + i, 67 + 140, (((i - 30) / 3) * 34) + 16);
- }
- }
- public static void bossTeleports(GameFont[] TDA) {
- Widget tab = addInterface(16700);
- addSprite(16701, 1, "/Teleports/TELEPORTS");
- Widget tab2 = addInterface(16710);
- Widget tab3 = addInterface(16711);
- addText(16712, "Godwars Bosses", 0xff9040, true, true, 0, TDA, 3);
- addText(16713, "Other Bosses", 0xff9040, true, true, 0, TDA, 3);
- tab.totalChildren(18);
- int x = 10, y = 10;
- tab.child(0, 16701, x, y);
- tab.child(1, 16502, 68 + x, 12 + y);
- tab.child(2, 16503, 184 + x, 12 + y);
- tab.child(3, 16504, 300 + x, 12 + y);
- tab.child(4, 16505, 416 + x, 12 + y);
- tab.child(5, 16506, 13 + x, 10 + y);
- tab.child(6, 16507, 129 + x, 10 + y);
- tab.child(7, 16508, 245 + x, 10 + y);
- tab.child(8, 16509, 361 + x, 10 + y);
- tab.child(9, 16710, 10 + x, 60 + y);
- tab.child(10, 16711, 183 + x, 60 + y);
- tab.child(11, 16712, 85 + x, 36 + y);
- tab.child(12, 16713, 320 + x, 36 + y);
- tab.child(13, 16514, 225 + x, 271 + y);
- tab.child(14, 16515, 225 + x, 271 + y);
- tab.child(15, 16516, 310 + x, 278 + y);
- tab.child(16, 2703, 473 + x, 0 + y);
- tab.child(17, 2704, 473 + x, 0 + y);
- tab2.width = 160;
- tab2.height = 230;
- tab2.scrollMax = 235;
- String[] gwdBosses = new String[] { "Nex", "Bandos", "Zamorak", "Saradomin", "Armadyl" };
- String[] normalBosses = new String[] { "Avatar of Creation", "Avatar of Destruction", "Barrelchest", "Bork",
- "Blink", "Chaos Elemental", "Dagganoth Kings", "Frost Dragons", "Giant Roc", "Giant Mole" };
- String[] normalBosses2 = new String[] { "Glacors", "King Black Dragon", "Kalphite Queen", "Nomad",
- "Penance Queen", "Tormented Demons", "Unholy Curse Bearer", "Corporeal Beast", "Open", "Open", };
- tab2.totalChildren(15);
- for (int i = 0; i < 15; i += 3) {
- addHoverButton(16720 + i, "/Teleports/BUTTON", 0, 125, 26, "Teleport", 0, 16721 + i, 1);
- addHoveredButton(16721 + i, "/Teleports/BUTTON", 1, 125, 26, 16719);
- addText(16722 + i, gwdBosses[i / 3], 0xff9040, true, true, 0, TDA, 0);
- tab2.child(i, 16720 + i, 18, ((i / 3) * 34) + 9);
- tab2.child(i + 1, 16721 + i, 18, ((i / 3) * 34) + 9);
- tab2.child(i + 2, 16722 + i, 79, ((i / 3) * 34) + 16);
- }
- tab3.width = 273;
- tab3.height = 208;
- tab3.scrollMax = 350;
- tab3.totalChildren(60);
- for (int i = 0; i < 30; i += 3) {
- addHoverButton(16770 + i, "/Teleports/BUTTON", 0, 125, 26, "Teleport", 0, 16771 + i, 1);
- addHoveredButton(16771 + i, "/Teleports/BUTTON", 1, 125, 26, 16719);
- addText(16772 + i, normalBosses[i / 3], 0xff9040, true, true, 0, TDA, 0);
- tab3.child(i, 16770 + i, 6, ((i / 3) * 34) + 9);
- tab3.child(i + 1, 16771 + i, 6, ((i / 3) * 34) + 9);
- tab3.child(i + 2, 16772 + i, 67, ((i / 3) * 34) + 16);
- }
- for (int i = 30; i < 60; i += 3) {
- addHoverButton(16770 + i, "/Teleports/BUTTON", 0, 125, 26, "Teleport", 0, 16771 + i, 1);
- addHoveredButton(16771 + i, "/Teleports/BUTTON", 1, 125, 26, 16719);
- addText(16772 + i, normalBosses2[(i - 30) / 3], 0xff9040, true, true, 0, TDA, 0);
- tab3.child(i, 16770 + i, 6 + 140, (((i - 30) / 3) * 34) + 9);
- tab3.child(i + 1, 16771 + i, 6 + 140, (((i - 30) / 3) * 34) + 9);
- tab3.child(i + 2, 16772 + i, 67 + 140, (((i - 30) / 3) * 34) + 16);
- }
- }
- public static void dungeonTeleports(GameFont[] TDA) {
- Widget tab = addInterface(16900);
- addSprite(16901, 2, "/Teleports/TELEPORTS");
- addText(16902, "Location", 0xffff00, true, true, 0, TDA, 2);
- addText(16903, "Monsters Inside", 0xffff00, true, true, 0, TDA, 2);
- String[] locs = { "Taverly Dungeon", "Brimhaven Dungeon", "New Cave", "New Mystic Island", "Open" };
- String[] insides = {
- "Ghosts, Skeleton Warlocks, Blue Dragons, Chaos Dwarfs,\\nChaos Druids, Hell Hounds, Dark Beasts, Black Demons, \\nBlack Dragons",
- "Lesser Demons, Fire Giants, Hill Giants, Moss Giants",
- "Bork, Unholy Curse Bearer, Nomad - Bosses\\nKurask Overlord - Slayer Monsters",
- "Balanced Elementals, Starlight, Bree, Warped Tortoise\\nGiant Roc - Boss", "..." };
- for (int i = 0; i < 20; i += 4) {
- addHoverButton(16904 + i, "/Teleports/BUTTON", 0, 125, 26, "Teleport", 0, 16905 + i, 1);
- addHoveredButton(16905 + i, "/Teleports/BUTTON", 1, 125, 26, 16719);
- addText(16906 + i, locs[i / 4], 0x80ff00, true, true, 1, TDA, 0);
- addText(16907 + i, insides[i / 4], 0xff9040, false, true, 0, TDA, 0);
- }
- tab.totalChildren(33);
- int x = 10, y = 10;
- tab.child(0, 16901, x, y);
- tab.child(1, 16502, 68 + x, 12 + y);
- tab.child(2, 16503, 184 + x, 12 + y);
- tab.child(3, 16504, 300 + x, 12 + y);
- tab.child(4, 16505, 416 + x, 12 + y);
- tab.child(5, 16506, 13 + x, 10 + y);
- tab.child(6, 16507, 129 + x, 10 + y);
- tab.child(7, 16508, 245 + x, 10 + y);
- tab.child(8, 16509, 361 + x, 10 + y);
- tab.child(9, 16902, 81 + x, 36 + y);
- tab.child(10, 16903, 318 + x, 36 + y);
- tab.child(11, 2703, 473 + x, 0 + y);
- tab.child(12, 2704, 473 + x, 0 + y);
- for (int i = 0; i < 20; i += 4) {
- tab.child(13 + i, 16904 + i, 17 + x, 60 + ((i / 4) * 47) + y);
- tab.child(14 + i, 16905 + i, 17 + x, 60 + ((i / 4) * 47) + y);
- tab.child(15 + i, 16906 + i, 80 + x, 67 + ((i / 4) * 47) + y);
- tab.child(16 + i, 16907 + i, 170 + x, 60 + ((i / 4) * 47) + y);
- }
- }
- public static void otherTeleports(GameFont[] TDA) {
- Widget tab = addInterface(17100);
- addSprite(17101, 3, "/Teleports/TELEPORTS");
- String[] teleports = { "Lumbridge", "Varrock", "Edgeville", "Ardougne", "Falador", "Yanille", "Taverley",
- "Barrows", "Duel Arena", "Pest Control", "TzHaar Caves", "Party Room", "Warriors Guild", "Zombies",
- "@red@Varrock PK", "@red@Castle PK", "@red@Mage Bank", "@red@Green Dragons", "@red@Rev Dungeon",
- "@red@Greater Demons", "Market", };
- for (int i = 0; i < 63; i += 3) {
- addHoverButton(17102 + i, "/Teleports/BUTTON", 0, 125, 26, "Teleport", 0, 17103 + i, 1);
- addHoveredButton(17103 + i, "/Teleports/BUTTON", 1, 125, 26, 16719);
- addText(17104 + i, teleports[i / 3], 0x80ff00, true, true, 0, TDA, 0);
- }
- tab.totalChildren(74);
- int x = 10, y = 10;
- tab.child(0, 17101, x, y);
- tab.child(1, 16502, 68 + x, 12 + y);
- tab.child(2, 16503, 184 + x, 12 + y);
- tab.child(3, 16504, 300 + x, 12 + y);
- tab.child(4, 16505, 416 + x, 12 + y);
- tab.child(5, 16506, 13 + x, 10 + y);
- tab.child(6, 16507, 129 + x, 10 + y);
- tab.child(7, 16508, 245 + x, 10 + y);
- tab.child(8, 16509, 361 + x, 10 + y);
- tab.child(9, 2703, 473 + x, 0 + y);
- tab.child(10, 2704, 473 + x, 0 + y);
- for (int i = 0; i < 21; i += 3) {
- tab.child(11 + i, 17102 + i, 14 + x, 39 + ((i / 3) * 34) + y);
- tab.child(12 + i, 17103 + i, 14 + x, 39 + ((i / 3) * 34) + y);
- tab.child(13 + i, 17104 + i, 77 + x, 45 + ((i / 3) * 34) + y);
- }
- for (int i = 21; i < 42; i += 3) {
- tab.child(11 + i, 17102 + i, 176 + x, 39 + (((i - 21) / 3) * 34) + y);
- tab.child(12 + i, 17103 + i, 176 + x, 39 + (((i - 21) / 3) * 34) + y);
- tab.child(13 + i, 17104 + i, 239 + x, 45 + (((i - 21) / 3) * 34) + y);
- }
- for (int i = 42; i < 63; i += 3) {
- tab.child(11 + i, 17102 + i, 339 + x, 39 + (((i - 42) / 3) * 34) + y);
- tab.child(12 + i, 17103 + i, 339 + x, 39 + (((i - 42) / 3) * 34) + y);
- tab.child(13 + i, 17104 + i, 402 + x, 45 + (((i - 42) / 3) * 34) + y);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement