Page 1 of 1

Raising a GUI from another

Posted: 2012-03-07, 14:49
by Haimi
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?

Re: Raising a GUI from another

Posted: 2012-03-07, 23:10
by Carsten
Haimi 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?
You'd need access to the GuiMan's 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. :up:

Re: Raising a GUI from another

Posted: 2012-03-08, 11:24
by Haimi
Question cleared :)