Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: camelord on January 23, 2014, 04:45:42 PM

Title: Scrollview: scroll in click
Post by: camelord on January 23, 2014, 04:45:42 PM
Hi

i created a scrollview with a grid as child and a few widgets in the grid. I also added a button (outside of the scrollview).
See attachment how it looks like.

I want to scroll from one griditem to the next clicking on the button.. How can i do this please?

camelord
Title: Re: Scrollview: scroll in click
Post by: NGUIJeffS on January 23, 2014, 09:28:52 PM
Check out this tutorial. It touches on scroll views, and toward the end grids.

http://www.youtube.com/watch?annotation_id=annotation_1679152271&feature=iv&src_vid=OT0hTxjjkY4&v=B66xhIvYF00 (ftp://www.youtube.com/watch?annotation_id=annotation_1679152271&feature=iv&src_vid=OT0hTxjjkY4&v=B66xhIvYF00)
Title: Re: Scrollview: scroll in click
Post by: camelord on January 24, 2014, 03:30:49 PM
hi again,

the Link does work, sorry.

To make my question more concrete:
It does not need to be a scroll view, i just thought it would be the best base to implement scrolling on tap (or click).

The user must not scroll by swiping, just by clicking the button..

camelord
Title: Re: Scrollview: scroll in click
Post by: ArenMook on January 24, 2014, 11:53:08 PM
Check the documentation page for NGUI. That video is the first link -- NGUI 3.0.7 Tutorial. It covers how to make scroll views, click to center on items, and many other things.
Title: Re: Scrollview: scroll in click
Post by: camelord on January 25, 2014, 06:41:57 AM
ok thank you..