Gui problem when creating a gui in starter.fps
by Parausanu Emanuel Liviu · in Game Design and Creative Issues · 01/28/2008 (9:35 am) · 5 replies
I have created a new menu tha openes when i press escape in the starter.fps demo
and it works fine (in the game, openes when i press exit instead of that messagebox)
but when i exit the game and reenter the dialog doesn't open in the game and doesn't appear in the gui editor window
anyone knows what is the problem?
10x
and it works fine (in the game, openes when i press exit instead of that messagebox)
but when i exit the game and reenter the dialog doesn't open in the game and doesn't appear in the gui editor window
anyone knows what is the problem?
10x
#2
{
Canvas.pushDialog(IGMMenuDlg);
//Canvas.pushDialog(optionsDlg);
// if ( $Server::ServerType $= "SinglePlayer" )
// MessageBoxYesNo( "Quit Mission", "Exit from this Mission?", "disconnect();", "");
// else
// MessageBoxYesNo( "Disconnect", "Disconnect from the server?", "disconnect();", "");
}
IGMMenuDlg exists but it doesn't appear in the editor after i exit it
01/29/2008 (12:19 pm)
Function escapeFromGame(){
Canvas.pushDialog(IGMMenuDlg);
//Canvas.pushDialog(optionsDlg);
// if ( $Server::ServerType $= "SinglePlayer" )
// MessageBoxYesNo( "Quit Mission", "Exit from this Mission?", "disconnect();", "");
// else
// MessageBoxYesNo( "Disconnect", "Disconnect from the server?", "disconnect();", "");
}
IGMMenuDlg exists but it doesn't appear in the editor after i exit it
#3
01/29/2008 (12:32 pm)
Have you checked the log to make sure that there is not a typo keeping that gui from being recompiled and used? That's something that gets me occasionally.
#4
the problem is that IGMMenuDlg.gui exists in example\starter.fps\client\ui
01/29/2008 (2:01 pm)
PushDialog(): Invalid control: IGMMenuDlgthe problem is that IGMMenuDlg.gui exists in example\starter.fps\client\ui
#5
01/29/2008 (10:55 pm)
Is IGMMenuDlg.gui executed in client/init.cs?
Torque Owner ChrisG