mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
Merge pull request #513 from Azaezel/alpha40/templateReview
template index file review
This commit is contained in:
commit
afc0d3a1c9
4 changed files with 20 additions and 27 deletions
|
|
@ -33,7 +33,7 @@ function ExampleModule::onDestroy(%this)
|
||||||
function ExampleModule::initServer(%this)
|
function ExampleModule::initServer(%this)
|
||||||
{
|
{
|
||||||
//This script contains our ExampleGameMode logic
|
//This script contains our ExampleGameMode logic
|
||||||
%this.queueExec("./scripts/ExampleGamemodeScript." @ $TorqueScriptFileExtension);
|
%this.queueExec("./scripts/ExampleGamemodeScript");
|
||||||
}
|
}
|
||||||
|
|
||||||
//This is called when a game session server is actually created so the game may be played. It's called
|
//This is called when a game session server is actually created so the game may be played. It's called
|
||||||
|
|
@ -74,13 +74,13 @@ function ExampleModule::initClient(%this)
|
||||||
|
|
||||||
//client scripts
|
//client scripts
|
||||||
//Here, we exec out keybind scripts so the player is able to move when they get into a game
|
//Here, we exec out keybind scripts so the player is able to move when they get into a game
|
||||||
%this.queueExec("./scripts/default.keybinds." @ $TorqueScriptFileExtension);
|
%this.queueExec("./scripts/default.keybinds");
|
||||||
|
|
||||||
%prefPath = getPrefpath();
|
%prefPath = getPrefpath();
|
||||||
if(isFile(%prefPath @ "/keybinds." @ $TorqueScriptFileExtension))
|
if(isFile(%prefPath @ "/keybinds." @ $TorqueScriptFileExtension))
|
||||||
exec(%prefPath @ "/keybinds." @ $TorqueScriptFileExtension);
|
exec(%prefPath @ "/keybinds." @ $TorqueScriptFileExtension);
|
||||||
|
|
||||||
%this.queueExec("./scripts/inputCommands." @ $TorqueScriptFileExtension);
|
%this.queueExec("./scripts/inputCommands");
|
||||||
}
|
}
|
||||||
|
|
||||||
//This is called when a game session client successfuly connects to a game server.
|
//This is called when a game session client successfuly connects to a game server.
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ function gameUI::initClient(%this)
|
||||||
{
|
{
|
||||||
//guis
|
//guis
|
||||||
%this.queueExec("./GUIs/playGui.gui");
|
%this.queueExec("./GUIs/playGui.gui");
|
||||||
%this.queueExec("./GUIs/playGui." @ $TorqueScriptFileExtension);
|
%this.queueExec("./GUIs/playGui");
|
||||||
}
|
}
|
||||||
|
|
||||||
function gameUI::onCreateClientConnection(%this){}
|
function gameUI::onCreateClientConnection(%this){}
|
||||||
|
|
|
||||||
|
|
@ -30,55 +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
|
||||||
//%this.queueExec("./datablocks/guiSounds." @ $TorqueScriptFileExtension);
|
//%this.queueExec("./datablocks/guiSounds");
|
||||||
|
|
||||||
//Profiles
|
//Profiles
|
||||||
%this.queueExec("./scripts/profiles." @ $TorqueScriptFileExtension);
|
%this.queueExec("./scripts/profiles");
|
||||||
|
|
||||||
//Now gui files
|
//Now gui files
|
||||||
%this.queueExec("./scripts/menuInputButtons." @ $TorqueScriptFileExtension);
|
%this.queueExec("./scripts/menuInputButtons");
|
||||||
|
|
||||||
%this.queueExec("./guis/mainMenu." @ $TorqueScriptFileExtension);
|
%this.queueExec("./guis/mainMenu");
|
||||||
%this.queueExec("./guis/mainMenu.gui");
|
%this.queueExec("./guis/mainMenu.gui");
|
||||||
|
|
||||||
%this.queueExec("./guis/chooseLevelDlg." @ $TorqueScriptFileExtension);
|
%this.queueExec("./guis/chooseLevelDlg");
|
||||||
%this.queueExec("./guis/chooseLevelDlg.gui");
|
%this.queueExec("./guis/chooseLevelDlg.gui");
|
||||||
|
|
||||||
%this.queueExec("./guis/joinServerMenu." @ $TorqueScriptFileExtension);
|
%this.queueExec("./guis/joinServerMenu");
|
||||||
%this.queueExec("./guis/joinServerMenu.gui");
|
%this.queueExec("./guis/joinServerMenu.gui");
|
||||||
|
|
||||||
%this.queueExec("./guis/loadingGui.gui");
|
%this.queueExec("./guis/loadingGui.gui");
|
||||||
|
|
||||||
%this.queueExec("./guis/optionsMenu." @ $TorqueScriptFileExtension);
|
%this.queueExec("./guis/optionsMenu");
|
||||||
%this.queueExec("./guis/optionsMenu.gui");
|
%this.queueExec("./guis/optionsMenu.gui");
|
||||||
|
|
||||||
%this.queueExec("./guis/pauseMenu." @ $TorqueScriptFileExtension);
|
%this.queueExec("./guis/pauseMenu");
|
||||||
%this.queueExec("./guis/pauseMenu.gui");
|
%this.queueExec("./guis/pauseMenu.gui");
|
||||||
|
|
||||||
%this.queueExec("./guis/remapDlg.gui");
|
%this.queueExec("./guis/remapDlg.gui");
|
||||||
%this.queueExec("./guis/remapConfirmDlg.gui");
|
%this.queueExec("./guis/remapConfirmDlg.gui");
|
||||||
|
|
||||||
%this.queueExec("./guis/profiler." @ $TorqueScriptFileExtension);
|
%this.queueExec("./guis/profiler");
|
||||||
%this.queueExec("./guis/profiler.gui");
|
%this.queueExec("./guis/profiler.gui");
|
||||||
|
|
||||||
%this.queueExec("./guis/netGraphGui.gui");
|
%this.queueExec("./guis/netGraphGui.gui");
|
||||||
%this.queueExec("./guis/RecordingsDlg.gui");
|
%this.queueExec("./guis/RecordingsDlg.gui");
|
||||||
|
|
||||||
%this.queueExec("./guis/guiMusicPlayer." @ $TorqueScriptFileExtension);
|
%this.queueExec("./guis/guiMusicPlayer");
|
||||||
%this.queueExec("./guis/guiMusicPlayer.gui");
|
%this.queueExec("./guis/guiMusicPlayer.gui");
|
||||||
|
|
||||||
%this.queueExec("./guis/startupGui." @ $TorqueScriptFileExtension);
|
%this.queueExec("./guis/startupGui");
|
||||||
%this.queueExec("./guis/startupGui.gui");
|
%this.queueExec("./guis/startupGui.gui");
|
||||||
|
|
||||||
// Load Editor Dialogs
|
// Load Editor Dialogs
|
||||||
%this.queueExec("./guis/messageBoxDlg.gui");
|
%this.queueExec("./guis/messageBoxDlg.gui");
|
||||||
|
|
||||||
//Load scripts
|
//Load scripts
|
||||||
%this.queueExec("./scripts/controlsMenu." @ $TorqueScriptFileExtension);
|
%this.queueExec("./scripts/controlsMenu");
|
||||||
%this.queueExec("./scripts/messageBoxes." @ $TorqueScriptFileExtension);
|
%this.queueExec("./scripts/messageBoxes");
|
||||||
%this.queueExec("./scripts/help." @ $TorqueScriptFileExtension);
|
%this.queueExec("./scripts/help");
|
||||||
%this.queueExec("./scripts/cursors." @ $TorqueScriptFileExtension);
|
%this.queueExec("./scripts/cursors");
|
||||||
%this.queueExec("./scripts/utility." @ $TorqueScriptFileExtension);
|
%this.queueExec("./scripts/utility");
|
||||||
}
|
}
|
||||||
|
|
||||||
function UI::onCreateClientConnection(%this){}
|
function UI::onCreateClientConnection(%this){}
|
||||||
|
|
|
||||||
|
|
@ -21,13 +21,6 @@
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
// A very simple music player.
|
// A very simple music player.
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------
|
|
||||||
// Prerequisites.
|
|
||||||
|
|
||||||
if( !isObject( GuiMusicPlayer ) )
|
|
||||||
exec( "./guiMusicPlayer.gui" );
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------
|
||||||
// Preferences.
|
// Preferences.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue