Thread: Interface scroll fix

Results 1 to 3 of 3
  1. #1 Interface scroll fix 
    ???

    funkE's Avatar
    Join Date
    Feb 2008
    Posts
    2,612
    Thanks given
    255
    Thanks received
    989
    Rep Power
    1366
    Hi there, I just wanted to post a quick thread about some tricks I use when making interfaces. I'll be using some iteration of a mopar renamed client.

    For this example, I'll use the quest tab. When you clear it, you can easily do it via the RSInterface class.

    RSInterface scroll = interfaceCache[639];
    scroll.totalChildren(0);

    Then when you go and add all the stuff you want, just set the totalChildren to whatever you want and add the children yourself. No need for bandwidth waste when you can actually modify the interface to what it should be.


    Then comes the problem of the scroll bar.
    In drawFriendsListOrWelcomeScreen add something like:
    Code:
    		if (class9.id == 639) {
    			int i1 = class9.children.length;
    			class9.scrollMax = i1 * 13 + 8; // this is a fixed height, so it's made specifically for one line of small text. you would have to modify it to make it work any other way.
    			if(class9.scrollMax <= class9.height)
    				class9.scrollMax = class9.height + 1; // if you don't add one then scrollbar becomes invisible aka scroll height = height = invisible
    		}
    You may be able to just modify the "contentType" variable in the scroll interface (639) but I haven't tested this and am unaware of the implications, so I just do it this way...
    In drawInterface there will be another call to drawFriendsListOrWelcomeScreen(child) add this below:

    Code:
    			if (child.id == 639) { // whatever ids of interfaces with scrolls you want to modify.
    				drawFriendsListOrWelcomeScreen(child);
    			}
    Anyway, not super high quality, but I demonstrated the general idea. There are other instances of fixing the scrollbar in the drawFriendsListOrWelcomeScreen method so I figure it belonged.

    Go fix your interfaces that scroll into the abyss.
    .
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Apr 2009
    Posts
    1,727
    Thanks given
    403
    Thanks received
    210
    Rep Power
    390
    Open cache and change the scrollMax in there. No need to do it within the client.
    Reply With Quote  
     

  3. #3  
    ???

    funkE's Avatar
    Join Date
    Feb 2008
    Posts
    2,612
    Thanks given
    255
    Thanks received
    989
    Rep Power
    1366
    Quote Originally Posted by Phat 4 u View Post
    Open cache and change the scrollMax in there. No need to do it within the client.
    you do realize there are some interfaces that have dynamically generated content inside, right

    friends list, clan chat participants, ignores, most of the time quest tab because people repurpose it, clan chat settings interface, probably more.

    this is a fix for making it automatically size itself instead of it being the maximum possible all the time
    .
    Reply With Quote  
     

  4. Thankful user:



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. [PI] Interface Scroll Bar
    By ItsGoml in forum Help
    Replies: 7
    Last Post: 08-26-2012, 10:04 AM
  2. Replies: 13
    Last Post: 05-30-2012, 10:45 PM
  3. [Galkon's]Interface rotations fix !
    By zivkovic in forum Buying
    Replies: 19
    Last Post: 02-16-2012, 11:27 AM
  4. Replies: 1
    Last Post: 01-03-2012, 10:48 PM
  5. Replies: 4
    Last Post: 07-13-2011, 07:36 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
  •