Code: Select all
private static void jewelleryBox(TextDrawingArea[] tda) {
int baseId = 43200;
RSInterface jewelleryBox = addTabInterface(baseId);
jewelleryBox.totalChildren(36);
addSprite(baseId + 1, 2, "Construction/Background");
addHoverButton(baseId + 2, "Construction/close", 1, 21, 21, "Close", -1, baseId + 4, 3);
addHoveredButton(baseId + 3, "Construction/close", 1, 21, 21, baseId + 4);
addText(baseId + 4, "Jewellery Box", tda, 2, 0xf49830, true, false);
addTextButton(baseId + 5, "1: PVP Arena", "PVP Arena", 1, TextAlign.CENTER, true, tda, 0, 100);
addTextButton(baseId + 6, "2: Castle Wars", "Castle Wars", 1, TextAlign.CENTER, true, tda, 0, 100);
addTextButton(baseId + 7, "3: Ferox Enclave", "Ferox Enclave", 1, TextAlign.CENTER, true, tda, 0, 100);
addTextButton(baseId + 8, "4: Burthorpe", "Burthorpe", 1, TextAlign.CENTER, true, tda, 0, 100);
addTextButton(baseId + 9, "5: Barbarian Outpost", "Barbarian Outpost", 1, TextAlign.CENTER, true, tda, 0, 100);
addTextButton(baseId + 10, "6: Yanille", "Yanille", 1, TextAlign.CENTER, true, tda, 0, 100);
addTextButton(baseId + 11, "7: Mage Bank", "Mage Bank", 1, TextAlign.CENTER, true, tda, 0, 100);
addTextButton(baseId + 12, "8: Wintertodt Camp", "Wintertodt Camp", 1, TextAlign.CENTER, true, tda, 0, 100);
addTextButton(baseId + 13, "9: Warriors' Guild", "Warriors' Guild", 1, TextAlign.CENTER, true, tda, 0, 100);
addTextButton(baseId + 14, "A: Chamipions' Guild", "Chamipions' Guild", 1, TextAlign.CENTER, true, tda, 0, 100);
addTextButton(baseId + 15, "B: Monastery", "Monastery", 1, TextAlign.CENTER, true, tda, 0, 100);
addTextButton(baseId + 16, "C: Ranging Guild", "Ranging Guild", 1, TextAlign.CENTER, true, tda, 0, 100);
addTextButton(baseId + 17, "D: Fishing Guild", "Fishing Guild", 1, TextAlign.CENTER, true, tda, 0, 100);
addTextButton(baseId + 18, "E: Mining Guild", "Mining Guild", 1, TextAlign.CENTER, true, tda, 0, 100);
addTextButton(baseId + 19, "F: Crafting Guild", "Crafting Guild", 1, TextAlign.CENTER, true, tda, 0, 100);
addTextButton(baseId + 20, "G: Cooking Guild", "Cooking Guild", 1, TextAlign.CENTER, true, tda, 0, 100);
addTextButton(baseId + 21, "H: Woodcutting Guild", "Woodcutting Guild", 1, TextAlign.CENTER, true, tda, 0, 100);
addTextButton(baseId + 22, "I: Farming Guild", "Farming Guild", 1, TextAlign.CENTER, true, tda, 0, 100);
addTextButton(baseId + 23, "J: Edgeville", "Edgeville", 1, TextAlign.CENTER, true, tda, 0, 100);
addTextButton(baseId + 24, "K: Grand Exchange", "Grand Exchange", 1, TextAlign.CENTER, true, tda, 0, 100);
addTextButton(baseId + 25, "L: Falador Park", "Falador Park", 1, TextAlign.CENTER, true, tda, 0, 100);
addTextButton(baseId + 26, "M: Dondakan's Rock", "Dondakan's Rock", 1, TextAlign.CENTER, true, tda, 0, 100);
addTextButton(baseId + 27, "N: Edgeville", "Edgeville", 1, TextAlign.CENTER, true, tda, 0, 100);
addTextButton(baseId + 28, "O: Karamja", "Karamja", 1, TextAlign.CENTER, true, tda, 0, 100);
addTextButton(baseId + 29, "P: Draynor Village", "Draynor Village", 1, TextAlign.CENTER, true, tda, 0, 100);
addTextButton(baseId + 30, "Q: Al Karid", "Al Karid", 1, TextAlign.CENTER, true, tda, 0, 100);
addText(baseId + 31, "Ring of\\nDueling", tda, 0, 0xffffff, true, true);
addText(baseId + 32, "Games\\nNecklace", tda, 0, 0xffffff, true, true);
addText(baseId + 33, "Combat\\nBracelet", tda, 0, 0xffffff, true, true);
addText(baseId + 34, "Skills\\nNecklace", tda, 0, 0xffffff, true, true);
addText(baseId + 35, "Ring of\\nWealth", tda, 0, 0xffffff, true, true);
addText(baseId + 36, "Amulet of\\nGlory", tda, 0, 0xffffff, true, true);
jewelleryBox.child(0, baseId + 1, 0, 0);
jewelleryBox.child(1, baseId + 2, 449, 7);
jewelleryBox.child(2, baseId + 3, 449, 7);
jewelleryBox.child(3, baseId + 4, (int) 475/2, 10);
//int row1Start = 40; int row2Start = 140; int row3Start = 250;
int leftRow = 100;
int rightRow = 340;
jewelleryBox.child(4, baseId + 5, leftRow, 55);
jewelleryBox.child(5, baseId + 6, leftRow, 80);
jewelleryBox.child(6, baseId + 7, leftRow, 105);
jewelleryBox.child(7, baseId + 8, rightRow, 50);
jewelleryBox.child(8, baseId + 9, rightRow, 65);
jewelleryBox.child(9, baseId + 10, rightRow, 80);
jewelleryBox.child(10, baseId + 11, rightRow, 95);
jewelleryBox.child(11, baseId + 12, rightRow, 110);
jewelleryBox.child(12, baseId + 13, leftRow, 150);
jewelleryBox.child(13, baseId + 14, leftRow, 175);
jewelleryBox.child(14, baseId + 15, leftRow, 200);
jewelleryBox.child(15, baseId + 16, leftRow, 225);
jewelleryBox.child(16, baseId + 17, rightRow, 145);
jewelleryBox.child(17, baseId + 18, rightRow, 160);
jewelleryBox.child(18, baseId + 19, rightRow, 175);
jewelleryBox.child(19, baseId + 20, rightRow, 190);
jewelleryBox.child(20, baseId + 21, rightRow, 205);
jewelleryBox.child(21, baseId + 22, rightRow, 220);
jewelleryBox.child(22, baseId + 23, leftRow, 260);
jewelleryBox.child(23, baseId + 24, leftRow, 275);
jewelleryBox.child(24, baseId + 25, leftRow, 290);
jewelleryBox.child(25, baseId + 26, leftRow, 305);
jewelleryBox.child(26, baseId + 27, rightRow, 260);
jewelleryBox.child(27, baseId + 28, rightRow, 275);
jewelleryBox.child(28, baseId + 29, rightRow, 290);
jewelleryBox.child(29, baseId + 30, rightRow, 305);
jewelleryBox.child(30, baseId + 31, 50, 95);
jewelleryBox.child(31, baseId + 32, 280, 95);
jewelleryBox.child(32, baseId + 33, 50, 200);
jewelleryBox.child(33, baseId + 34, 280, 200);
jewelleryBox.child(34, baseId + 35, 50, 295);
jewelleryBox.child(35, baseId + 36, 280, 295);
}