mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
Merge pull request #260 from Areloch/QueuedUI
Moves the BaseUI module to utilize the queuedExec function
This commit is contained in:
commit
6548ed1425
2 changed files with 42 additions and 37 deletions
|
|
@ -30,57 +30,55 @@ function UI::initClient(%this)
|
||||||
{
|
{
|
||||||
//Load UI stuff
|
//Load UI stuff
|
||||||
//we need to load this because some of the menu profiles use the sounds here
|
//we need to load this because some of the menu profiles use the sounds here
|
||||||
//exec("./datablocks/guiSounds.cs");
|
//%this.queueExec("./datablocks/guiSounds.cs");
|
||||||
|
|
||||||
//Profiles
|
//Profiles
|
||||||
exec("./scripts/profiles.cs");
|
%this.queueExec("/scripts/profiles.cs");
|
||||||
|
|
||||||
//Now gui files
|
//Now gui files
|
||||||
exec("./scripts/menuInputButtons.cs");
|
%this.queueExec("/scripts/menuInputButtons.cs");
|
||||||
|
|
||||||
exec("./guis/mainMenu.cs");
|
%this.queueExec("/guis/mainMenu.cs");
|
||||||
exec("./guis/mainMenu.gui");
|
%this.queueExec("/guis/mainMenu.gui");
|
||||||
|
|
||||||
exec("./guis/chooseLevelDlg.cs");
|
%this.queueExec("/guis/chooseLevelDlg.cs");
|
||||||
exec("./guis/chooseLevelDlg.gui");
|
%this.queueExec("/guis/chooseLevelDlg.gui");
|
||||||
|
|
||||||
exec("./guis/joinServerMenu.cs");
|
%this.queueExec("/guis/joinServerMenu.cs");
|
||||||
exec("./guis/joinServerMenu.gui");
|
%this.queueExec("/guis/joinServerMenu.gui");
|
||||||
|
|
||||||
exec("./guis/loadingGui.gui");
|
%this.queueExec("/guis/loadingGui.gui");
|
||||||
|
|
||||||
exec("./guis/optionsMenu.cs");
|
%this.queueExec("/guis/optionsMenu.cs");
|
||||||
exec("./guis/optionsMenu.gui");
|
%this.queueExec("/guis/optionsMenu.gui");
|
||||||
|
|
||||||
exec("./guis/pauseMenu.cs");
|
%this.queueExec("/guis/pauseMenu.cs");
|
||||||
exec("./guis/pauseMenu.gui");
|
%this.queueExec("/guis/pauseMenu.gui");
|
||||||
|
|
||||||
exec("./guis/remapDlg.gui");
|
%this.queueExec("/guis/remapDlg.gui");
|
||||||
exec("./guis/remapConfirmDlg.gui");
|
%this.queueExec("/guis/remapConfirmDlg.gui");
|
||||||
|
|
||||||
exec("./guis/profiler.cs");
|
%this.queueExec("/guis/profiler.cs");
|
||||||
exec("./guis/profiler.gui");
|
%this.queueExec("/guis/profiler.gui");
|
||||||
|
|
||||||
exec("./guis/netGraphGui.gui");
|
%this.queueExec("/guis/netGraphGui.gui");
|
||||||
exec("./guis/RecordingsDlg.gui");
|
%this.queueExec("/guis/RecordingsDlg.gui");
|
||||||
|
|
||||||
exec("./guis/guiMusicPlayer.cs");
|
%this.queueExec("/guis/guiMusicPlayer.cs");
|
||||||
exec("./guis/guiMusicPlayer.gui");
|
%this.queueExec("/guis/guiMusicPlayer.gui");
|
||||||
|
|
||||||
exec("./guis/startupGui.cs");
|
%this.queueExec("/guis/startupGui.cs");
|
||||||
exec("./guis/startupGui.gui");
|
%this.queueExec("/guis/startupGui.gui");
|
||||||
|
|
||||||
// Load Editor Dialogs
|
// Load Editor Dialogs
|
||||||
exec("./guis/messageBoxDlg.gui");
|
%this.queueExec("/guis/messageBoxDlg.gui");
|
||||||
|
|
||||||
//Load scripts
|
//Load scripts
|
||||||
exec("./scripts/controlsMenu.cs");
|
%this.queueExec("/scripts/controlsMenu.cs");
|
||||||
exec("./scripts/messageBoxes.cs");
|
%this.queueExec("/scripts/messageBoxes.cs");
|
||||||
exec("./scripts/help.cs");
|
%this.queueExec("/scripts/help.cs");
|
||||||
exec("./scripts/cursors.cs");
|
%this.queueExec("/scripts/cursors.cs");
|
||||||
exec("./scripts/utility.cs");
|
%this.queueExec("/scripts/utility.cs");
|
||||||
|
|
||||||
loadStartup();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function UI::onCreateClientConnection(%this){}
|
function UI::onCreateClientConnection(%this){}
|
||||||
|
|
|
||||||
|
|
@ -28,12 +28,19 @@ ModuleDatabase.LoadGroup( "Game" );
|
||||||
//Finally, initialize the client/server structure
|
//Finally, initialize the client/server structure
|
||||||
ModuleDatabase.LoadExplicit( "Core_ClientServer" );
|
ModuleDatabase.LoadExplicit( "Core_ClientServer" );
|
||||||
|
|
||||||
//If nothing else set a main menu, try to do so now
|
if(isFunction("loadStartup"))
|
||||||
if(!isObject(Canvas.getContent()))
|
|
||||||
{
|
{
|
||||||
%mainMenuGUI = ProjectSettings.value("UI/mainMenuName");
|
loadStartup();
|
||||||
if (isObject( %mainMenuGUI ))
|
}
|
||||||
Canvas.setContent( %mainMenuGUI );
|
else
|
||||||
|
{
|
||||||
|
//If nothing else set a main menu, try to do so now
|
||||||
|
if(!isObject(Canvas.getContent()))
|
||||||
|
{
|
||||||
|
%mainMenuGUI = ProjectSettings.value("UI/mainMenuName");
|
||||||
|
if (isObject( %mainMenuGUI ))
|
||||||
|
Canvas.setContent( %mainMenuGUI );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
closeSplashWindow();
|
closeSplashWindow();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue