Author Topic: Help needed- To make & implement another panel  (Read 2480 times)

vijay

  • Guest
Help needed- To make & implement another panel
« 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Help needed- To make & implement another panel
« Reply #1 on: March 08, 2013, 03:49:42 AM »
If only there was a menu example that comes with NGUI...

...oh wait. There is! :P

vijay

  • Guest
Re: Help needed- To make & implement another panel
« Reply #2 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..............

thrasher66099

  • Guest
Re: Help needed- To make & implement another panel
« Reply #3 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.

vijay

  • Guest
Re: Help needed- To make & implement another panel
« Reply #4 on: March 08, 2013, 10:44:09 AM »
Thanks a lot........
Its working like a charm. :)