Advertisement
Guest User

Untitled

a guest
Oct 21st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.26 KB | None | 0 0
  1. public static void Teleports(TextDrawingArea[] tda) {
  2. RSInterface rsInterface = addInterface(65000);
  3. addSprite(65001, 0, "Interfaces/Teleporting/Background");
  4. addHoverButton(65002, "Interfaces/Teleporting/Tab", 0, 120, 26, "Select", 0, 65003, 1);
  5. addHoveredButton(65003, "Interfaces/Teleporting/Tab", 1, 120, 26, 65004);
  6. addHoverButton(65005, "Interfaces/Teleporting/Tab", 0, 120,26, "Select", 0, 65006, 1);
  7. addHoveredButton(65006, "Interfaces/Teleporting/Tab", 1, 120, 26, 65007);
  8. addHoverButton(65008, "Interfaces/Teleporting/Tab", 0, 120,26, "Select", 0, 65009, 1);
  9. addHoveredButton(65009, "Interfaces/Teleporting/Tab", 1, 120, 26, 65010);
  10. addHoverButton(65011, "Interfaces/Teleporting/Tab", 0, 120,26, "Select", 0, 65012, 1);
  11. addHoveredButton(65012, "Interfaces/Teleporting/Tab", 1, 120, 26, 65013);
  12. addHoverButton(65014, "Interfaces/Teleporting/Tab", 0, 120,26, "Select", 0, 65015, 1);
  13. addHoveredButton(65015, "Interfaces/Teleporting/Tab", 1, 120, 26, 65016);
  14. addHoverButton(65017, "Interfaces/Teleporting/Tab", 0, 120,26, "Select", 0, 65018, 1);
  15. addHoveredButton(65018, "Interfaces/Teleporting/Tab", 1, 120, 26, 65019);
  16. addHoverButton(65020, "Interfaces/Teleporting/Tab", 0, 120,26, "Select", 0, 65021, 1);
  17. addHoveredButton(65021, "Interfaces/Teleporting/Tab", 1, 120, 26, 65022);
  18. addHoverButton(65023, "Interfaces/Teleporting/Close", 0, 16, 16, "Close", 0, 65024, 3);
  19. addHoveredButton(65024, "Interfaces/Teleporting/Close", 1, 16, 16, 65025);
  20. addText(65026, "Monsters", tda, 1, 0xF7FE2E, true, true);
  21. addText(65027, "Minigames", tda, 1, 0xF7FE2E, true, true);
  22. addText(65028, "Bosses", tda, 1, 0xF7FE2E, true, true);
  23. addText(65029, "Wilderness", tda, 1, 0xF7FE2E, true, true);
  24. addText(65030, "City", tda, 1, 0xF7FE2E, true, true);
  25. addText(65031, "Donator", tda, 1, 0xF7FE2E, true, true);
  26. addText(65032, "Skills", tda, 1, 0xF7FE2E, true, true);
  27. addText(65033, "Teleporting - Select your destination", tda, 2, 0xff981f, true, true);
  28. setChildren(26, rsInterface);
  29. rsInterface.child(0, 65001, 1, 5); // Background
  30. rsInterface.child(1, 65002, 14, 41); // Tab 1 Hover
  31. rsInterface.child(2, 65003, 14, 41); // Tab 1
  32. rsInterface.child(3, 65005, 14, 67); // Tab 2 Hover
  33. rsInterface.child(4, 65006, 14, 67); // Tab 2
  34. rsInterface.child(5, 65008, 14, 93); // Tab 3 Hover
  35. rsInterface.child(6, 65009, 14, 93); // Tab 3
  36. rsInterface.child(7, 65011, 14, 119); // Tab 4 Hover
  37. rsInterface.child(8, 65012, 14, 119); // Tab 4
  38. rsInterface.child(9, 65014, 14, 145); // Tab 5 Hover
  39. rsInterface.child(10, 65015, 14, 145); // Tab 5
  40. rsInterface.child(11, 65017, 14, 171); // Tab 6 Hover
  41. rsInterface.child(12, 65018, 14, 171); // Tab 6
  42. rsInterface.child(13, 65020, 14, 197); // Tab 7 Hover
  43. rsInterface.child(14, 65021, 14, 197); // Tab 7
  44. rsInterface.child(15, 65023, 480, 17); // Close Hover
  45. rsInterface.child(16, 65024, 480, 17); // Close
  46. rsInterface.child(17, 65026, 75, 50); // Title 1
  47. rsInterface.child(18, 65027, 75, 75); // Title 2
  48. rsInterface.child(19, 65028, 75, 103); // Title 3
  49. rsInterface.child(20, 65029, 75, 127); // Title 4
  50. rsInterface.child(21, 65030, 75, 155); // Title 5
  51. rsInterface.child(22, 65031, 75, 179); // Title 6
  52. rsInterface.child(23, 65032, 75, 203); // Title 7
  53. rsInterface.child(24, 65033, 258, 18); // Title
  54. rsInterface.child(25, 65049, 135, 41); //Scroll menu
  55. RSInterface scroll = addInterface(65049);
  56. scroll.width = 346;
  57. scroll.height = 238;
  58. scroll.scrollMax = 550;
  59. int ChildNum = 40; // Must be a multiple of 2 (This adds more buttons)
  60. setChildren(ChildNum, scroll);
  61. int count = 0, y = 0, id = 65050;
  62. for (int i = 0; i < 10; i++) {
  63. addButton(id, 0, "Interfaces/Teleporting/Button", "Teleport");
  64. scroll.child(count, id++, 20, 15 + y); // Button 1
  65. count++;
  66. addText(id, ""+id+"", tda, 0, 0xff981f, true, true); //""+id+"" prints the id of the text
  67. scroll.child(count, id++, 88, 25 + y); // Button 1 text
  68. count++;
  69. addButton(id, 0, "Interfaces/Teleporting/Button", "Teleport");
  70. scroll.child(count, id++, 190, 15 + y); // Button 2
  71. count++;
  72. addText(id, ""+id+"", tda, 0, 0xff981f, true, true); //""+id+"" prints the id of the text
  73. scroll.child(count, id++, 255, 25 + y); // Button 2 text
  74. count++;
  75. y += 47;
  76. }
  77. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement