Author Topic: Example 3 - Menu in Examples  (Read 4775 times)

catacomber

  • Guest
Example 3 - Menu in Examples
« 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.  :  )

« Last Edit: July 10, 2012, 10:04:48 PM by catacomber »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Example 3 - Menu in Examples
« Reply #1 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.

catacomber

  • Guest
Re: Example 3 - Menu in Examples
« Reply #2 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".

catacomber

  • Guest
Re: Example 3 - Menu in Examples
« Reply #3 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?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Example 3 - Menu in Examples
« Reply #4 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.

catacomber

  • Guest
Re: Example 3 - Menu in Examples
« Reply #5 on: July 10, 2012, 11:29:30 PM »
Now I understand. Thank you.  :  )