Author Topic: NGUI vertical scroll view?  (Read 5750 times)

9to9

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
NGUI vertical scroll view?
« on: April 29, 2014, 11:13:55 PM »
Anyone have example for working vertical scroll view?, i try to use example from ngui for scrollview, but it doesnt work when i turn it to vertical scroll view, any help is appreciated, thx u

ENAY

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 248
    • View Profile
Re: NGUI vertical scroll view?
« Reply #1 on: April 30, 2014, 04:23:48 AM »
Well it does work, but it isn't going to magically scroll in another direction by simply clicking the tab because all the objects are still positioned horizontally.
After you change to vertical scroll view, Try moving some of the "Item 0" further up or down, then try and flick it.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI vertical scroll view?
« Reply #2 on: April 30, 2014, 05:14:30 PM »
Drag & drop example, quest log example -- both feature vertical scroll views.

9to9

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: NGUI vertical scroll view?
« Reply #3 on: May 02, 2014, 03:18:19 AM »
@ ENAY : Thank you for your response, its working now, but iam still working to make item is clickable

@ ArenMook : Thank for the example bro, uum any chance that vertical scroll view and horizontal scroll view is working together?do you have any example for this particular case?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI vertical scroll view?
« Reply #4 on: May 02, 2014, 09:10:42 AM »
What do you mean vertical and horizontal working together? Example 14 - Endless Scroll Views features both.

9to9

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: NGUI vertical scroll view?
« Reply #5 on: May 04, 2014, 10:48:48 PM »
What do you mean vertical and horizontal working together? Example 14 - Endless Scroll Views features both.

i mean we are just using one grid, can we achieve horizontal and vertical for just one grid ? i already look example 14 and its using different grid

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI vertical scroll view?
« Reply #6 on: May 05, 2014, 11:08:08 PM »
A grid can be set up to have a limited number of columns/rows, which will cause it to create new columns/rows as necessary, thus becoming 2D rather than 1D.

9to9

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: NGUI vertical scroll view?
« Reply #7 on: May 06, 2014, 12:30:42 AM »
A grid can be set up to have a limited number of columns/rows, which will cause it to create new columns/rows as necessary, thus becoming 2D rather than 1D.
ooow, ok i will try that, thank you :D 2x

9to9

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: NGUI vertical scroll view?
« Reply #8 on: May 06, 2014, 12:41:11 AM »
ooow, ok i will try that, thank you :D 2x
sorry, i cant find number of row and column in UIGrid script, i only find cell widht and length

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI vertical scroll view?
« Reply #9 on: May 06, 2014, 09:06:40 PM »
http://www.tasharen.com/ngui/docs/class_u_i_grid.html

"max per line" in the script. Column Limit / Row Limit (depends on your arrangement) in the current Pro version of NGUI.

9to9

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: NGUI vertical scroll view?
« Reply #10 on: May 07, 2014, 04:18:56 AM »
http://www.tasharen.com/ngui/docs/class_u_i_grid.html

"max per line" in the script. Column Limit / Row Limit (depends on your arrangement) in the current Pro version of NGUI.
ow ok, found it thank u very much