Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: JoaoCosta on May 08, 2013, 02:13:08 AM
-
Hi there.
I am currently developing a game that needs a "Choose Country" drop down(something like the screens below) and I has wondering what has the best approach to do this.
And witch NGUI component is the best to accomplish this(Popup List or Popup Menu).
Hope you guys could help me out ;)
Android
(http://wptrafficanalyzer.in/blog/wp-content/uploads/2012/11/spinner_widget_item_selected_listener_country_list.png)
iOS
(http://assets.uxbooth.com/uploads/2011/03/LockedDropDown.png)
-
Scrollable popup list is something you have to do yourself. Create a panel, set up how it should be with the draggable panel scripts, scroll bar, etc, add a UIGrid to it with 1 column. Save it as a prefab. Create a child of the UIGrid, make it look like you need it to be, add a collider / UIDragPanelContents to it, and save it as a prefab as well.
When it's time to display your popup, instantiate your panel and add children to its grid object for each country.