Code:
public static void clanChatTab(TextDrawingArea[] tda) {
RSInterface tab = addTabInterface(18128);
addButton(18250, 0, "/Clan Chat/Lootshare", "Toggle lootshare");
addHoverButton(18129, "/Clan Chat/SPRITE", 6, 29, 29, "Join Chat", 550, 18130, 1);
addHoveredButton(18130, "/Clan Chat/SPRITE", 7, 29, 29, 18131);
addHoverButton(18132, "/Clan Chat/SPRITE", 9, 29, 29, "Leave Chat", -1, 18133, 1);
addHoveredButton(18133, "/Clan Chat/SPRITE", 10, 29, 29, 18134);
addSprite(18137, 1, "/Clan Chat/SPRITE");
addText(18139, "Talking in: Not in chat", tda, 0, 0xff9b00, false, true);
addText(18140, "Owner: None", tda, 0, 0xff9b00, false, true);
tab.totalChildren(11);
tab.child(0, 16126, 0, 221);
tab.child(1, 16126, 0, 59);
tab.child(2, 18137, 0, 35);
tab.child(3, 18143, 0, 37);
tab.child(4, 18129, 5, 237);
tab.child(5, 18130, 4, 237);
tab.child(6, 18132, 25, 237);
tab.child(7, 18133, 24, 237);
tab.child(8, 18139, 64, 3);
tab.child(9, 18140, 70, 18);
tab.child(10, 18250, 155, 233);
/* Text area */
RSInterface list = addTabInterface(18143);
list.totalChildren(100);
for(int i = 18144; i <= 18244; i++) {
addText(i, "", tda, 0, 0xffffff, false, true);
}
for(int id = 18144, i = 0; id <= 18243 && i <= 99; id++, i++) {
list.children[i] = id; list.childX[i] = 5;
for(int id2 = 18144, i2 = 1; id2 <= 18243 && i2<= 99; id2++, i2++) {
list.childY[0] = 2;
list.childY[i2] = list.childY[i2 - 1] + 14;
}
}
list.height = 191; list.width = 175;
list.scrollMax = 1405;
}
Sprites: