Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: catacomber on July 10, 2012, 09:59:28 PM

Title: Example 3 - Menu in Examples
Post by: catacomber on July 10, 2012, 09:59:28 PM
Following Example 3 -- Menu------in Examples in NGUI--which I'm very happy with, by the way--------getting more and more comfortable and have some ideas about how to use some things with Game Objects in general in what I hope will be an entertaining way.  But first have to master the basics.

In that example, under Panel - Main is "Window".

Is that just a panel or game object renamed to "Window"?  I know my question is very basic but doing well generally with NGUI---just trying to understand.  :  )  Thanks. If I click around in NGUI, I don't see any option to add a "Window"---and come from ios background so that of course confuses me--to see something called "Window" and not know how to create it.  It looks like a renamed panel or game object to me to collect the children that are on it.  : )  But need to be sure because I'm making a main menu. Could make an adequate one but want to make one just like the one in the example but with my own background and buttons of course.  :  )

Title: Re: Example 3 - Menu in Examples
Post by: ArenMook on July 10, 2012, 10:51:10 PM
Game object names are irrelevant. Only the script attached to game objects matter. I simply named it "Window" because it's the root of that window.
Title: Re: Example 3 - Menu in Examples
Post by: catacomber on July 10, 2012, 10:57:11 PM
But what is the "it"--the root?  A panel? Or a game object. Imagine we are in the example and we have to create that window.

What do we do?  :  )

How did you create that object or whatever it is called "window".
Title: Re: Example 3 - Menu in Examples
Post by: catacomber on July 10, 2012, 11:05:54 PM
We are always in the same scene here right? Whatever pops up are windows in the same scene-----  :  )  I'm not moving to another scene for the options window so the "windows" are pop up windows sort of in the same scene?
Title: Re: Example 3 - Menu in Examples
Post by: ArenMook on July 10, 2012, 11:24:27 PM
I'm not sure I get your question. As I said "Window" is just a renamed game object.
Title: Re: Example 3 - Menu in Examples
Post by: catacomber on July 10, 2012, 11:29:30 PM
Now I understand. Thank you.  :  )