|
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"):
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.Code:if (k < i || i1 < l || k >= i + widget.width || i1 >= l + widget.height) return;
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.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |