Code:
private static void diceInterface(TextDrawingArea[] tda) {
RSInterface interface_ = addTabInterface(30000);
RSInterface stakeInterface = addTabInterface(30150);
RSInterface yourOffer = addTabInterface(30050);
RSInterface theirOffer = addTabInterface(30100);
RSInterface statCompare = addTabInterface(30185);
stakeInterface.isMouseoverTriggered = true;
yourOffer.width = 131;
yourOffer.height = 101;
yourOffer.scrollMax = 146;
theirOffer.width = 131;
theirOffer.height = 101;
theirOffer.scrollMax = 146;
statCompare.width = 85;
statCompare.height = 90;
statCompare.scrollMax = 145;
addSprite(30001, 889);
addText(30002, "Gambling with:", 0xff991f, false, true, -1, tda, 2);
addButton(30003, 890, "Accept");
addButton(30004, 890, "Decline");
addText(30005, "", 0xffffff, true, true, -1, tda, 0);
addText(30006, "Accept", 0x00a600, true, true, -1, tda, 0);
addText(30007, "Decline", 0xa60000, true, true, -1, tda, 0);
addText(30008, "You", 0xffffff, true, true, -1, tda, 0);
addText(30009, "Them", 0xffffff, true, true, -1, tda, 0);
addText(30010, "Select gamemode:", 0xff991f, true, true, -1, tda, 2);
addRadioButton(30011, 891, "Select", 1);
addRadioButton(30012, 891, "Select", 1);
addRadioButton(30013, 891, "Select", 1);
addRadioButton(30014, 891, "Select", 1);
addText(30015, "55x2", 0xff991f, false, true, -1, tda, 0);
addText(30016, "Blackjack", 0xff991f, false, true, -1, tda, 0);
addText(30017, "Flower poker", 0xff991f, false, true, -1, tda, 0);
addText(30018, "Stake", 0xff991f, false, true, -1, tda, 0);
addRadioButton(30151, 891, "Select", 2);
addRadioButton(30152, 891, "Select", 2);
addRadioButton(30153, 891, "Select", 2);
addRadioButton(30154, 891, "Select", 2);
addText(30155, "Whip", 0xff991f, false, true, -1, tda, 0);
addText(30156, "Dds + Whip", 0xff991f, false, true, -1, tda, 0);
addText(30157, "Boxing", 0xff991f, false, true, -1, tda, 0);
addText(30158, "No restriction", 0xff991f, false, true, -1, tda, 0);
addText(30159, "Restriction:", 0xff991f, true, true, -1, tda, 2);
addText(30160, "You:", 0xffffff, true, true, -1, tda, 0);
addText(30161, "Them:", 0xffffff, true, true, -1, tda, 0);
addSprite(30162, 893);
addSprite(30163, 894);
addSprite(30164, 895);
addSprite(30165, 896);
addSprite(30166, 897);
addSprite(30167, 898);
addSprite(30168, 899);
addText(30169, "1", 0xf4c242, true, true, -1, tda, 0);
addText(30170, "1", 0xf4c242, true, true, -1, tda, 0);
addText(30171, "1", 0xf4c242, true, true, -1, tda, 0);
addText(30172, "1", 0xf4c242, true, true, -1, tda, 0);
addText(30173, "1", 0xf4c242, true, true, -1, tda, 0);
addText(30174, "1", 0xf4c242, true, true, -1, tda, 0);
addText(30175, "1", 0xf4c242, true, true, -1, tda, 0);
addText(30176, "1", 0xf4c242, true, true, -1, tda, 0);
addText(30177, "1", 0xf4c242, true, true, -1, tda, 0);
addText(30178, "1", 0xf4c242, true, true, -1, tda, 0);
addText(30179, "1", 0xf4c242, true, true, -1, tda, 0);
addText(30180, "1", 0xf4c242, true, true, -1, tda, 0);
addText(30181, "1", 0xf4c242, true, true, -1, tda, 0);
addText(30182, "1", 0xf4c242, true, true, -1, tda, 0);
int statChild = 0;
statCompare.totalChildren(21);
statCompare.child(statChild++, 30162, 5, 5);
statCompare.child(statChild++, 30163, 5, 25);
statCompare.child(statChild++, 30164, 5, 45);
statCompare.child(statChild++, 30165, 5, 65);
statCompare.child(statChild++, 30166, 5, 85);
statCompare.child(statChild++, 30167, 5, 105);
statCompare.child(statChild++, 30168, 5, 125);
statCompare.child(statChild++, 30169, 35, 5);
statCompare.child(statChild++, 30170, 35, 25);
statCompare.child(statChild++, 30171, 35, 45);
statCompare.child(statChild++, 30172, 35, 65);
statCompare.child(statChild++, 30173, 35, 85);
statCompare.child(statChild++, 30174, 35, 105);
statCompare.child(statChild++, 30175, 35, 125);
statCompare.child(statChild++, 30176, 65, 5);
statCompare.child(statChild++, 30177, 65, 25);
statCompare.child(statChild++, 30178, 65, 45);
statCompare.child(statChild++, 30179, 65, 65);
statCompare.child(statChild++, 30180, 65, 85);
statCompare.child(statChild++, 30181, 65, 105);
statCompare.child(statChild++, 30182, 65, 125);
int stakeChild = 0;
stakeInterface.totalChildren(12);
stakeInterface.child(stakeChild++, 30151, 35, 27);
stakeInterface.child(stakeChild++, 30152, 35, 47);
stakeInterface.child(stakeChild++, 30153, 35, 67);
stakeInterface.child(stakeChild++, 30154, 35, 87);
stakeInterface.child(stakeChild++, 30155, 55, 30);
stakeInterface.child(stakeChild++, 30156, 55, 50);
stakeInterface.child(stakeChild++, 30157, 55, 70);
stakeInterface.child(stakeChild++, 30158, 55, 90);
stakeInterface.child(stakeChild++, 30159, 75, 5);
stakeInterface.child(stakeChild++, 30160, 385, 2);
stakeInterface.child(stakeChild++, 30161, 415, 2);
stakeInterface.child(stakeChild++, 30185, 350, 17);
theirOffer.totalChildren(0);
yourOffer.totalChildren(0);
int diceChild = 0;
interface_.totalChildren(21);
interface_.child(diceChild++, 30001, 7, 12);
interface_.child(diceChild++, 30002, 38, 21);
interface_.child(diceChild++, 30003, 207, 179);
interface_.child(diceChild++, 30004, 207, 229);
interface_.child(diceChild++, 30005, 250, 275);
interface_.child(diceChild++, 30006, 250, 192);
interface_.child(diceChild++, 30007, 250, 242);
interface_.child(diceChild++, 30008, 87, 50);
interface_.child(diceChild++, 30009, 412, 50);
interface_.child(diceChild++, 30050, 15, 68);
interface_.child(diceChild++, 30100, 341, 68);
interface_.child(diceChild++, 30010, 250, 55);
interface_.child(diceChild++, 30011, 206, 82);
interface_.child(diceChild++, 30012, 206, 102);
interface_.child(diceChild++, 30013, 206, 122);
interface_.child(diceChild++, 30014, 206, 142);
interface_.child(diceChild++, 30015, 226, 85);
interface_.child(diceChild++, 30016, 226, 105);
interface_.child(diceChild++, 30017, 226, 125);
interface_.child(diceChild++, 30018, 226, 145);
interface_.child(diceChild++, 30150, 10, 177);
}