Thread: Achievement tab PI

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1 Achievement tab PI 
    Registered Member
    Join Date
    Dec 2010
    Posts
    195
    Thanks given
    9
    Thanks received
    8
    Rep Power
    1
    Hello,


    I followed a couple of tutorials to make my achievement tab look like his one:
    [Only registered and activated users can see links. ]

    Code:
    public static void achievements(TextDrawingArea[] tda) {
            RSInterface tab = addTabInterface(19000);
            RSInterface list = addTabInterface(19150);
    	addText(19001, "Achievements", tda, 1, 0xff9933, true, true);
            addSprite(19002, 39, "Interfaces/QuestTab/QUEST");
    	addSprite(19003, 4, "Interfaces/QuestTab/QUEST");
    	addSprite(19004, 4, "Interfaces/QuestTab/QUEST");
            tab.totalChildren(5);
    	tab.child(0, 19001, 45, 5);
            tab.child(1, 19002, 0, 23);
            tab.child(2, 19003, 1, 22);
    	tab.child(3, 19004, 1, 248);
    	tab.child(4, 19150, 0, 24);
    	list.totalChildren(100);
            for(int i = 19151; i <= 19251; i++) {
                addText(i, "", tda, 0, 0xffffff, false, true);
            }
            for(int id = 19151, i = 0; id <= 19250 && i <= 99; id++, i++) {
                list.children[i] = id; list.childX[i] = 5;
                for(int id2 = 19151, i2 = 1; id2 <= 19250 && i2<= 99; id2++, i2++) {
                    list.childY[0] = 2;
                    list.childY[i2] = list.childY[i2 - 1] + 14;
                }
            }
            list.height = 223; list.width = 174;
            list.scrollMax = 1405;  
    	
        }
    But when i paste this code in my RSInterface.java it doesn't do anything.



    I just get this blank page:


    Please,
    Help me with this.

    //////////////////////////////////////////////////////////////////////////

    SOLVED
    The code i solved it with:

    public static void questTab(TextDrawingArea[] TDA){
    RSInterface Interface = addInterface(638);
    setChildren(4, Interface);
    addText(29155, "Title", 0xFF981F, false, true, 52, TDA, 2);
    addButton(29156, 1, "Interfaces/QuestTab/QUEST", 18, 18, "Swap to Achievement Diary", 1);
    addSprite(29157, 0, "Interfaces/QuestTab/QUEST");
    setBounds(29155, 10, 5, 0, Interface);
    setBounds(29156, 165, 5, 1, Interface);
    setBounds(29157, 3, 24, 2, Interface);
    setBounds(29160, 5, 29, 3, Interface);
    Interface = addInterface(29160);
    Interface.height = 214;
    Interface.width = 165;
    Interface.scrollMax = 1700;
    Interface.newScroller = true;
    setChildren(104, Interface);
    addHoverText(29161, "1", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29162, "2", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29163, "3", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29164, "4", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29165, "5", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29166, "6", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29167, "7", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29168, "8", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29169, "9", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29170, "10", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29171, "11", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29172, "12", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29173, "13", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29174, "14", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29175, "15", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29176, "16", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29177, "17", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29178, "18", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29179, "19", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29180, "20", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29181, "21", "click", TDA, 0, 0xff0000, false, true, 150);
    setBounds(29161, 8, 4, 0, Interface);
    setBounds(29162, 8, 16, 1, Interface);
    setBounds(29163, 8, 29, 2, Interface);
    setBounds(29164, 8, 42, 3, Interface);
    setBounds(29165, 8, 54, 4, Interface);
    setBounds(29166, 8, 66, 5, Interface);
    setBounds(29167, 8, 78, 6, Interface);
    setBounds(29168, 8, 90, 7, Interface);
    setBounds(29169, 8, 102, 8, Interface);
    setBounds(29170, 8, 114, 9, Interface);
    setBounds(29171, 8, 126, 10, Interface);
    setBounds(29172, 8, 138, 11, Interface);
    setBounds(29173, 8, 150, 12, Interface);
    setBounds(29174, 8, 162, 13, Interface);
    setBounds(29175, 8, 174, 14, Interface);
    setBounds(29176, 8, 186, 15, Interface);
    setBounds(29177, 8, 198, 16, Interface);
    setBounds(29178, 8, 210, 17, Interface);
    setBounds(29179, 8, 222, 18, Interface);
    setBounds(29180, 8, 234, 19, Interface);
    setBounds(29181, 8, 246, 20, Interface);
    int Ypos = 258;
    int frameID = 20;
    for(int iD = 29181; iD <= 29264;iD++){
    addHoverText(iD, "", "View Quest"/*"View Quest Journal, "+iD*/, TDA, 0, 0xff0000, false, true, 150);
    setBounds(iD, 8, Ypos, frameID, Interface);
    frameID++;
    Ypos += 15;
    Ypos++;
    }
    Interface = addInterface(29265);
    try {
    setChildren(4, Interface);
    addText(29266, "Title", 0xFF981F, false, true, -1, TDA, 2);
    addButton(29267, 2, "Interfaces/QuestTab/QUEST", 18, 18, "Swap to Quest Diary", 1);
    addSprite(29269, 0, "Interfaces/QuestTab/QUEST");
    setBounds(29266, 10, 5, 0, Interface);
    setBounds(29267, 165, 5, 1, Interface);
    setBounds(29269, 3, 24, 2, Interface);
    setBounds(29268, 5, 29, 3, Interface);
    Interface = addInterface(29268);
    Interface.height = 214;
    Interface.width = 165;
    Interface.scrollMax = 1700;
    Interface.newScroller = false;
    setChildren(20, Interface);
    setBounds(29295, 8, 4, 0, Interface);
    setBounds(29296, 8, 16, 1, Interface);
    setBounds(29297, 8, 29, 2, Interface);
    setBounds(29298, 8, 42, 3, Interface);
    setBounds(29299, 8, 54, 4, Interface);
    setBounds(29300, 8, 66, 5, Interface);
    setBounds(29301, 8, 78, 6, Interface);
    setBounds(29302, 8, 90, 7, Interface);
    setBounds(29303, 8, 102, 8, Interface);
    setBounds(29304, 8, 114, 9, Interface);
    setBounds(29305, 8, 126, 10, Interface);
    setBounds(29306, 8, 138, 11, Interface);
    setBounds(29307, 8, 150, 12, Interface);
    setBounds(29308, 8, 162, 13, Interface);
    setBounds(29309, 8, 174, 14, Interface);
    setBounds(29310, 8, 186, 15, Interface);
    setBounds(29311, 8, 198, 16, Interface);
    setBounds(29312, 8, 210, 17, Interface);
    setBounds(29313, 8, 222, 18, Interface);
    setBounds(29314, 8, 234, 19, Interface);
    addHoverText(29295, "1", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29296, "2", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29297, "3", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29298, "4", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29299, "5", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29300, "6", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29301, "7", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29302, "8", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29303, "9", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29304, "10", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29305, "11", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29306, "12", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29307, "13", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29308, "14", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29309, "15", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29310, "16", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29311, "17", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29312, "18", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29313, "19", "click", TDA, 0, 0xff0000, false, true, 150);
    addHoverText(29314, "20", "click", TDA, 0, 0xff0000, false, true, 150);
    } catch(Exception e){
    e.printStackTrace();
    }
    }
    Reply With Quote  
     

  2. #2  
    Software Engineer

    OogleBoogle's Avatar
    Join Date
    Apr 2012
    Age
    22
    Posts
    3,881
    Thanks given
    575
    Thanks received
    488
    Discord
    View profile
    Rep Power
    266
    Are you making that button open the correct sidetab interface?
    ╠╬╣
    ╦╦
    ╠╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╚╩╩╩╩╩╩╝
    ╠╬╬╬╣

    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2010
    Posts
    195
    Thanks given
    9
    Thanks received
    8
    Rep Power
    1
    Quote Originally Posted by Ream™ View Post
    Are you making that button open the correct sidetab interface?
    Yes.
    Reply With Quote  
     

  4. #4  
    Software Engineer

    OogleBoogle's Avatar
    Join Date
    Apr 2012
    Age
    22
    Posts
    3,881
    Thanks given
    575
    Thanks received
    488
    Discord
    View profile
    Rep Power
    266
    You aren't making it a sidebarinterface.
    ╠╬╣
    ╦╦
    ╠╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╚╩╩╩╩╩╩╝
    ╠╬╬╬╣

    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Dec 2010
    Posts
    195
    Thanks given
    9
    Thanks received
    8
    Rep Power
    1
    Quote Originally Posted by Angerfist View Post
    setSidebarInterface(#, 19000);
    What is the #?
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Dec 2010
    Posts
    195
    Thanks given
    9
    Thanks received
    8
    Rep Power
    1
    Quote Originally Posted by Ream™ View Post
    You aren't making it a sidebarinterface.
    Well this is not my code it's of a tutorial.
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    May 2011
    Posts
    1,785
    Thanks given
    854
    Thanks received
    853
    Rep Power
    0
    Quote Originally Posted by Dion View Post
    What is the #?
    The tab id for example 1 = skill icon for me
    Reply With Quote  
     

  8. #8  
    Software Engineer

    OogleBoogle's Avatar
    Join Date
    Apr 2012
    Age
    22
    Posts
    3,881
    Thanks given
    575
    Thanks received
    488
    Discord
    View profile
    Rep Power
    266
    Have you even added the other part in RSInterface.java?

    Search aClass44 = Streamloader;

    then underthat add your code, It will be something like

    Code:
    achievements(textDrawingAreas);
    ╠╬╣
    ╦╦
    ╠╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╚╩╩╩╩╩╩╝
    ╠╬╬╬╣

    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Dec 2010
    Posts
    195
    Thanks given
    9
    Thanks received
    8
    Rep Power
    1
    Quote Originally Posted by Ream™ View Post
    Have you even added the other part in RSInterface.java?

    Search aClass44 = Streamloader;

    then underthat add your code, It will be something like

    Code:
    achievements(textDrawingAreas);
    Yes i got that
    Reply With Quote  
     

  10. #10  
    Software Engineer

    OogleBoogle's Avatar
    Join Date
    Apr 2012
    Age
    22
    Posts
    3,881
    Thanks given
    575
    Thanks received
    488
    Discord
    View profile
    Rep Power
    266
    Quote Originally Posted by Dion View Post
    Yes i got that
    Well you aren't even setting it to a sidebar interface so thats why it isnt working.

    My guess :/
    ╠╬╣
    ╦╦
    ╠╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╠╬╬╬╬╬╬╣
    ╚╩╩╩╩╩╩╝
    ╠╬╬╬╣

    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 3
    Last Post: 09-08-2012, 04:30 AM
  2. [PI] Achievement Tab
    By Famouz in forum Help
    Replies: 8
    Last Post: 05-28-2012, 05:03 AM
  3. [REQ][PI] Achievement tab as a seperate interface
    By Ash Ketchum in forum Requests
    Replies: 3
    Last Post: 11-24-2011, 06:03 AM
  4. [PI] Need help on achievent tab
    By ARshadow in forum Help
    Replies: 4
    Last Post: 11-12-2011, 11:39 AM
  5. PI Achievements Tab Disabled
    By Victor in forum Help
    Replies: 10
    Last Post: 07-30-2011, 02:57 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •