Author Topic: Dynamic scrolling grid: 3 problems  (Read 3231 times)

jeffpk

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 28
    • View Profile
Dynamic scrolling grid: 3 problems
« on: March 07, 2014, 01:21:38 PM »
Hi All:

I'm trying to build at run time what is basically the same as a selection grid in a scroll view in OnGUI.

I'm having 2 problems:

(1)  The images don't show until I resize the window
(2)  Id like the grid to anchor to the left side, currently it float right as I make the window bigger

As an added thing, id really like the grid an its images to scale down as i scale down the window.  I want a vertical list but ideally scaled to fit the horizontal dimension

Image attached below.




jeffpk

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 28
    • View Profile
Re: Dynamic scrolling grid: 3 problems
« Reply #1 on: March 07, 2014, 04:20:46 PM »
Well, I changed my design to better fit what I could get NGUI to do. 

Thats annoying but there you go.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Dynamic scrolling grid: 3 problems
« Reply #2 on: March 08, 2014, 12:31:17 PM »
Scroll views have an origin point you can set. If you want it to be on the left side, then choose it to be left.

Images not showing up makes me wonder what version of NGUI you have...

jeffpk

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 28
    • View Profile
Re: Dynamic scrolling grid: 3 problems
« Reply #3 on: March 18, 2014, 10:59:52 AM »
Thanks, i got it working  well enough.

As for version, unfortunately I have made some changes to NGUi internals so upgrading isn't easy right now.  In specific, I hacked in a soft cursor because I needed it to make NGUi respond correctly with the Oculus RIFT.