Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: nicloay on June 27, 2012, 01:50:19 AM
-
Hello,
Could you please explain me how to design dialogs.
Assume we have a main screen and button "save"
when you click button save it should ask you fileName.
This is very simple example, i understand that it can be performed just from code.
But I'm interesting, how to do that directly through UI (because screen can be more complex (like a file navigator and so on), i don't know how, but maybe create several cameras and so on.
And please point me to any "how to", how to make e.g. transition between main menu(start, load,config,exit) and e.g. config screen
thanks in advance.
-
Just any FYI: those topics could easily take a couple chapters of a book for a lower-level framework like NGUI. This isn't .NET with Common File Dialogs, so you'll have to build the entirety of the structure of the dialog and the logic driving it yourself. This isn't exactly a beginner task, so prepare to learn a lot and start pulling apart the NGUI example code until it starts to make sense.
That being said, maybe someone here has developed some scripts that they're willing to let you have to get the job started. I know I'm going to need file open/save dialogs for my app, but I fully expect to write them completely from the ground up. I'm saving that task for a while until I'm much more confident in my knowledge of both Unity and NGUI.
Good luck!
-
I understand that it can be a complex task,
But anyway maybe there is a good practice, or someone already experienced in dialog creation.
I have no any idea how to change one window to another. just know , how to create HUD, and game menu where each button load separated scene.
upd:
sorry.. looks like examples already contains menu and so on (http://www.tasharen.com/ngui/example8.html)
looks like this is advised approach.
Thanks everyone =)