Hi @ll,
how can I manage to raise a completely other GUI from another? E.g. when I want to raise the main Menu from the Chat input console?
Raising a GUI from another
Project Status: Code architecture definition
6 Programmers, 1 Photographer, 1 Architect, 1 Game designer
6 Programmers, 1 Photographer, 1 Architect, 1 Game designer
Re: Raising a GUI from another
You'd need access to the GuiMan'sHaimi wrote:Hi @ll,
how can I manage to raise a completely other GUI from another? E.g. when I want to raise the main Menu from the Chat input console?
BringToFront()
method, but this method is not really meant to be called from a Gui.If you want to bring the main menu to front from the chat input console, then you should rather deactivate the chat input (as the sample implementation does), rather than attempting to force a "foreign" GUI to front.
If you have a GUI that opens another (chat-) GUI like a subdialog, then I'd suggest (and in fact, recommend) to have the chat dialog not as a separate GUI, as the current implementation in DeathMatch does, but rather as a full-screen, but regular window in the main GUI. This can be seen with several dialog windows in the MainMenu example GUI.
This way, you'd have maximum control over every aspect of all windows in that GUI.
Best regards,
Carsten
Carsten
Re: Raising a GUI from another
Question cleared
Project Status: Code architecture definition
6 Programmers, 1 Photographer, 1 Architect, 1 Game designer
6 Programmers, 1 Photographer, 1 Architect, 1 Game designer
Who is online
Users browsing this forum: No registered users and 10 guests