Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Devinish on March 05, 2014, 03:08:45 PM

Title: Problem with Scrollbar in NGUI free (Yes, I'm aware free is "not supported")
Post by: Devinish on March 05, 2014, 03:08:45 PM
Hello folks, I've got a bit of an issue with the scrollbars for NGUI Free.  Yes, I'm aware free is "not supported".  We fully intend to purchase the full version once we have gone through the prototyping phase of things.  I just need to figure out if this is an issue with my setup, or an issue with NGUI Free.  Here's a video of the problem (http://youtu.be/G0uSAnD-V5Y (http://youtu.be/G0uSAnD-V5Y)).  Excuse the blurriness, NDAs and all...  You can see the scrollbar is moving with the draggable panel, and the panel is moving with the scrollbar.  The problem is, the scrollbar is leaving the background, and it appears to be scaling from the wrong place when the contents are dragged too far.  Any suggestions would be appreciated.
Title: Re: Problem with Scrollbar in NGUI free (Yes, I'm aware free is "not supported")
Post by: zazery on March 05, 2014, 05:47:00 PM
I believe you need to change the UIScrollView from MomentumAndSpring to Momentum. If you want the spring then but don't want the scrollbar to change you need to write a custom scrollbar.
Title: Re: Problem with Scrollbar in NGUI free (Yes, I'm aware free is "not supported")
Post by: Nicki on March 05, 2014, 06:29:22 PM
I can't remember exactly how it works in the free version, since the slider has gone through a bunch of changes, but if my memory serves, you could give the foreground an offset so it fits in the background.

I'm fairly certain this isn't an issue in newer versions; at least I haven't had those problems.
Title: Re: Problem with Scrollbar in NGUI free (Yes, I'm aware free is "not supported")
Post by: Devinish on March 05, 2014, 06:57:02 PM
I believe you need to change the UIScrollView from MomentumAndSpring to Momentum. If you want the spring then but don't want the scrollbar to change you need to write a custom scrollbar.

The problem isn't the scrollbar squishing, the issue is that it looks like it isn't aligned properly with the background.

I can't remember exactly how it works in the free version, since the slider has gone through a bunch of changes, but if my memory serves, you could give the foreground an offset so it fits in the background.

I'm fairly certain this isn't an issue in newer versions; at least I haven't had those problems.

The transform position is reset when I test the scene. :-/
Title: Re: Problem with Scrollbar in NGUI free (Yes, I'm aware free is "not supported")
Post by: zazery on March 05, 2014, 09:16:56 PM
Whoops completely misread that.
Title: Re: Problem with Scrollbar in NGUI free (Yes, I'm aware free is "not supported")
Post by: ArenMook on March 06, 2014, 10:48:19 AM
NGUI Free... there is no such thing anymore. The download link for free version of NGUI points to the full version of NGUI 2.7.0. I'd upgrade if I were you :P
Title: Re: Problem with Scrollbar in NGUI free (Yes, I'm aware free is "not supported")
Post by: Devinish on March 06, 2014, 01:03:00 PM
NGUI Free... there is no such thing anymore. The download link for free version of NGUI points to the full version of NGUI 2.7.0. I'd upgrade if I were you :P

Upgrading fixed the issue.  Thanks for making a more recent version available Mike.