Thread: [Vencillio] Interface Hovertext Help

Results 1 to 3 of 3
  1. #1 [Vencillio] Interface Hovertext Help 
    Registered Member
    Join Date
    Oct 2018
    Posts
    25
    Thanks given
    0
    Thanks received
    6
    Rep Power
    11
    So on my interface I've made I have some hover text if I was wanting that to send me another interface what would I do?

    Tried everything for the last 3 days and gave up and moved on something else I've also posted about it before but hopefully a Re-post will help find the answer
    cause it's been bugging me for days now rofl.


    Custominterfaces.java
    Code:
    public static void votingPolls(TextDrawingArea[] NeverEnd) {
    		RSInterface tab = addTabInterface(54000);
    		addSprite(54001, 490);
    		addText(54002, "Voting Poll Station", NeverEnd, 2, 0xff9933, true, true);
    		addText(54003, "Coming Soon!", NeverEnd, 2, 0xff9933, true, true);
    		addHoverButton(54004, 17, 21, 21, "Close", 250, 54005, 3);
    		addHoveredButton(54005, 18, 21, 21, 54005);	
    		addHoverText(54006, "Update 1# - OSRS Items & More!", "More Information", NeverEnd, 1, 0xaa5c7d, false, true, 250);   <--- THIS ONE HOW DO I MAKE IT SEND A DIFFERENT INTERFACE ONCE CLICKED?
    		addHoverText(54007, "Update 2# - Coming Soon!", "More Information", NeverEnd, 1, 0xaa5c7d, false, true, 250);
    		addHoverText(54008, "Update 3# - Coming Soon!", "More Informtion", NeverEnd, 1, 0xaa5c7d, false, true, 250);
    		addHoverText(54009, "Update 4# - Coming Soon!", "More Information", NeverEnd, 1, 0xaa5c7d, false, true, 250);
    		tab.totalChildren(8);
    		tab.child(0, 54001, 7, 8); // Main Interface
    		tab.child(1, 54002, 270, 18); // Title
    		tab.child(2, 54003, 270, 300); // Coming Soon
    		tab.child(3, 54004, 480, 15); // Close Button
    		tab.child(4, 54006, 40, 60); // Hover Text Update #1
    		tab.child(5, 54007, 40, 105); // Hover Text Update #2
    		tab.child(6, 54008, 40, 153);// Hover Text Update #3
    		tab.child(7, 54009, 40, 198);// Hover Text Update #4
    	}
    No one know how to do this at all?
    Reply With Quote  
     

  2. #2  
    Super Donator

    StanDev's Avatar
    Join Date
    Apr 2014
    Posts
    660
    Thanks given
    82
    Thanks received
    255
    Rep Power
    592
    I am not familiar with your addHoverText method but I assume it will assign some action id to the child of the widget containing the hover-able text.

    Now if someone clicks the text, this should result in the client checking the action id associated to the child interface containing the hove-able text.
    This should result in the client sending a button click packet to the server which includes some button id (which it derives from the child interface's id).

    One piece of advice would be to print out the button ids of all your incoming button click packets, then check what id is printed if u click the hover-able text. If it does print an id, u can then add a condition for that id to open up a specific interface. If it doesn't then it is probably the case that the addHoverText method is not assigning the correct action id to that child interface. If the latter is the case then post your addHoverText method .

    I very much advice u to get familiar with the debugger tool in your IDE of choice (I recommend Intellij) to make your life much easier.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Oct 2018
    Posts
    25
    Thanks given
    0
    Thanks received
    6
    Rep Power
    11
    Quote Originally Posted by StanDev View Post
    I am not familiar with your addHoverText method but I assume it will assign some action id to the child of the widget containing the hover-able text.

    Now if someone clicks the text, this should result in the client checking the action id associated to the child interface containing the hove-able text.
    This should result in the client sending a button click packet to the server which includes some button id (which it derives from the child interface's id).

    One piece of advice would be to print out the button ids of all your incoming button click packets, then check what id is printed if u click the hover-able text. If it does print an id, u can then add a condition for that id to open up a specific interface. If it doesn't then it is probably the case that the addHoverText method is not assigning the correct action id to that child interface. If the latter is the case then post your addHoverText method .

    I very much advice u to get familiar with the debugger tool in your IDE of choice (I recommend Intellij) to make your life much easier.
    Thank you do you know anywhere I can find the code to support printing button ids?
    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. [317] [Vencillio] Interface Hovertexts HELP
    By Tomshere in forum Requests
    Replies: 1
    Last Post: 06-21-2019, 05:49 AM
  2. Vencillio - Interface help
    By Lancelot in forum Help
    Replies: 2
    Last Post: 01-06-2017, 10:00 PM
  3. Interface Method Help
    By Stewie in forum Help
    Replies: 2
    Last Post: 06-01-2009, 09:01 AM
  4. [508] Interface close help
    By The Lizard King in forum Help
    Replies: 9
    Last Post: 04-18-2009, 09:02 PM
  5. Interface Maker Help
    By Kingdad38 in forum Help
    Replies: 0
    Last Post: 02-14-2009, 10:06 PM
Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •