Code:
public static void tradeScreen2(GameFont[] tda) {
Widget interface_ = addTabInterface(52250);
addSprite(52251, 855);
addText(52252, "Are you sure you want to make this trade?", tda, 1, 0x00ffff, true, true);
addText(52253, "There is <col=ff0000>NO WAY</col> to reverse a trade if you change your mind.", tda, 0, 0xffffff, true, true);
addText(52254, "You are about to give:", tda, 0, 0xffff00, true, true);
addText(52255, "(Value: <col=ffffff>0</col> coins)", tda, 0, 0xffff00, true, true);
addText(52256, "In return you will receive:", tda, 0, 0xffff00, true, true);
addText(52257, "(Value: <col=ffffff>0</col> coins)", tda, 0, 0xffff00, true, true);
addText(52258, "Trading with:", tda, 2, 0x00ffff, true, true);
addText(52259, "", tda, 2, 0x00ffff, true, true);
for(int i = 0; i < 28; i++) {
addText(52260 + i, "", tda, 2, 0xff9040, true, true);
}
for(int i = 0; i < 28; i++) {
addText(52290 + i, "", tda, 2, 0xff9040, true, true);
}
addButtonWithoutSprite(52319, "Accept", 30, 50);
addButtonWithoutSprite(52320, "Decline", 30, 50);
int x = 135, y = 85;
int tradeChild = 0;
interface_.totalChildren(67);
interface_.child(tradeChild++, 52251, 15, 14);
interface_.child(tradeChild++, 52252, 255, 20);
interface_.child(tradeChild++, 52253, 255, 35);
interface_.child(tradeChild++, 52254, 135, 59);
interface_.child(tradeChild++, 52255, 135, 69);
interface_.child(tradeChild++, 52256, 375, 59);
interface_.child(tradeChild++, 52257, 375, 69);
interface_.child(tradeChild++, 52258, 100, 285);
interface_.child(tradeChild++, 52259, 100, 297);
interface_.child(tradeChild++, 52319, 190, 285);
interface_.child(tradeChild++, 52320, 270, 285);
for(int i = 0; i < 28; i++) {
interface_.child(tradeChild++, 52260 + i, x, y);
y += 13;
}
y = 84;
x = 375;
for(int i = 0; i < 28; i++) {
interface_.child(tradeChild++, 52290 + i, x, y);
y += 13;
}
}
In trading.java server side replace STATUS_FRAME_2 with mine: