Author Topic: Scrollview: scroll in click  (Read 2597 times)

camelord

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
    • View Profile
Scrollview: scroll in click
« 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

NGUIJeffS

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 19
    • View Profile
Re: Scrollview: scroll in click
« Reply #1 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

camelord

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
    • View Profile
Re: Scrollview: scroll in click
« Reply #2 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,154
  • Toronto, Canada
    • View Profile
Re: Scrollview: scroll in click
« Reply #3 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.

camelord

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
    • View Profile
Re: Scrollview: scroll in click
« Reply #4 on: January 25, 2014, 06:41:57 AM »
ok thank you..