Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: apologue on August 30, 2012, 08:00:47 PM
-
Hi there,
We currently use a Popup List to provide navigation to different sections of an app. However the list has grown too long and we would like to instead create a button that pops up a window that contains a scrollview list of selectable buttons that are dynamically generated based on what area of the app they are in.
We would like the window to popup and cover the screen they start from. When they select an item the window will close and the information will be displayed for their selection.
What is the best way to achieve this?
Thank you in advance :)
-
New panel, offset -Z so that it's closer to the camera, with a background (sliced sprite or tiled sprite) covering a large area, with a collider on it so that it intercepts clicks.
-
Thanks! - What is the syntax for creating a button in c#? I have placed static elements on manually, but now am getting into generating them dynamically.
-
UICreateWidgetWizard.CreateButton does what you're looking for. Line 284 of UICreateWidgetWizard to be more precise.
-
Thank you very much for your help! This project is being released in the App Store soon and I'll be sure to post. It would not have come together without NGUI and this has been such a lifesaver :)