mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-26 14:55:39 +00:00
Improve handling of non-default script filenames
This commit is contained in:
parent
099dd4f1f3
commit
9ccaa6d3ea
118 changed files with 534 additions and 528 deletions
|
|
@ -2,7 +2,7 @@
|
|||
ModuleId="UI"
|
||||
VersionId="1"
|
||||
Description="Module that implements the menus for the game."
|
||||
ScriptFile="UI.tscript"
|
||||
ScriptFile="UI"
|
||||
CreateFunction="onCreate"
|
||||
DestroyFunction="onDestroy"
|
||||
Group="Game">
|
||||
|
|
|
|||
|
|
@ -30,55 +30,55 @@ function UI::initClient(%this)
|
|||
{
|
||||
//Load UI stuff
|
||||
//we need to load this because some of the menu profiles use the sounds here
|
||||
//%this.queueExec("./datablocks/guiSounds.tscript");
|
||||
//%this.queueExec("./datablocks/guiSounds." @ $TorqueScriptFileExtension);
|
||||
|
||||
//Profiles
|
||||
%this.queueExec("./scripts/profiles.tscript");
|
||||
%this.queueExec("./scripts/profiles." @ $TorqueScriptFileExtension);
|
||||
|
||||
//Now gui files
|
||||
%this.queueExec("./scripts/menuInputButtons.tscript");
|
||||
%this.queueExec("./scripts/menuInputButtons." @ $TorqueScriptFileExtension);
|
||||
|
||||
%this.queueExec("./guis/mainMenu.tscript");
|
||||
%this.queueExec("./guis/mainMenu." @ $TorqueScriptFileExtension);
|
||||
%this.queueExec("./guis/mainMenu.gui");
|
||||
|
||||
%this.queueExec("./guis/chooseLevelDlg.tscript");
|
||||
%this.queueExec("./guis/chooseLevelDlg." @ $TorqueScriptFileExtension);
|
||||
%this.queueExec("./guis/chooseLevelDlg.gui");
|
||||
|
||||
%this.queueExec("./guis/joinServerMenu.tscript");
|
||||
%this.queueExec("./guis/joinServerMenu." @ $TorqueScriptFileExtension);
|
||||
%this.queueExec("./guis/joinServerMenu.gui");
|
||||
|
||||
%this.queueExec("./guis/loadingGui.gui");
|
||||
|
||||
%this.queueExec("./guis/optionsMenu.tscript");
|
||||
%this.queueExec("./guis/optionsMenu." @ $TorqueScriptFileExtension);
|
||||
%this.queueExec("./guis/optionsMenu.gui");
|
||||
|
||||
%this.queueExec("./guis/pauseMenu.tscript");
|
||||
%this.queueExec("./guis/pauseMenu." @ $TorqueScriptFileExtension);
|
||||
%this.queueExec("./guis/pauseMenu.gui");
|
||||
|
||||
%this.queueExec("./guis/remapDlg.gui");
|
||||
%this.queueExec("./guis/remapConfirmDlg.gui");
|
||||
|
||||
%this.queueExec("./guis/profiler.tscript");
|
||||
%this.queueExec("./guis/profiler." @ $TorqueScriptFileExtension);
|
||||
%this.queueExec("./guis/profiler.gui");
|
||||
|
||||
%this.queueExec("./guis/netGraphGui.gui");
|
||||
%this.queueExec("./guis/RecordingsDlg.gui");
|
||||
|
||||
%this.queueExec("./guis/guiMusicPlayer.tscript");
|
||||
%this.queueExec("./guis/guiMusicPlayer." @ $TorqueScriptFileExtension);
|
||||
%this.queueExec("./guis/guiMusicPlayer.gui");
|
||||
|
||||
%this.queueExec("./guis/startupGui.tscript");
|
||||
%this.queueExec("./guis/startupGui." @ $TorqueScriptFileExtension);
|
||||
%this.queueExec("./guis/startupGui.gui");
|
||||
|
||||
// Load Editor Dialogs
|
||||
%this.queueExec("./guis/messageBoxDlg.gui");
|
||||
|
||||
//Load scripts
|
||||
%this.queueExec("./scripts/controlsMenu.tscript");
|
||||
%this.queueExec("./scripts/messageBoxes.tscript");
|
||||
%this.queueExec("./scripts/help.tscript");
|
||||
%this.queueExec("./scripts/cursors.tscript");
|
||||
%this.queueExec("./scripts/utility.tscript");
|
||||
%this.queueExec("./scripts/controlsMenu." @ $TorqueScriptFileExtension);
|
||||
%this.queueExec("./scripts/messageBoxes." @ $TorqueScriptFileExtension);
|
||||
%this.queueExec("./scripts/help." @ $TorqueScriptFileExtension);
|
||||
%this.queueExec("./scripts/cursors." @ $TorqueScriptFileExtension);
|
||||
%this.queueExec("./scripts/utility." @ $TorqueScriptFileExtension);
|
||||
}
|
||||
|
||||
function UI::onCreateClientConnection(%this){}
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ function OptionsMenu::apply(%this)
|
|||
if(%actionMap == GlobalActionMap.getId())
|
||||
continue;
|
||||
|
||||
%actionMap.save( %prefPath @ "/keybinds.tscript", %append );
|
||||
%actionMap.save( %prefPath @ "/keybinds." @ $TorqueScriptFileExtension, %append );
|
||||
|
||||
if(%append != true)
|
||||
%append = true;
|
||||
|
|
@ -107,7 +107,7 @@ function OptionsMenu::apply(%this)
|
|||
}
|
||||
|
||||
%prefPath = getPrefpath();
|
||||
export("$pref::*", %prefPath @ "/clientPrefs.tscript", false);
|
||||
export("$pref::*", %prefPath @ "/clientPrefs." @ $TorqueScriptFileExtension, false);
|
||||
}
|
||||
|
||||
function OptionsMenu::resetToDefaults(%this)
|
||||
|
|
@ -290,7 +290,7 @@ function OptionsMenu::applyDisplaySettings(%this)
|
|||
|
||||
echo("Exporting client prefs");
|
||||
%prefPath = getPrefpath();
|
||||
export("$pref::*", %prefPath @ "/clientPrefs.tscript", false);
|
||||
export("$pref::*", %prefPath @ "/clientPrefs." @ $TorqueScriptFileExtension, false);
|
||||
}
|
||||
|
||||
function OptionsMenu::populateGraphicsSettingsList(%this)
|
||||
|
|
@ -386,7 +386,7 @@ function OptionsMenu::applyGraphicsSettings(%this)
|
|||
|
||||
echo("Exporting client prefs");
|
||||
%prefPath = getPrefpath();
|
||||
export("$pref::*", %prefPath @ "/clientPrefs.tscript", false);
|
||||
export("$pref::*", %prefPath @ "/clientPrefs." @ $TorqueScriptFileExtension, false);
|
||||
}
|
||||
|
||||
function updateDisplaySettings()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue