Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: ferretnt on May 30, 2013, 12:39:23 PM

Title: Fixed-size scrollbar foregrounds (handles)
Post by: ferretnt on May 30, 2013, 12:39:23 PM
Hey Aren,

I want to make a fixed-size (vertical) scrollbar handle, i.e. the scrollbar handle is always a fixed-size sprite (actually 40x40).

The interaction between UIScrollbar and UIDraggablePanel is relatively complex by NGUI standards, so I wanted to ask if there's a simple way to do this, as I couldn't see an easy one just by forcing, say, UIScrollBar.barSize somewhere.

Is there an elegant way to do this? I can make the blob the right size outside of NGUI just by adding a funciton with a lateUpdate to rescale the scrollbar, but then it won't move the full length of the scrollbar (because it stops when the bottom of the scaled widget would have hit.

Thanks,
Alex
Title: Re: Fixed-size scrollbar foregrounds (handles)
Post by: ArenMook on May 30, 2013, 05:36:01 PM
You will need to modify the scroll bar to achieve this, as scroll bar is not meant to have a fixed size.