Thread: Proper Interface Menu Boundaries

Results 1 to 2 of 2
  1. #1 Proper Interface Menu Boundaries 
    Donator


    Join Date
    Sep 2016
    Posts
    131
    Thanks given
    115
    Thanks received
    52
    Rep Power
    77
    In your Client.java, find your buildInterfaceMenu method, then find this line at the very beginning (yours may have "widget" named differently to something like "rsinterface"):
    Code:
    if (k < i || i1 < l || k > i + widget.width || i1 > l + widget.height)
    			return;
    And replace it with:

    Code:
    if (k < i || i1 < l || k >= i + widget.width || i1 >= l + widget.height)
    			return;
    All you are doing is adjusting the width and height boundaries for building the interface menu to check for if the mouseX/mouseY are greater than or equal to the boundary, instead of just greater than.

    I only noticed this was wrong because I was creating an interface that has a button click region that extends the entire width of the interface, and it is also a child of a scrollbar interface. So this would cause the button click region to overlap with the most left pixel column of the scroll bar.
    If a man does not have the sauce, then he is lost. But the same man can be lost in the sauce.
    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    Community Veteran

    Dexter Morgan's Avatar
    Join Date
    Nov 2008
    Age
    28
    Posts
    4,419
    Thanks given
    1,184
    Thanks received
    757
    Rep Power
    3098
    Thank you very much. Was trying to fix this a while ago. Good job.
    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. [$5] 667/718 Proper Interface 394 and 396
    By hiloser12221 in forum Buying
    Replies: 4
    Last Post: 07-02-2013, 11:47 PM
  2. [New]Proper Context Menu (Transparent)
    By NICKname in forum Snippets
    Replies: 58
    Last Post: 05-26-2013, 08:15 AM
  3. Replies: 8
    Last Post: 02-27-2012, 10:18 PM
  4. Compressed Stats Menu Interface
    By Daniel in forum Snippets
    Replies: 13
    Last Post: 07-06-2010, 12:57 PM
  5. Welcome menu interface
    By mudvayne5493 in forum Help
    Replies: 1
    Last Post: 02-06-2009, 04:30 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
  •