Author Topic: NGUI support scrollable Popup List?  (Read 3775 times)

kikuTano

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
NGUI support scrollable Popup List?
« on: December 27, 2013, 11:18:32 AM »
Hello,
i need to create a Popup List with a lot of items, but my popuplist is cutted by the bottom of the screen.. There is a way to create a Scrollable Poplist with NGUI or i should make my own class?

Thanks a lot.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI support scrollable Popup List?
« Reply #1 on: December 27, 2013, 04:22:25 PM »
Create a scroll view and a grid under your scroll view. Create a single child item for what your entries should look like (even a label will do). Make a prefab out of this item then remove it. Make a prefab out of the scroll view, then also remove it.

Don't use UIPopupList anymore. Instead, create a button. When the button is clicked, NGUITools.AddChild your scroll view prefab, and populate it by instantiating your item entries over and over, filling the list.