Code:
public static void skillTab() {
RSInterface skill = addTabInterface(3917);
int[] logoutID = {2450, 2451, 2452};
int[] logoutID2 = {2458 };
for (int i: logoutID) {
RSInterface Logout = interfaceCache[i];
Logout.textColor = 0xFF981F;
Logout.contentType = 0;
}
for (int i: logoutID2) {
RSInterface Logout = interfaceCache[i];
Logout.contentType = 0;
}
int[] buttons = { 8654, 8655, 8656, 8657, 8658, 8659, 8660, 8861, 8662, 8663, 8664, 8665, 8666, 8667, 8668, 8669, 8670, 8671, 8672, 12162, 13928, 28177, 28178, 28179, 28180 };
int[] hovers = { 4040, 4076, 4112, 4046, 4082, 4118, 4052, 4088, 4124, 4058, 4094, 4130, 4064, 4100, 4136, 4070, 4106, 4142, 4160, 2832, 13917, 28173, 28174, 28175, 28176 };
int[][] text = { { 4004, 4005 }, { 4016, 4017 }, { 4028, 4029 },
{ 4006, 4007 }, { 4018, 4019 }, { 4030, 4031 }, { 4008, 4009 },
{ 4020, 4021 }, { 4032, 4033 }, { 4010, 4011 }, { 4022, 4023 },
{ 4034, 4035 }, { 4012, 4013 }, { 4024, 4025 }, { 4036, 4037 },
{ 4014, 4015 }, { 4026, 4027 }, { 4038, 4039 }, { 4152, 4153 },
{ 12166, 12167 }, { 13926, 13927 }, { 28165, 28169 },
{ 28166, 28170 }, { 28167, 28171 }, { 28168, 28172 } };
int[] icons = { 3965, 3966, 3967, 3968, 3969, 3970, 3971, 3972, 3973,
3974, 3975, 3976, 3977, 3978, 3979, 3980, 3981, 3982, 4151,
12165, 13925, 28181, 28182, 28183, 28184 };
int[][] buttonCoords = { { 3, 5 }, { 65, 5 }, { 127, 5 }, { 3, 33 },
{ 65, 33 }, { 127, 33 }, { 3, 61 }, { 65, 61 }, { 127, 61 },
{ 3, 89 }, { 65, 89 }, { 127, 89 }, { 3, 117 }, { 65, 117 },
{ 127, 117 }, { 3, 145 }, { 65, 145 }, { 127, 145 },
{ 3, 173 }, { 65, 173 }, { 127, 173 }, { 3, 201 }, { 65, 201 },
{ 127, 201 }, { 3, 229 } };
int[][] iconCoords = { { 5, 7 }, { 68, 8 }, { 130, 7 }, { 8, 35 },
{ 67, 34 }, { 130, 37 }, { 8, 65 }, { 66, 64 }, { 130, 62 },
{ 6, 92 }, { 67, 97 }, { 132, 91 }, { 5, 119 }, { 69, 121 },
{ 129, 119 }, { 5, 148 }, { 68, 147 }, { 131, 147 },
{ 5, 174 }, { 68, 174 }, { 129, 175 }, { 5, 203 }, { 68, 202 },
{ 130, 203 }, { 5, 231 } };
int[][] textCoords = { { 29, 7, 44, 19 }, { 91, 7, 106, 19 },
{ 153, 7, 168, 19 }, { 29, 35, 44, 47 }, { 91, 35, 106, 47 },
{ 153, 35, 168, 47 }, { 29, 63, 44, 75 }, { 91, 63, 106, 75 },
{ 153, 63, 168, 75 }, { 29, 91, 44, 103 },
{ 91, 91, 106, 103 }, { 153, 91, 168, 103 },
{ 29, 119, 44, 131 }, { 91, 119, 106, 131 },
{ 153, 119, 168, 131 }, { 29, 147, 44, 159 },
{ 91, 147, 106, 159 }, { 153, 147, 168, 159 },
{ 29, 175, 44, 187 }, { 91, 175, 106, 187 },
{ 153, 175, 168, 187 }, { 29, 203, 44, 215 },
{ 91, 203, 106, 215 }, { 153, 203, 168, 215 },
{ 29, 231, 44, 243 } };
int[][] newText = { { 28165, 28166, 28167, 28168 },
{ 28169, 28170, 28171, 28172 } };
int frame = 0;
for (int i = 0; i < hovers.length; i++) {
addSkillButton(buttons[i], Skills.SKILL_NAMES[i]);
createSkillHover(hovers[i], 205 + i);
addSprite(icons[i], Client.cacheSprite[197 + i]);
}
for (int i = 0; i < 4; i++) {
addSkillText(newText[0][i], false, i + 21);
addSkillText(newText[1][i], true, i + 21);
}
skill.children(icons.length + (text.length * 2) + hovers.length + buttons.length + 1);
RSInterface totalLevel = interfaceCache[3984];
totalLevel.message = "Total level: %1";
totalLevel.textDrawingAreas = fonts[2];
skill.child(frame, 3984, 96, 237);
frame++;
for (int i = 0; i < buttons.length; i++) {
skill.child(frame, buttons[i], buttonCoords[i][0], buttonCoords[i][1]); frame++;
}
for (int i = 0; i < icons.length; i++) {
skill.child(frame, icons[i], iconCoords[i][0], iconCoords[i][1]); frame++;
}
for (int i = 0; i < text.length; i++) {
skill.child(frame, text[i][0], textCoords[i][0], textCoords[i][1]); frame++;
}
for (int i = 0; i < text.length; i++) {
skill.child(frame, text[i][1], textCoords[i][2], textCoords[i][3]); frame++;
}
for (int i = 0; i < hovers.length; i++) {
skill.child(frame, hovers[i], buttonCoords[i][0], buttonCoords[i][1]); frame++;
}
}