Code:
public static void teleportInterface(RSFont[] TDA) {
RSInterface tab = addTab(28300);
addSprite(28301, 8, "Interfaces/Teleport/IMAGE");
addText(28302, "Title", 0xFFA500, false, true, 52,TDA, 1);
addText(28303, "Option 1", 0xFFA500, false, true, 52,TDA, 1);
addText(28304, "Option 2", 0xFFA500, false, true, 52,TDA, 1);
addText(28305, "Option 3", 0xFFA500, false, true, 52,TDA, 1);
addText(28306, "Option 4", 0xFFA500, false, true, 52,TDA, 1);
addHoverButton(28307, "Interfaces/Teleport/IMAGE", 2, 22, 22, "Click to teleport to location", 0, 28308, 1);
addHoveredButton(28308, "Interfaces/Teleport/IMAGE", 3, 22, 22, 28350);
addHoverButton(28309, "Interfaces/Teleport/IMAGE", 2, 22, 22, "Click to teleport to location", 0, 28310, 1);
addHoveredButton(28310, "Interfaces/Teleport/IMAGE", 3, 22, 22, 28351);
addHoverButton(28311, "Interfaces/Teleport/IMAGE", 2, 22, 22, "Click to teleport to location", 0, 28312, 1);
addHoveredButton(28312, "Interfaces/Teleport/IMAGE", 3, 22, 22, 28352);
addHoverButton(28313, "Interfaces/Teleport/IMAGE", 2, 22, 22, "Click to teleport to location", 0, 28314, 1);
addHoveredButton(28314, "Interfaces/Teleport/IMAGE", 3, 22, 22, 28353);
addHoverButton(28315, "Interfaces/Teleport/IMAGE", 4, 16, 15, "Click to close window", 0, 28316, 1);
addHoveredButton(28316, "Interfaces/Teleport/IMAGE", 5, 16, 15, 28354);
addHoverButton(28317, "Interfaces/Teleport/IMAGE", 6, 16, 16, "Click to return to the previous window", 0, 28318, 1);
addHoveredButton(28318, "Interfaces/Teleport/IMAGE", 7, 16, 16, 28355);
tab.totalChildren(18);
tab.child(0, 28301, 85, 80);
tab.child(1, 28302, 215, 86);
tab.child(2, 28303, 222, 129);
tab.child(3, 28304, 222, 153);
tab.child(4, 28305, 222, 177);
tab.child(5, 28306, 222, 201);
tab.child(6, 28307, 374, 127);
tab.child(7, 28308, 374, 127);
tab.child(8, 28309, 374, 151);
tab.child(9, 28310, 374, 151);
tab.child(10, 28311, 374, 175);
tab.child(11, 28312, 374, 175);
tab.child(12, 28313, 374, 199);
tab.child(13, 28314, 374, 199);
tab.child(14, 28315, 419, 83);
tab.child(15, 28316, 419, 83);
tab.child(16, 28317, 88, 83);
tab.child(17, 28318, 88, 83);
}
Still in RSInterface, under
Code:
public void updateTeleInterface() { //@Gohan
/*
* Teleport string names
*/
String[][] name = {
{"@blu@Minigames", "Penance Assault", "Warrior Guild"},
{"@blu@Select an option", "Player Killing", "Training", "Mini Games", "Shop Center"},
{"@blu@Player Killing", "Edgeville", "West Dragons", "East Dragons", "Varrock"},
{""}};
switch(c.teleInterface) {
case 1: // Minigames
c.getPA().sendFrame126(name[0][0], 28302);
c.getPA().sendFrame126(name[0][1], 28303);
c.getPA().sendFrame126(name[0][2], 28304);
c.getPA().sendFrame126("", 28305);
c.getPA().sendFrame126("", 28306);
break;
case 2: // Pking, Training, Minigames, Shop Center
c.getPA().sendFrame126(name[1][0], 28302);
c.getPA().sendFrame126(name[1][1], 28303);
c.getPA().sendFrame126(name[1][2], 28304);
c.getPA().sendFrame126(name[1][3], 28305);
c.getPA().sendFrame126(name[1][4], 28306);
break;
case 3: // Player Killing
c.getPA().sendFrame126(name[2][0], 28302);
c.getPA().sendFrame126(name[2][1], 28303);
c.getPA().sendFrame126(name[2][2], 28304);
c.getPA().sendFrame126(name[2][3], 28305);
c.getPA().sendFrame126(name[2][4], 28306);
break;
}
}
[/SPOIL]