Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: vijay on March 08, 2013, 12:31:35 AM

Title: Help needed- To make & implement another panel
Post by: vijay on March 08, 2013, 12:31:35 AM
Hi Guys.

Well, i had already made a Main Menu which has Start, Options & Quit Buttons. It is working fine.
Now i  got stuck with how to make another panel or window where Options details will be displayed when user presses Options button..
I also want to hide the Main Menu while options are displayed.
Pl. help me out, thanks in advance.
Title: Re: Help needed- To make & implement another panel
Post by: ArenMook on March 08, 2013, 03:49:42 AM
If only there was a menu example that comes with NGUI...

...oh wait. There is! :P
Title: Re: Help needed- To make & implement another panel
Post by: vijay on March 08, 2013, 05:49:14 AM
Thanks for the reply.

I have gone through the example menu which comes with NGUI.
But frankly speaking i am not getting the idea how it is made to work.
Help will be highly appreciated..............
Title: Re: Help needed- To make & implement another panel
Post by: thrasher66099 on March 08, 2013, 09:48:09 AM
I'd say your best bet is to make a new scene. Then when options is pressed load the new scene. This should keep their states as decoupled as possible plus it's an easy way to solve your problem.

Although this gets more complex if you have any non ngui elements in your main menu but in most game that probably won't happen.

You could always create another panel which you deactivate on Awake and then when the option button is clicked it tells whatever you use to manage the scene to reactive the options panel.
Title: Re: Help needed- To make & implement another panel
Post by: vijay on March 08, 2013, 10:44:09 AM
Thanks a lot........
Its working like a charm. :)