Code:
private void priceCheckerInterface() {
RSInterface rsi = addTabInterface(42000);
addSpriteLoader(18245, 654);
addCloseButton(18247, 18535, 18536);
addItemOnInterface(18246, 4393, new String[] {"Remove 1", "Remove 5", "Remove 10", "Remove All", "Remove X"});
rsi.totalChildren(61);
rsi.child(0, 18245, 10, 20);
rsi.child(1, 18247, 472, 21);
addText(18350, "Total value:", tda, 0, 0xFFFFFF, false, true);
rsi.child(2, 18350, 225, 295);
addText(18351, "0", tda, 0, 0xFFFFFF, true, true);
rsi.child(3, 18351, 251, 306);
int x = 40;
int child = 4;
for(int i = 0; i < 28; i++) {
if(i == 7 || i == 14 || i == 21)
x = 40;
int y = i < 7 ? 50 : i >= 7 && i < 14 ? 100 : i >= 14 && i < 21 ? 150 : 200;
int yy = i < 7 ? 80 : i >= 7 && i < 14 ? 130 : i >= 14 && i < 21 ? 180 : 230;
addItemOnInterface(18500 + i, 4393, new String[] {"Remove 1", "Remove 5", "Remove 10", "Remove All", "Remove X"});
addText(18352 + i, "", tda, 0, 0xFFFFFF, false, true);
rsi.child(child, 18500 + i, x, y);
child++;
rsi.child(child, 18352 + i, x + 5, yy);
child++;
x += 65;
}
addButtonWSpriteLoader(18537, 444, "Inventory", Client.cacheSprite[444].myWidth, Client.cacheSprite[444].myHeight);
rsi.child(child, 18537, 440, 294);
}
What you're adding