wintertodt interface + others soon
few years old at this point, not a big deal but havent seen it released and its something all 317s loading osrs should have, will post more minigame/boss interfaces under this thread as i go, feel free to ask for whatever else u want/need
some things you could improve as im looking at this
- make a method for drawing health bars thats easily called instead of just using 3 addpixels bars, so you can make it neater
- make it more compact by using loops
[Only registered and activated users can see links. Click Here To Register...]
Code:
private static void wintertodt(TextDrawingArea[] tda) {
RSInterface wt = addTabInterface(20500);
wt.anchored = true;
addSprite(20501, 884);
addSprite(20502, 885);
addSprite(20503, 885);
addSprite(20504, 885); //you can prob delete all these sprites and only use 1 of each
addSprite(20505, 885);
addSprite(20506, 886);
addSprite(20507, 886);
addSprite(20508, 886);
addSprite(20509, 886);
addSprite(20510, 887);
addSprite(20511, 887);
addSprite(20512, 887);
addSprite(20513, 887);
addSprite(20514, 888);
addSprite(20515, 888);
addSprite(20516, 888);
addSprite(20517, 888);
addText(20518, "Points", 0xff0000, true, true, -1, tda, 0);
addText(20519, "0", 0xff0000, true, true, -1, tda, 0);
addPixels(20522, 0x000000, 222, 18, 0, false, 220);
addPixels(20521, 0xbe0006, 220, 16, 0, true, 220);
addPixels(20520, 0x00cd00, 0, 16, 0, true, 220);
addText(20523, "Wintertodt's Energy: 0%", 0x000000, false, false, -1, tda, 0);
addText(20524, "The Wintertodt returns in: 30 secs", 0xff991f, false, true, -1, tda, 0);
int wtChild = 0;
wt.totalChildren(24);
wt.child(wtChild++, 20501, 30, 65);
wt.child(wtChild++, 20502, 11, 43);
wt.child(wtChild++, 20503, 11, 110);
wt.child(wtChild++, 20504, 79, 43);
wt.child(wtChild++, 20505, 79, 110);
wt.child(wtChild++, 20506, 11, 43);
wt.child(wtChild++, 20507, 11, 110);
wt.child(wtChild++, 20508, 79, 43);
wt.child(wtChild++, 20509, 79, 110);
wt.child(wtChild++, 20510, 11, 43);
wt.child(wtChild++, 20511, 11, 110);
wt.child(wtChild++, 20512, 79, 43);
wt.child(wtChild++, 20513, 79, 110);
wt.child(wtChild++, 20514, 11, 43);
wt.child(wtChild++, 20515, 11, 110);
wt.child(wtChild++, 20516, 79, 43);
wt.child(wtChild++, 20517, 79, 110);
wt.child(wtChild++, 20518, 55, 88);
wt.child(wtChild++, 20519, 55, 98);
wt.child(wtChild++, 20521, 11, 15);
wt.child(wtChild++, 20520, 11, 15);
wt.child(wtChild++, 20522, 10, 14);
wt.child(wtChild++, 20523, 60, 17);
wt.child(wtChild++, 20524, 13, 31);
}
[Only registered and activated users can see links. Click Here To Register...]
raids party interface part 1
[Only registered and activated users can see links. Click Here To Register...]
Code:
public static void addPartySlot(GameFont[] tda, int id, int backId) {
Widget partySlot = addTabInterface(id);
addTransparentSprite(id + 10, backId, 130);
addHoverButton_sprite_loader(id + 8, 507, 458, 20, "Select", -1, id + 9, 1);
addHoveredButton_sprite_loader(id + 9, 629, 458, 20, 39989);
addText(id + 1, "1", tda, 1, 0xff981f, true, true);
addText(id + 2, "-", tda, 0, 0x9f9f9f, true, true);
addText(id + 3, "Expand", tda, 1, 0xff981f, true, true);
addText(id + 4, "-", tda, 0, 0x9f9f9f, true, true);
addText(id + 5, "-", tda, 0, 0x9f9f9f, true, true);
addSprite(id + 6, 626);
addText(id + 7, "0:27", tda, 0, 0x9f9f9f, true, true);
partySlot.totalChildren(10);
int partyChild = 0;
partySlot.child(partyChild++, id + 10, 0, 0);
partySlot.child(partyChild++, id + 8, 0, 0);
partySlot.child(partyChild++, id + 9, 0, 0);
partySlot.child(partyChild++, id + 1, 16, 2);
partySlot.child(partyChild++, id + 2, 75, 5);
partySlot.child(partyChild++, id + 3, 156, 2);
partySlot.child(partyChild++, id + 4, 250, 5);
partySlot.child(partyChild++, id + 5, 301, 5);
partySlot.child(partyChild++, id + 6, 323, 2);
partySlot.child(partyChild++, id + 7, 392, 5);
}
public static void raidsParty(GameFont[] tda) {
Widget interface_ = addTabInterface(17500);
addSprite(17501, 623);
addHoverButton_sprite_loader(17502, 625, 95, 25, "Select", -1, 17503, 1);
addHoveredButton_sprite_loader(17503, 624, 95, 25, 39999);
addText(17504, "Refresh", tda, 1, 0xff981f, false, true);
addHoverButton_sprite_loader(17505, 625, 95, 25, "Select", -1, 17506, 1);
addHoveredButton_sprite_loader(17506, 624, 95, 25, 39999);
addText(17507, "Make party", tda, 1, 0xff981f, false, true);
addText(17508, "Raiding Parties", tda, 2, 0xff981f, false, true);
addHoverButton_sprite_loader(17509, 579, 23, 23, "Close", -1, 17510, 1);
addHoveredButton_sprite_loader2(17510, 580, 23, 23, 18251);
addButton(17511, 37128, 9, 7, 508, 508, 17512, "Filter");
addHoveredButton_sprite_loader(17512, 509, 9, 7, 39998);
addButton(17513, 37128, 9, 7, 508, 508, 17514, "Filter");
addHoveredButton_sprite_loader(17514, 509, 9, 7, 39997);
addButton(17515, 37128, 9, 7, 508, 508, 17516, "Filter");
addHoveredButton_sprite_loader(17516, 509, 9, 7, 39996);
addButton(17517, 37128, 9, 7, 508, 508, 17518, "Filter");
addHoveredButton_sprite_loader(17518, 509, 9, 7, 39995);
addButton(17519, 37128, 9, 7, 508, 508, 17520, "Filter");
addHoveredButton_sprite_loader(17520, 509, 9, 7, 39994);
addButton(17521, 37128, 9, 7, 508, 508, 17522, "Filter");
addHoveredButton_sprite_loader(17522, 509, 9, 7, 39993);
addButton(17523, 37128, 9, 7, 508, 508, 17524, "Filter");
addHoveredButton_sprite_loader(17524, 509, 9, 7, 39992);
int k = 0;
int y = 0;
for(int i = 0; i < 6; i++) {
if(i % 2 == 0 ) {
addPartySlot(tda, 23100 + k, 627);
} else {
addPartySlot(tda, 23100 + k, 628);
}
k+= 11;
}
k = 0;
int intchild = 0;
interface_.totalChildren(30);
interface_.child(intchild++, 17501, 8, 3);
interface_.child(intchild++, 17502, 100, 300);
interface_.child(intchild++, 17503, 100, 300);
interface_.child(intchild++, 17504, 123, 304);
interface_.child(intchild++, 17505, 297, 300);
interface_.child(intchild++, 17506, 297, 300);
interface_.child(intchild++, 17507, 312, 304);
interface_.child(intchild++, 17508, 200, 13);
interface_.child(intchild++, 17509, 468, 9);
interface_.child(intchild++, 17510, 468, 9);
interface_.child(intchild++, 17511, 35, 47);
interface_.child(intchild++, 17512, 35, 47);
interface_.child(intchild++, 17513, 95, 47);
interface_.child(intchild++, 17514, 95, 47);
interface_.child(intchild++, 17515, 175, 47);
interface_.child(intchild++, 17516, 175, 47);
interface_.child(intchild++, 17517, 270, 47);
interface_.child(intchild++, 17518, 270, 47);
interface_.child(intchild++, 17519, 320, 47);
interface_.child(intchild++, 17520, 320, 47);
interface_.child(intchild++, 17521, 350, 47);
interface_.child(intchild++, 17522, 350, 47);
interface_.child(intchild++, 17523, 410, 47);
interface_.child(intchild++, 17524, 410, 47);
for(int i = 0; i < 6; i++) {
interface_.child(intchild++, 23100 + k, 23, 58 + y);
k += 11;
y += 20;
}
}
[Only registered and activated users can see links. Click Here To Register...]