Thread: Why do some of my Hover Buttons work?

Results 1 to 5 of 5
  1. #1 Why do some of my Hover Buttons work? 
    Extreme Donator
    CrazzMC's Avatar
    Join Date
    Sep 2011
    Posts
    42
    Thanks given
    5
    Thanks received
    2
    Rep Power
    12
    Looks like only 10% of Hover Buttons work in my server. I have no idea why and I've been messing around with this for hours.

    This works:

    Code:
    	addHoverButton(27651, "Equipment/BOX", 2, 40, 40, "Loot Manager", -1, 27652, 1);
    	addHoveredButton(27652, "Equipment/HOVER", 2, 40, 40, 27658);
    
    	addHoverButton(27653, "Equipment/BOX", 1, 40, 40, "Show Equipment Stats", -1, 27655, 1);
    	addHoveredButton(27655, "Equipment/HOVER", 1, 40, 40, 27665);
    
    	addHoverButton(27654, "Equipment/BOX", 3, 40, 40, "Show items kept on death", -1, 27657, 1);
    	addHoveredButton(27657, "Equipment/HOVER", 3, 40, 40, 27666);
    This doesn't (pre-coded):

    Code:
            addHoverButton(51007, "SPRITE", 1, 21, 21, "Close", 250, 51008, 3);
            addHoveredButton(51008, "SPRITE", 3, 21, 21, 51009);
    This also doesn't (my own):

    Code:
            addHoverButton(51015, "/Interfaces/SlayerHelmet/BUTTONS", 1, 88, 35, "Revert Colour", -1, 51016, 1);
            addHoveredButton(51016, "/Interfaces/SlayerHelmet/HOVER", 1, 88, 35, 51024);          
            addHoverButton(51018, "/Interfaces/SlayerHelmet/BUTTONS", 1, 88, 35, "Confirm Purchase", -1, 51019, 1);
            addHoveredButton(51019, "/Interfaces/SlayerHelmet/HOVER", 1, 88, 35, 51030);
    Thanks in advance, I'm super confused.

    -crazzmc
    Reply With Quote  
     

  2. #2  
    ¯\_(ツ)_/¯


    Join Date
    Jul 2014
    Posts
    1,803
    Thanks given
    928
    Thanks received
    550
    Rep Power
    299
    Can you show the part where you set the children of your interface?
    Reply With Quote  
     

  3. #3  
    Extreme Donator
    CrazzMC's Avatar
    Join Date
    Sep 2011
    Posts
    42
    Thanks given
    5
    Thanks received
    2
    Rep Power
    12
    Quote Originally Posted by Hitten View Post
    Can you show the part where you set the children of your interface?
    Yes, there is a difference between the working and the non-working, however, I have tried both methods of setting the children and no avail Here it is though:

    Working:

    Code:
    	public static void equipmentTab(TextDrawingArea[] wid) {        RSInterface Interface = interfaceCache[1644];
        addSprite(15101, 0, "Interfaces/Equipment/bl");
        addSprite(15102, 1, "Interfaces/Equipment/bl");
        addSprite(15109, 2, "Interfaces/Equipment/bl");
        removeSomething(21338);
        removeSomething(21344);
        removeSomething(21342);
        removeSomething(21341);
        removeSomething(21340);
        removeSomething(15103);
        removeSomething(15104);
    	Interface.children[23] = 15101;
    	Interface.childX[23] = 40;
    	Interface.childY[23] = 205;
    	Interface.children[24] = 15102;
    	Interface.childX[24] = 110;
    	Interface.childY[24] = 205;
    	Interface.children[25] = 15109;
    	Interface.childX[25] = 39;
    	Interface.childY[25] = 240;
    	Interface.children[26] = 27650;
    	Interface.childX[26] = 0;
    	Interface.childY[26] = 0;
    	Interface = addInterface(27650);
    
    
    	addHoverButton(27651, "Equipment/BOX", 2, 40, 40, "Loot Manager", -1, 27652, 1);
    	addHoveredButton(27652, "Equipment/HOVER", 2, 40, 40, 27658);
    
    	addHoverButton(27653, "Equipment/BOX", 1, 40, 40, "Show Equipment Stats", -1, 27655, 1);
    	addHoveredButton(27655, "Equipment/HOVER", 1, 40, 40, 27665);
    
    	addHoverButton(27654, "Equipment/BOX", 3, 40, 40, "Show items kept on death", -1, 27657, 1);
    	addHoveredButton(27657, "Equipment/HOVER", 3, 40, 40, 27666);
    
    
    	setChildren(6, Interface);
    	setBounds(27651, 75, 205, 0, Interface);
    	setBounds(27652, 75, 205, 1, Interface);
    	setBounds(27653, 23, 205, 2, Interface);
    	setBounds(27654, 127, 205, 3, Interface);
    	setBounds(27655, 23, 205, 4, Interface);
    	setBounds(27657, 127, 205, 5, Interface);
    }
    Not-Working:

    Code:
    	public static void slayerHelmInterface(TextDrawingArea[]tda) {
    		RSInterface tab = addInterface(51000);
    		addSprite(51001, 0, "/Interfaces/SlayerHelmet/SHBG");	
    		addButton(51002, 1, "/Interfaces/SlayerHelmet/SLAYERHELMET", "Purchase Black Slayer Helmet");
    		addButton(51003, 2, "/Interfaces/SlayerHelmet/SLAYERHELMET", "Purchase Green Slayer Helmet");
    		addButton(51004, 3, "/Interfaces/SlayerHelmet/SLAYERHELMET", "Purchase Red Slayer Helmet");
    		addButton(51005, 4, "/Interfaces/SlayerHelmet/SLAYERHELMET", "Purchase Purple Slayer Helmet");
    		addButton(51006, 5, "/Interfaces/SlayerHelmet/SLAYERHELMET", "Purchase Turquoise Slayer Helmet");
            addHoverButton(51007, "SPRITE", 1, 21, 21, "Close", 250, 51008, 3);
            addHoveredButton(51008, "SPRITE", 3, 21, 21, 51009);	
            addText(51009, "@whi@Slayer Helmet Colouring", tda, 2, 0xFFA500, true, true);
            addText(51010, "@whi@1,000 Pts & KBD Heads", tda, 0, 16748608, false, true);
            addText(51011, "@whi@1,000 Pts & KQ Head", tda, 0, 16748608, false, true);
            addText(51012, "@whi@1,000 Pts & Aby Head", tda, 0, 16748608, false, true);
            addText(51013, "@whi@1,000 Pts & Dark Claw", tda, 0, 16748608, false, true);
            addText(51014, "@whi@1,000 Pts & Vorkath Head", tda, 0, 16748608, false, true);
            addHoverButton(51015, "/Interfaces/SlayerHelmet/BUTTONS", 1, 88, 35, "Revert Colour", -1, 51016, 1);
            addHoveredButton(51016, "/Interfaces/SlayerHelmet/HOVER", 1, 88, 35, 51024);          
            addHoverButton(51018, "/Interfaces/SlayerHelmet/BUTTONS", 1, 88, 35, "Confirm Purchase", -1, 51019, 1);
            addHoveredButton(51019, "/Interfaces/SlayerHelmet/HOVER", 1, 88, 35, 51030);
            addText(51021, "@whi@Revert", tda, 2, 16748608, true, true);
            addText(51022, "@whi@Confirm", tda, 2, 16748608, true, true);    
            tab.totalChildren(20);
            tab.child(0, 51001, 7, 9);
            tab.child(1,  51002,  37,  40);
            tab.child(2,  51003,  225,  40);
            tab.child(3,  51004,  400,  40);
            tab.child(4,  51005,  132,  165);
            tab.child(5,  51006,  320,  165);
            tab.child(6, 51007, 485, 12);
            tab.child(7, 51008, 485, 12);
            tab.child(8, 51009, 260, 12);
            tab.child(9, 51010, 22, 145);
            tab.child(10, 51011, 216, 145);
            tab.child(11, 51012, 381, 145);
            tab.child(12, 51013, 116, 265);
            tab.child(13, 51014, 293, 265);     
            tab.child(14, 51015, 14, 282);
            tab.child(15, 51016, 14, 282);
            tab.child(16, 51018, 411, 282);
            tab.child(17, 51019, 411, 282); 
            tab.child(18, 51021, 57, 292);
            tab.child(19, 51022, 454, 292);        
    	}
    Reply With Quote  
     

  4. #4  
    ¯\_(ツ)_/¯


    Join Date
    Jul 2014
    Posts
    1,803
    Thanks given
    928
    Thanks received
    550
    Rep Power
    299
    I don't see any mistakes, you could try adding this tutorial if you want, this is what I use.

    https://www.rune-server.ee/runescape...r-buttons.html
    Reply With Quote  
     

  5. #5  
    Extreme Donator
    CrazzMC's Avatar
    Join Date
    Sep 2011
    Posts
    42
    Thanks given
    5
    Thanks received
    2
    Rep Power
    12
    Quote Originally Posted by Hitten View Post
    I don't see any mistakes, you could try adding this tutorial if you want, this is what I use.

    https://www.rune-server.ee/runescape...r-buttons.html

    thanks I'll take a look
    Reply With Quote  
     


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: 5
    Last Post: 03-09-2012, 09:13 PM
  2. Some of my uni art work
    By ed_cgma in forum Showcase
    Replies: 9
    Last Post: 10-30-2011, 01:05 AM
  3. Some of My Work
    By dangyounoobs in forum Showcase
    Replies: 4
    Last Post: 02-28-2009, 06:29 PM
  4. some of my work not the best but its ok
    By why teh fuc in forum Showcase
    Replies: 13
    Last Post: 02-23-2009, 08:26 AM
  5. Some of my work... (im new here)
    By Pancakebuddy in forum Showcase
    Replies: 1
    Last Post: 05-21-2007, 02:56 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •