Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
3.4 kB
3
Indexable
Never
    public static void bossCollectionLog() {
        int interID = 148_000;
        RSInterface tab = addInterface(interID);
        int id = interID + 1;
        int c = 0;
        int x = 10;
        int y = 10;
        tab.totalChildren(24);

        addSpriteLoader(id, 1464);
        tab.child(c++, id++, 0 + x, 0 + y);

        addHoverButtonWSpriteLoader(id, 65, 16, 16, "Close Window", 0, id + 1, 3);
        tab.child(c++, id++, 467 + x, 3 + y);
        addHoveredImageWSpriteLoader(id, 66, 16, 16, id + 1);
        tab.child(c++, id++, 467 + x, 3 + y);
        id++;

        addText(id, "Collection Log", tda, 2, 0xFF981F, true, true);
        tab.child(c++, id++, 247 + x, 4 + y);

        addText(id, "Name", tda, 2, 0xFF981F, false, true);
        tab.child(c++, id++, 211 + x, 60 + y);

        addText(id, "Obtained: ", tda, 0, 0xFF981F, false, true);
        tab.child(c++, id++, 211 + x, 82 + y);

        addTextRight(id, "kills: 0", tda, 0, 0xFF981F, true);
        tab.child(c++, id++, 472 + x, 81 + y);

        String[] tabs = new String[]{"Monsters", "Bosses", "Minigames", "Other"};

        for (int i = 0; i < 4; i++) {
            addConfigButtonWSpriteLoader(id, interID, 1429, 1430, 94, 20, tabs[i], i, 5, 2388);
            tab.child(c++, id++, 7 + x, 26 + y);
            addText(id, tabs[i], 0xFFA500, false, true, 100, tda, 1);
            tab.child(c++, id++, 13 + x, 29 + y);
            x += 94;
        }
        x = 10;

        tab.child(c++, 148_100, 12 + x, 59 + y);
        tab.child(c++, 148_400, 209 + x, 97 + y);


        addText(id, "Rewards on completion", tda, 1, 0xFF981F, false, true);
        tab.child(c++, id++, 220 + x, 252);

        hoverButton(id, 1470, 1471, "Claim", 1, 0xE68A00, "Claim");
        tab.child(c++, id++, 400, 270);

        for (int r = 0; r < 5; r++) {
            itemGroup(id, 1, 1, 1, 1);
            tab.child(c++, id++, 212 + x, 260 + y);
            x += 35;
        }

        interID = 148_100;
        RSInterface list = addTabInterface(interID);
        list.totalChildren(200);
        list.aspect_width = 187 - 16;
        list.aspect_height = 240;
        list.scroll_height = 259;
        id = interID + 1;
        x = 0;
        y = 0;
        c = 0;
        //for (int i = 0; i < 10; i++) {
        //	addSpriteLoader(startId, 1091);
        //	list.addChild(startId++, 0, (i * 80) - 3);
        //}
        for (int i = 0; i < 100; i++) {
            addConfigButtonWSpriteLoader(id, interID, (i % 2 == 0) ? 1465 : 1466, 1467, 188, 17, "Select", i, 5, 2451);
            list.child(c++, id++, 0 + x, 0 + y);
            addText(id, "", 0xFFA500, false, true, 100, tda, 1);
            list.child(c++, id++, 1 + x, 0 + y);
            y += 17;
        }

        interID = 148_400;
        RSInterface list2 = addTabInterface(interID);
        list2.totalChildren(210);
        list2.aspect_width = 269 - 16;
        list2.aspect_height = 141;
        list2.scroll_height = 290;
        id = interID + 1;
        x = 0;
        y = 0;
        c = 0;
        for (int z = 0; z < 30; z++) {
            for (int r = 0; r < 7; r++) {
                itemGroup(id, 1, 1, 1, 1);
                list2.child(c++, id++, 2 + x, 3 + y);
                x += 36;
            }
            x = 0;
            y += 36;
        }

    }