Code:
public static void itemsKeptOnDeath(GameFont[] tda) {
removeSomething(16999); //close button in text
Widget rsinterface = interfaceCache[10494];
rsinterface.spritePaddingX = 6;
rsinterface.spritePaddingY = 5;
rsinterface = interfaceCache[10600];
rsinterface.spritePaddingX = 6;
rsinterface.spritePaddingY = 5;
rsinterface = addInterface(17100);
addSpriteLoader(17101, 139);
/*Widget scroll = addTabInterface(17149);
scroll.width = 300; scroll.height = 183; scroll.scrollMax = 220;*/
addText(17103, "Items Kept on Death", tda, 2, 0xff981f, false, false);
addText(17104, "Items you will keep on death:", tda, 1, 0xff981f, false, false);
addText(17105, "Items you will lose on death:", tda, 1, 0xff981f, false, false);
addText(17106, "Info", tda, 1, 0xff981f, false, false);
addText(17107, "3", tda, 2, 0xffff00, false, false);
String[] options = {null};
/*
* Items on interface
*/
//Top Row
for(int top = 17108; top <= 17111; top++) {
addItemOnInterface(top, 17100, options);
}
//1st row
for(int top = 17112; top <= 17119; top++) {
addItemOnInterface(top, 17100, options);
}
//2nd row
for(int top = 17120; top <= 17127; top++) {
addItemOnInterface(top, 17100, options);
}
//3rd row
for(int top = 17128; top <= 17135; top++) {
addItemOnInterface(top, 17100, options);
}
//4th row
for (int top = 17136; top <= 17142; top++) {
addItemOnInterface(top, 17100, options);
}
//5th row
for (int top = 17143; top <= 17148; top++) {
addItemOnInterface(top, 17100, options);
}
//6th row (4 items)
for(int top = 17149; top <= 17152; top++) {
addItemOnInterface(top, 17100, options);
}
setChildren(56, rsinterface);
//addTabInterface(5);
setBounds(17101, 7,8, 0, rsinterface);
setBounds(16999, 478, 14, 1, rsinterface);
setBounds(17103, 185, 18, 2, rsinterface);
setBounds(17104, 22, 50, 3, rsinterface);
setBounds(17105, 22, 110, 4, rsinterface);
setBounds(17106, 347, 50, 5, rsinterface);
setBounds(17107, 412, 287, 6, rsinterface);
setBounds(17149, 23, 132, 7, rsinterface);
//setBounds(17018, 480, 18, 8, rsinterface);
//setBounds(17019, 480, 18, 9, rsinterface);
setBounds(38117, 480, 18, 8, rsinterface);
setBounds(38118, 480, 18, 9, rsinterface);
//setBounds(5, 480, 18, 10, rsinterface);
//Positions for item on interface (items kept on death
int child_index = 10;
int topPos = 26;
for(int top = 17108; top <= 17111; top++) {
setBounds(top, topPos, 72, child_index, rsinterface);
topPos += 44;
child_index++;
}
//setBounds(17000, 478, 14, child_index++, rsinterface);
itemsOnDeathDATA(tda);
setBounds(17315, 348, 64, child_index++, rsinterface);
topPos = 26;
//1st row
for(int top = 17112; top <= 17118; top++) {
setBounds(top, topPos, 133, child_index, rsinterface);
topPos += 44;
child_index++;
}
//2nd row
topPos = 26;
for(int top = 17119; top <= 17125; top++) {
setBounds(top, topPos, 168, child_index, rsinterface);
topPos += 44;
child_index++;
}
//3rd row
topPos = 26;
for(int top = 17126; top <= 17132; top++) {
setBounds(top, topPos, 203, child_index, rsinterface);
topPos += 44;
child_index++;
}
//4th row
topPos = 26;
for (int top = 17133; top <= 17139; top++) {
setBounds(top, topPos, 238, child_index, rsinterface);
topPos += 44;
child_index++;
}
//5th row
topPos = 26;
for (int top = 17140; top <= 17145; top++) {
setBounds(top, topPos, 273, child_index, rsinterface);
topPos += 44;
child_index++;
}
//6th row (4 items)
topPos = 26;
for(int top = 17146; top <= 17152; top++) {
setBounds(top, topPos, 311, child_index, rsinterface);
topPos += 44;
child_index++;
}
}
The widget