Author Topic: Problem with Scrollbar in NGUI free (Yes, I'm aware free is "not supported")  (Read 9325 times)

Devinish

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
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).  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.

zazery

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 26
    • View Profile
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.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
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.

Devinish

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
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. :-/

zazery

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 26
    • View Profile
Whoops completely misread that.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
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

Devinish

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
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.