Browse Source

lotsa fixes.

Jeff Hutchinson 4 years ago
parent
commit
6f7fdca87d
100 changed files with 139 additions and 154 deletions
  1. 9 20
      Engine/source/T3D/gameBase/gameConnection.cpp
  2. 1 1
      Engine/source/console/console.h
  3. 1 1
      Engine/source/console/simEvents.cpp
  4. 1 0
      Templates/BaseGame/game/core/clientServer/scripts/server/levelInfo.tscript
  5. 3 0
      Templates/BaseGame/game/core/clientServer/scripts/server/levelLoad.tscript
  6. 1 1
      Templates/BaseGame/game/core/console/guis/console.gui
  7. 1 1
      Templates/BaseGame/game/core/console/scripts/console.tscript
  8. 1 1
      Templates/BaseGame/game/core/postFX/scripts/postFxManager.tscript
  9. 2 2
      Templates/BaseGame/game/core/utility/scripts/gameObjectManagement.tscript
  10. 3 1
      Templates/BaseGame/game/core/utility/scripts/helperFunctions.tscript
  11. 17 17
      Templates/BaseGame/game/core/utility/scripts/parseArgs.tscript
  12. 0 3
      Templates/BaseGame/game/core/utility/scripts/scene.tscript
  13. 1 1
      Templates/BaseGame/game/data/ExampleModule/GUIs/ExampleGUI.gui
  14. 1 1
      Templates/BaseGame/game/data/defaults.tscript
  15. 1 1
      Templates/BaseGame/game/data/gameUI/GUIs/playGui.gui
  16. 1 1
      Templates/BaseGame/game/data/ui/guis/IODropdownDlg.ed.gui
  17. 1 1
      Templates/BaseGame/game/data/ui/guis/RecordingsDlg.gui
  18. 1 1
      Templates/BaseGame/game/data/ui/guis/chooseLevelDlg.gui
  19. 1 1
      Templates/BaseGame/game/data/ui/guis/guiMusicPlayer.gui
  20. 1 1
      Templates/BaseGame/game/data/ui/guis/joinServerMenu.gui
  21. 1 1
      Templates/BaseGame/game/data/ui/guis/loadingGui.gui
  22. 1 1
      Templates/BaseGame/game/data/ui/guis/mainMenu.gui
  23. 1 1
      Templates/BaseGame/game/data/ui/guis/messageBoxDlg.gui
  24. 1 1
      Templates/BaseGame/game/data/ui/guis/netGraphGui.gui
  25. 1 1
      Templates/BaseGame/game/data/ui/guis/optionsDlg.gui
  26. 1 1
      Templates/BaseGame/game/data/ui/guis/optionsMenu.gui
  27. 5 12
      Templates/BaseGame/game/data/ui/guis/optionsMenu.tscript
  28. 1 1
      Templates/BaseGame/game/data/ui/guis/pauseMenu.gui
  29. 1 1
      Templates/BaseGame/game/data/ui/guis/profiler.gui
  30. 1 1
      Templates/BaseGame/game/data/ui/guis/profiler.tscript
  31. 1 1
      Templates/BaseGame/game/data/ui/guis/remapConfirmDlg.gui
  32. 1 1
      Templates/BaseGame/game/data/ui/guis/remapDlg.gui
  33. 1 1
      Templates/BaseGame/game/data/ui/guis/startupGui.gui
  34. 2 3
      Templates/BaseGame/game/main.tscript.in
  35. 1 1
      Templates/BaseGame/game/tools/MainEditor/guis/MainEditorWindow.gui
  36. 1 1
      Templates/BaseGame/game/tools/VPathEditor/GUI/VPathEditorToolbar.gui
  37. 1 1
      Templates/BaseGame/game/tools/VerveEditor/GUI/VerveEditor.gui
  38. 1 1
      Templates/BaseGame/game/tools/VerveEditor/GUI/VerveEditorGroupBuilder.gui
  39. 1 1
      Templates/BaseGame/game/tools/VerveEditor/GUI/VerveEditorImportPathNodes.gui
  40. 1 1
      Templates/BaseGame/game/tools/VerveEditor/GUI/VerveEditorPreferences.gui
  41. 1 1
      Templates/BaseGame/game/tools/assetBrowser/guis/AssetImportConfigEditor.gui
  42. 1 1
      Templates/BaseGame/game/tools/assetBrowser/guis/GameObjectCreator.gui
  43. 1 1
      Templates/BaseGame/game/tools/assetBrowser/guis/addModuleWindow.gui
  44. 1 1
      Templates/BaseGame/game/tools/assetBrowser/guis/addPackageWindow.gui
  45. 1 1
      Templates/BaseGame/game/tools/assetBrowser/guis/assetBrowser.gui
  46. 1 1
      Templates/BaseGame/game/tools/assetBrowser/guis/assetImport.gui
  47. 1 1
      Templates/BaseGame/game/tools/assetBrowser/guis/assetImportLog.gui
  48. 1 1
      Templates/BaseGame/game/tools/assetBrowser/guis/assetNameEdit.gui
  49. 1 1
      Templates/BaseGame/game/tools/assetBrowser/guis/assetPreviewButtonsTemplate.gui
  50. 1 1
      Templates/BaseGame/game/tools/assetBrowser/guis/createNewCollectionSet.gui
  51. 1 1
      Templates/BaseGame/game/tools/assetBrowser/guis/editAsset.gui
  52. 1 1
      Templates/BaseGame/game/tools/assetBrowser/guis/editModule.gui
  53. 1 1
      Templates/BaseGame/game/tools/assetBrowser/guis/looseFileAudit.gui
  54. 1 1
      Templates/BaseGame/game/tools/assetBrowser/guis/newAsset.gui
  55. 1 1
      Templates/BaseGame/game/tools/assetBrowser/guis/newComponentAsset.gui
  56. 1 1
      Templates/BaseGame/game/tools/assetBrowser/guis/newFolder.gui
  57. 1 1
      Templates/BaseGame/game/tools/assetBrowser/guis/selectModule.gui
  58. 1 1
      Templates/BaseGame/game/tools/assetBrowser/guis/selectPackage.gui
  59. 1 1
      Templates/BaseGame/game/tools/assetBrowser/guis/selectPath.gui
  60. 1 1
      Templates/BaseGame/game/tools/assetBrowser/scripts/templateFiles/guiFile.gui.template
  61. 1 1
      Templates/BaseGame/game/tools/componentEditor/gui/TypeMaskFieldGui.gui
  62. 1 1
      Templates/BaseGame/game/tools/componentEditor/gui/superToolTipDlg.ed.gui
  63. 1 1
      Templates/BaseGame/game/tools/convexEditor/convexEditorGui.gui
  64. 1 1
      Templates/BaseGame/game/tools/convexEditor/convexEditorSettingsTab.ed.gui
  65. 1 1
      Templates/BaseGame/game/tools/convexEditor/convexEditorToolbar.ed.gui
  66. 1 1
      Templates/BaseGame/game/tools/datablockEditor/DatablockEditorCreatePrompt.ed.gui
  67. 1 1
      Templates/BaseGame/game/tools/datablockEditor/DatablockEditorInspectorWindow.ed.gui
  68. 1 1
      Templates/BaseGame/game/tools/datablockEditor/DatablockEditorTreeWindow.ed.gui
  69. 1 1
      Templates/BaseGame/game/tools/debugger/gui/breakConditionDlg.ed.gui
  70. 1 1
      Templates/BaseGame/game/tools/debugger/gui/connectDlg.ed.gui
  71. 1 1
      Templates/BaseGame/game/tools/debugger/gui/debugger.ed.gui
  72. 1 1
      Templates/BaseGame/game/tools/debugger/gui/editWatchDlg.ed.gui
  73. 1 1
      Templates/BaseGame/game/tools/debugger/gui/findDlg.ed.gui
  74. 1 1
      Templates/BaseGame/game/tools/debugger/gui/watchDlg.ed.gui
  75. 1 1
      Templates/BaseGame/game/tools/decalEditor/decalEditorGui.gui
  76. 1 1
      Templates/BaseGame/game/tools/forestEditor/forestEditToolbar.ed.gui
  77. 1 1
      Templates/BaseGame/game/tools/forestEditor/forestEditorGui.gui
  78. 1 1
      Templates/BaseGame/game/tools/gui/EditorLoadingGui.gui
  79. 1 1
      Templates/BaseGame/game/tools/gui/EditorSettingsWindow.ed.gui
  80. 1 1
      Templates/BaseGame/game/tools/gui/GuiEaseEditDlg.ed.gui
  81. 1 1
      Templates/BaseGame/game/tools/gui/assimpImport.ed.gui
  82. 3 3
      Templates/BaseGame/game/tools/gui/colladaImport.ed.gui
  83. 1 1
      Templates/BaseGame/game/tools/gui/colorPicker.ed.gui
  84. 1 1
      Templates/BaseGame/game/tools/gui/cubemapEditor.gui
  85. 1 2
      Templates/BaseGame/game/tools/gui/fileDialogBase.ed.tscript
  86. 1 1
      Templates/BaseGame/game/tools/gui/guiObjectInspector.ed.gui
  87. 3 3
      Templates/BaseGame/game/tools/gui/guiObjectInspector.ed.tscript
  88. 3 1
      Templates/BaseGame/game/tools/gui/materialSelector.ed.gui
  89. 1 1
      Templates/BaseGame/game/tools/gui/messageBoxes/IODropdownDlg.ed.gui
  90. 1 1
      Templates/BaseGame/game/tools/gui/messageBoxes/messageBoxOK.ed.gui
  91. 1 1
      Templates/BaseGame/game/tools/gui/messageBoxes/messageBoxOKBuy.ed.gui
  92. 1 1
      Templates/BaseGame/game/tools/gui/messageBoxes/messageBoxOKCancel.ed.gui
  93. 1 1
      Templates/BaseGame/game/tools/gui/messageBoxes/messageBoxOKCancelDetailsDlg.ed.gui
  94. 1 1
      Templates/BaseGame/game/tools/gui/messageBoxes/messageBoxYesNo.ed.gui
  95. 1 1
      Templates/BaseGame/game/tools/gui/messageBoxes/messageBoxYesNoCancel.ed.gui
  96. 1 1
      Templates/BaseGame/game/tools/gui/messageBoxes/messagePopup.ed.gui
  97. 1 1
      Templates/BaseGame/game/tools/gui/postFxEditor.gui
  98. 1 1
      Templates/BaseGame/game/tools/gui/profilerGraph.gui
  99. 1 1
      Templates/BaseGame/game/tools/gui/renderTargetVisualizer.ed.gui
  100. 1 1
      Templates/BaseGame/game/tools/gui/saveChangesMBDlg.ed.gui

+ 9 - 20
Engine/source/T3D/gameBase/gameConnection.cpp

@@ -374,7 +374,7 @@ void GameConnection::onConnectionEstablished(bool isInitiator)
 
 
       const char *argv[MaxConnectArgs + 2];
       const char *argv[MaxConnectArgs + 2];
       argv[0] = "onConnect";
       argv[0] = "onConnect";
-      argv[1] = NULL; // Filled in later
+      argv[1] = getIdString();
       for(U32 i = 0; i < mConnectArgc; i++)
       for(U32 i = 0; i < mConnectArgc; i++)
          argv[i + 2] = mConnectArgv[i];
          argv[i + 2] = mConnectArgv[i];
       // NOTE: Need to fallback to Con::execute() as IMPLEMENT_CALLBACK does not 
       // NOTE: Need to fallback to Con::execute() as IMPLEMENT_CALLBACK does not 
@@ -494,33 +494,23 @@ bool GameConnection::readConnectRequest(BitStream *stream, const char **errorStr
       *errorString = "CR_INVALID_ARGS";
       *errorString = "CR_INVALID_ARGS";
       return false;
       return false;
    }
    }
-   ConsoleValue connectArgv[MaxConnectArgs + 3];
-   ConsoleValue connectArgvValue[MaxConnectArgs + 3];
-
-   // TODO(JTH): Fix pls.
-   AssertISV(false, "TODO: FIX CONSOLE VALUE");
-   return false;
 
 
-   /*
-   for(U32 i = 0; i < mConnectArgc+3; i++)
-   {
+   char buffer[256];
+   Net::addressToString(getNetAddress(), buffer);
 
 
-      connectArgv[i].value = &connectArgvValue[i];
-      connectArgvValue[i].init();
-   }
+   ConsoleValue connectArgv[MaxConnectArgs + 3];
 
 
    for(U32 i = 0; i < mConnectArgc; i++)
    for(U32 i = 0; i < mConnectArgc; i++)
    {
    {
       char argString[256];
       char argString[256];
       stream->readString(argString);
       stream->readString(argString);
       mConnectArgv[i] = dStrdup(argString);
       mConnectArgv[i] = dStrdup(argString);
-      connectArgv[i + 3] = mConnectArgv[i];
+      connectArgv[i + 3].setString(argString);
    }
    }
-   connectArgvValue[0].setStackStringValue("onConnectRequest");
-   connectArgvValue[1].setIntValue(0);
-   char buffer[256];
-   Net::addressToString(getNetAddress(), buffer);
-   connectArgvValue[2].setStackStringValue(buffer);
+
+   connectArgv[0].setStringTableEntry("onConnectRequest");
+   connectArgv[1].setInt(0);
+   connectArgv[2].setString(buffer);
 
 
    // NOTE: Cannot convert over to IMPLEMENT_CALLBACK as it has variable args.
    // NOTE: Cannot convert over to IMPLEMENT_CALLBACK as it has variable args.
    const char *ret = Con::execute(this, mConnectArgc + 3, connectArgv);
    const char *ret = Con::execute(this, mConnectArgc + 3, connectArgv);
@@ -530,7 +520,6 @@ bool GameConnection::readConnectRequest(BitStream *stream, const char **errorStr
       return false;
       return false;
    }
    }
    return true;
    return true;
-   */
 }
 }
 //----------------------------------------------------------------------------
 //----------------------------------------------------------------------------
 //----------------------------------------------------------------------------
 //----------------------------------------------------------------------------

+ 1 - 1
Engine/source/console/console.h

@@ -292,7 +292,7 @@ public:
 
 
    TORQUE_FORCEINLINE void setString(const char* val)
    TORQUE_FORCEINLINE void setString(const char* val)
    {
    {
-      setString(val, dStrlen(val));
+      setString(val, val != NULL ? dStrlen(val) : 0);
    }
    }
 
 
    TORQUE_FORCEINLINE void setString(const char* val, S32 len)
    TORQUE_FORCEINLINE void setString(const char* val, S32 len)

+ 1 - 1
Engine/source/console/simEvents.cpp

@@ -38,7 +38,7 @@ SimConsoleEvent::SimConsoleEvent(S32 argc, ConsoleValue *argv, bool onObject)
    {
    {
       if (argv)
       if (argv)
       {
       {
-         mArgv->setString(argv[i].getString());
+         mArgv[i].setString(argv[i].getString());
       }
       }
    }
    }
 }
 }

+ 1 - 0
Templates/BaseGame/game/core/clientServer/scripts/server/levelInfo.tscript

@@ -143,6 +143,7 @@ function parseMissionGroupForIds( %className, %childGroup )
    if(!isObject(%currentGroup))
    if(!isObject(%currentGroup))
       return "";
       return "";
       
       
+   %classIds = "";	  
    for(%i = 0; %i < (%currentGroup).getCount(); %i++)
    for(%i = 0; %i < (%currentGroup).getCount(); %i++)
    {      
    {      
       if( (%currentGroup).getObject(%i).getClassName() $= %className )
       if( (%currentGroup).getObject(%i).getClassName() $= %className )

+ 3 - 0
Templates/BaseGame/game/core/clientServer/scripts/server/levelLoad.tscript

@@ -193,6 +193,9 @@ function resetMission()
    
    
    clearServerPaths();
    clearServerPaths();
    
    
+   // TODO: Is this right?
+   %client = ClientGroup.getObject(0);
+
    // Inform the game code we're resetting.
    // Inform the game code we're resetting.
    %hasGameMode = callGamemodeFunction("onMissionReset", %client);
    %hasGameMode = callGamemodeFunction("onMissionReset", %client);
 }
 }

+ 1 - 1
Templates/BaseGame/game/core/console/guis/console.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(ConsoleDlg) {
+$guiContent = new GuiControl(ConsoleDlg) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 8";
    minExtent = "8 8";

+ 1 - 1
Templates/BaseGame/game/core/console/scripts/console.tscript

@@ -62,7 +62,7 @@ function ConsoleEntry::eval()
        && !startsWith(%text, "for(")
        && !startsWith(%text, "for(")
        && !startsWith(%text, "switch(")
        && !startsWith(%text, "switch(")
        && !startsWith(%text, "switch$("))
        && !startsWith(%text, "switch$("))
-      eval("%result = " @ %text);
+      %result = eval("return" SPC %text);
    else
    else
       eval(%text);
       eval(%text);
    $Con::warnVoidAssignment = %oldWarnVoidAssignment;
    $Con::warnVoidAssignment = %oldWarnVoidAssignment;

+ 1 - 1
Templates/BaseGame/game/core/postFX/scripts/postFxManager.tscript

@@ -59,7 +59,7 @@ function PostFXManager::loadPresetFile()
 {
 {
    //Show the dialog and set the flag
    //Show the dialog and set the flag
    getLoadFilename($PostFXManager::fileFilter, "PostFXManager::loadPresetHandler");
    getLoadFilename($PostFXManager::fileFilter, "PostFXManager::loadPresetHandler");
-   $PostFXManager::currentPreset = $Tools::FileDialogs::LastFilePath();
+   $PostFXManager::currentPreset = $Tools::FileDialogs::LastFilePath;
 }
 }
 
 
 function PostFXManager::loadPresetHandler( %filename )
 function PostFXManager::loadPresetHandler( %filename )

+ 2 - 2
Templates/BaseGame/game/core/utility/scripts/gameObjectManagement.tscript

@@ -15,7 +15,7 @@ function findGameObject(%name)
 	   
 	   
 	   //%assetName = AssetDatabase.getAssetName(%assetId);
 	   //%assetName = AssetDatabase.getAssetName(%assetId);
       
       
-        if(%assetId $= %name)
+      if(%assetId $= %name)
 		{
 		{
 		   %gameObjectAsset = AssetDatabase.acquireAsset(%assetId);
 		   %gameObjectAsset = AssetDatabase.acquireAsset(%assetId);
 
 
@@ -47,7 +47,7 @@ function spawnGameObject(%name, %addToScene)
          %go.setHidden(false);
          %go.setHidden(false);
          %go.setScopeAlways();
          %go.setScopeAlways();
          
          
-         if(%addToMissionGroup == true) //save instance when saving level
+         if(%addToScene == true) //save instance when saving level
             getScene(0).add(%go);
             getScene(0).add(%go);
          else // clear instance on level exit
          else // clear instance on level exit
             MissionCleanup.add(%go);
             MissionCleanup.add(%go);

+ 3 - 1
Templates/BaseGame/game/core/utility/scripts/helperFunctions.tscript

@@ -524,7 +524,9 @@ function loadDir(%dir)
 
 
 function loadDirs(%dirPath)
 function loadDirs(%dirPath)
 {
 {
-   %dirPath = nextToken(%dirPath, token, ";");
+   %dirPath = nextToken(%dirPath, "$token", ";");
+   %token = $token;
+
    if (%dirPath !$= "")
    if (%dirPath !$= "")
       loadDirs(%dirPath);
       loadDirs(%dirPath);
 
 

+ 17 - 17
Templates/BaseGame/game/core/utility/scripts/parseArgs.tscript

@@ -67,28 +67,28 @@ function parseArgs()
             $isDedicated = true;
             $isDedicated = true;
             $Server::Dedicated = true;
             $Server::Dedicated = true;
             enableWinConsole(true);
             enableWinConsole(true);
-            $argUsed[%i]++;
+            $argUsed[$i]++;
             
             
                   //--------------------
                   //--------------------
          case "-mission":
          case "-mission":
-            $argUsed[%i]++;
+            $argUsed[$i]++;
             if ($hasNextArg) 
             if ($hasNextArg) 
             {
             {
                $missionArg = $nextArg;
                $missionArg = $nextArg;
-               $argUsed[%i+1]++;
-               %i++;
+               $argUsed[$i+1]++;
+               $i++;
             }
             }
             else
             else
                error("Error: Missing Command Line argument. Usage: -mission <filename>");
                error("Error: Missing Command Line argument. Usage: -mission <filename>");
 
 
          //--------------------
          //--------------------
          case "-connect":
          case "-connect":
-            $argUsed[%i]++;
+            $argUsed[$i]++;
             if ($hasNextArg) 
             if ($hasNextArg) 
             {
             {
                $JoinGameAddress = $nextArg;
                $JoinGameAddress = $nextArg;
-               $argUsed[%i+1]++;
-               %i++;
+               $argUsed[$i+1]++;
+               $i++;
             }
             }
             else
             else
                error("Error: Missing Command Line argument. Usage: -connect <ip_address>");
                error("Error: Missing Command Line argument. Usage: -connect <ip_address>");
@@ -271,9 +271,9 @@ function parseArgs()
                {
                {
                   $levelToLoad = $nextArg @ " ";
                   $levelToLoad = $nextArg @ " ";
                   
                   
-                  for(%i = $i + 2; %i < $Game::argc; %i++)
+                  for(%j = $i + 2; %j < $Game::argc; %j++)
                   {
                   {
-                     $arg = $Game::argv[%i];
+                     $arg = $Game::argv[%j];
                      %hasExt = strpos($arg, ".mis");
                      %hasExt = strpos($arg, ".mis");
                      
                      
                      if(%hasExt == -1)
                      if(%hasExt == -1)
@@ -329,30 +329,30 @@ function parseArgs()
             
             
          case "-fullscreen":
          case "-fullscreen":
             $cliFullscreen = true;
             $cliFullscreen = true;
-            $argUsed[%i]++;
+            $argUsed[$i]++;
 
 
          case "-windowed":
          case "-windowed":
             $cliFullscreen = false;
             $cliFullscreen = false;
-            $argUsed[%i]++;
+            $argUsed[$i]++;
 
 
          case "-openGL":
          case "-openGL":
             $pref::Video::displayDevice = "OpenGL";
             $pref::Video::displayDevice = "OpenGL";
-            $argUsed[%i]++;
+            $argUsed[$i]++;
 
 
          case "-directX":
          case "-directX":
             $pref::Video::displayDevice = "D3D";
             $pref::Video::displayDevice = "D3D";
-            $argUsed[%i]++;
+            $argUsed[$i]++;
 
 
          case "-autoVideo":
          case "-autoVideo":
             $pref::Video::displayDevice = "";
             $pref::Video::displayDevice = "";
-            $argUsed[%i]++;
+            $argUsed[$i]++;
 
 
          case "-prefs":
          case "-prefs":
-            $argUsed[%i]++;
+            $argUsed[$i]++;
             if ($hasNextArg) {
             if ($hasNextArg) {
                exec($nextArg, true, true);
                exec($nextArg, true, true);
-               $argUsed[%i+1]++;
-               %i++;
+               $argUsed[$i+1]++;
+               $i++;
             }
             }
             else
             else
                error("Error: Missing Command Line argument. Usage: -prefs <path/script." @ $TorqueScriptFileExtension @ ">");
                error("Error: Missing Command Line argument. Usage: -prefs <path/script." @ $TorqueScriptFileExtension @ ">");

+ 0 - 3
Templates/BaseGame/game/core/utility/scripts/scene.tscript

@@ -1,8 +1,5 @@
 function callGamemodeFunction(%gameModeFuncName, %arg0, %arg1, %arg2, %arg3, %arg4, %arg5, %arg6)
 function callGamemodeFunction(%gameModeFuncName, %arg0, %arg1, %arg2, %arg3, %arg4, %arg5, %arg6)
 {
 {
-   if(%data !$= "")
-      %data = "\""@%data@"\"";
-      
    %activeSceneCount = getSceneCount();
    %activeSceneCount = getSceneCount();
       
       
    %hasGameMode = 0;
    %hasGameMode = 0;

+ 1 - 1
Templates/BaseGame/game/data/ExampleModule/GUIs/ExampleGUI.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(ExampleGUI) 
+$guiContent = new GuiControl(ExampleGUI) 
 {
 {
     position = "0 0";
     position = "0 0";
 	extent = "100 100";
 	extent = "100 100";

+ 1 - 1
Templates/BaseGame/game/data/defaults.tscript

@@ -25,7 +25,7 @@ $sceneLighting::cacheSize = 20000;
 $sceneLighting::purgeMethod = "lastCreated";
 $sceneLighting::purgeMethod = "lastCreated";
 $sceneLighting::cacheLighting = 1;
 $sceneLighting::cacheLighting = 1;
 
 
-$pref::Video::displayDevice = "D3D11";
+$pref::Video::displayDevice = ($platform $= "windows") ? "D3D11" : "OpenGL";
 $pref::Video::disableVerticalSync = 1;
 $pref::Video::disableVerticalSync = 1;
 $pref::Video::defaultFenceCount = 0;
 $pref::Video::defaultFenceCount = 0;
 $pref::Video::screenShotSession = 0;
 $pref::Video::screenShotSession = 0;

+ 1 - 1
Templates/BaseGame/game/data/gameUI/GUIs/playGui.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GameTSCtrl(PlayGui) {
+$guiContent = new GameTSCtrl(PlayGui) {
       cameraZRot = "0";
       cameraZRot = "0";
       forceFOV = "0";
       forceFOV = "0";
       reflectPriority = "1";
       reflectPriority = "1";

+ 1 - 1
Templates/BaseGame/game/data/ui/guis/IODropdownDlg.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(IODropdownDlg) {
+$guiContent = new GuiControl(IODropdownDlg) {
 	profile = "GuiDefaultProfile";
 	profile = "GuiDefaultProfile";
 	horizSizing = "width";
 	horizSizing = "width";
 	vertSizing = "height";
 	vertSizing = "height";

+ 1 - 1
Templates/BaseGame/game/data/ui/guis/RecordingsDlg.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(recordingsDlg) {
+$guiContent = new GuiControl(recordingsDlg) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 8";
    minExtent = "8 8";

+ 1 - 1
Templates/BaseGame/game/data/ui/guis/chooseLevelDlg.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(ChooseLevelDlg) {
+$guiContent = new GuiControl(ChooseLevelDlg) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 8";
    minExtent = "8 8";

+ 1 - 1
Templates/BaseGame/game/data/ui/guis/guiMusicPlayer.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(GuiMusicPlayer) {
+$guiContent = new GuiControl(GuiMusicPlayer) {
    isContainer = "1";
    isContainer = "1";
    Profile = "GuiWindowProfile";
    Profile = "GuiWindowProfile";
    HorizSizing = "right";
    HorizSizing = "right";

+ 1 - 1
Templates/BaseGame/game/data/ui/guis/joinServerMenu.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(JoinServerMenu) {
+$guiContent = new GuiControl(JoinServerMenu) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/data/ui/guis/loadingGui.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiChunkedBitmapCtrl(LoadingGui) {
+$guiContent = new GuiChunkedBitmapCtrl(LoadingGui) {
    bitmap = "data/ui/images/background-dark.png";
    bitmap = "data/ui/images/background-dark.png";
    useVariable = "0";
    useVariable = "0";
    tile = "0";
    tile = "0";

+ 1 - 1
Templates/BaseGame/game/data/ui/guis/mainMenu.gui

@@ -1,7 +1,7 @@
 exec( "tools/gui/profiles.ed.tscript" );
 exec( "tools/gui/profiles.ed.tscript" );
 
 
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiChunkedBitmapCtrl(MainMenuGui) {
+$guiContent = new GuiChunkedBitmapCtrl(MainMenuGui) {
    bitmap = "data/ui/images/background-dark.png";
    bitmap = "data/ui/images/background-dark.png";
    useVariable = "0";
    useVariable = "0";
    tile = "0";
    tile = "0";

+ 1 - 1
Templates/BaseGame/game/data/ui/guis/messageBoxDlg.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(MessageBoxDlg) {
+$guiContent = new GuiControl(MessageBoxDlg) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 8";
    minExtent = "8 8";

+ 1 - 1
Templates/BaseGame/game/data/ui/guis/netGraphGui.gui

@@ -73,7 +73,7 @@ new GuiControlProfile (NetGraphPacketLossProfile)
 };
 };
 
 
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(NetGraphGui) {
+$guiContent = new GuiControl(NetGraphGui) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/data/ui/guis/optionsDlg.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(OptionsDlg) {
+$guiContent = new GuiControl(OptionsDlg) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 8";
    minExtent = "8 8";

+ 1 - 1
Templates/BaseGame/game/data/ui/guis/optionsMenu.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(OptionsMenu) {
+$guiContent = new GuiControl(OptionsMenu) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 5 - 12
Templates/BaseGame/game/data/ui/guis/optionsMenu.tscript

@@ -276,11 +276,8 @@ function OptionsMenu::applyDisplaySettings(%this)
    // Change the device.
    // Change the device.
    if ( %newDevice !$= $pref::Video::displayDevice )
    if ( %newDevice !$= $pref::Video::displayDevice )
    {
    {
-      if ( %testNeedApply )
-         return true;
-         
       $pref::Video::displayDevice = %newDevice;
       $pref::Video::displayDevice = %newDevice;
-      if( %newAdapter !$= getDisplayDeviceInformation() )
+      if( %newDevice !$= getDisplayDeviceInformation() )
          MessageBoxOK( "Change requires restart", "Please restart the game for a display device change to take effect." );
          MessageBoxOK( "Change requires restart", "Please restart the game for a display device change to take effect." );
          
          
       $changingDisplayDevice = %newDevice;
       $changingDisplayDevice = %newDevice;
@@ -368,10 +365,7 @@ function OptionsMenu::applyGraphicsSettings(%this)
    // Check the anisotropic filtering.   
    // Check the anisotropic filtering.   
    %level = OptionsMenuSettingsList.getCurrentOption(10);
    %level = OptionsMenuSettingsList.getCurrentOption(10);
    if ( %level != $pref::Video::defaultAnisotropy )
    if ( %level != $pref::Video::defaultAnisotropy )
-   {
-      if ( %testNeedApply )
-         return true;
-                                 
+   {                     
       $pref::Video::defaultAnisotropy = %level;
       $pref::Video::defaultAnisotropy = %level;
    }
    }
 
 
@@ -418,9 +412,6 @@ function updateDisplaySettings()
    if (  %newMode !$= $pref::Video::mode || %newDeviceID != $pref::Video::deviceId ||
    if (  %newMode !$= $pref::Video::mode || %newDeviceID != $pref::Video::deviceId ||
          %newVsync != $pref::Video::disableVerticalSync || %newDeviceMode != $pref::Video::deviceMode)
          %newVsync != $pref::Video::disableVerticalSync || %newDeviceMode != $pref::Video::deviceMode)
    {
    {
-      if ( %testNeedApply )
-         return true;
-
       //****Edge Case Hack
       //****Edge Case Hack
       // If we're in fullscreen mode and switching to a different monitor at the
       // If we're in fullscreen mode and switching to a different monitor at the
       // same resolution and maintaining fullscreen, GFX...WindowTarget::resetMode()
       // same resolution and maintaining fullscreen, GFX...WindowTarget::resetMode()
@@ -433,7 +424,7 @@ function updateDisplaySettings()
          $pref::Video::deviceId = %newDeviceID;
          $pref::Video::deviceId = %newDeviceID;
          $pref::Video::deviceMode = $Video::ModeBorderless;
          $pref::Video::deviceMode = $Video::ModeBorderless;
          %tmpModeStr = Canvas.getMonitorMode(%newDeviceID, 0);
          %tmpModeStr = Canvas.getMonitorMode(%newDeviceID, 0);
-         Canvas.setVideoMode(%tmpModeStr.x, %tmpModeStr.y, false, 32, getWord(%tmpModeStr, $WORD::REFRESH), %aa);
+         Canvas.setVideoMode(%tmpModeStr.x, %tmpModeStr.y, false, 32, getWord(%tmpModeStr, $WORD::REFRESH), %newFSAA);
       }
       }
 
 
       $pref::Video::mode = %newMode;
       $pref::Video::mode = %newMode;
@@ -459,6 +450,8 @@ function OptionsMenu::populateAudioSettingsList(%this)
    %buffer = sfxGetAvailableDevices();
    %buffer = sfxGetAvailableDevices();
    %count = getRecordCount( %buffer );  
    %count = getRecordCount( %buffer );  
    %audioDriverList = "";
    %audioDriverList = "";
+   %audioProviderList = "";
+   %audioDeviceList = "";
     
     
    $currentAudioProvider = $currentAudioProvider $= "" ? $pref::SFX::provider : $currentAudioProvider;
    $currentAudioProvider = $currentAudioProvider $= "" ? $pref::SFX::provider : $currentAudioProvider;
    
    

+ 1 - 1
Templates/BaseGame/game/data/ui/guis/pauseMenu.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(PauseMenu) {
+$guiContent = new GuiControl(PauseMenu) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/data/ui/guis/profiler.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(ProfilerGui) {
+$guiContent = new GuiControl(ProfilerGui) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/data/ui/guis/profiler.tscript

@@ -101,7 +101,7 @@ function showMetics(%var)
 
 
 GlobalActionMap.bind(keyboard, "ctrl F2", showMetics);
 GlobalActionMap.bind(keyboard, "ctrl F2", showMetics);
 
 
-%guiContent = new GuiControl(FrameOverlayGui) {
+$guiContent = new GuiControl(FrameOverlayGui) {
 	profile = "GuiModelessDialogProfile";
 	profile = "GuiModelessDialogProfile";
 	horizSizing = "right";
 	horizSizing = "right";
 	vertSizing = "bottom";
 	vertSizing = "bottom";

+ 1 - 1
Templates/BaseGame/game/data/ui/guis/remapConfirmDlg.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(RemapConfirmDlg) {
+$guiContent = new GuiControl(RemapConfirmDlg) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 8";
    minExtent = "8 8";

+ 1 - 1
Templates/BaseGame/game/data/ui/guis/remapDlg.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(RemapDlg) {
+$guiContent = new GuiControl(RemapDlg) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 8";
    minExtent = "8 8";

+ 1 - 1
Templates/BaseGame/game/data/ui/guis/startupGui.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiFadeinBitmapCtrl(StartupGui) {
+$guiContent = new GuiFadeinBitmapCtrl(StartupGui) {
    canSaveDynamicFields = "0";
    canSaveDynamicFields = "0";
    Enabled = "1";
    Enabled = "1";
    isContainer = "1";
    isContainer = "1";

+ 2 - 3
Templates/BaseGame/game/main.tscript.in

@@ -37,9 +37,8 @@ else
    //If nothing else set a main menu, try to do so now
    //If nothing else set a main menu, try to do so now
    if(!isObject(Canvas.getContent()))
    if(!isObject(Canvas.getContent()))
    {
    {
-      %mainMenuGUI = ProjectSettings.value("UI/mainMenuName");
-      if (isObject( %mainMenuGUI ))
-         Canvas.setContent( %mainMenuGUI );
+      if (isObject( ProjectSettings.value("UI/mainMenuName") ))
+         Canvas.setContent( ProjectSettings.value("UI/mainMenuName") );
    }
    }
 }
 }
 
 

+ 1 - 1
Templates/BaseGame/game/tools/MainEditor/guis/MainEditorWindow.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiContainer(NewEditorGui) {
+$guiContent = new GuiContainer(NewEditorGui) {
    margin = "0 0 0 0";
    margin = "0 0 0 0";
    padding = "0 0 0 0";
    padding = "0 0 0 0";
    anchorTop = "1";
    anchorTop = "1";

+ 1 - 1
Templates/BaseGame/game/tools/VPathEditor/GUI/VPathEditorToolbar.gui

@@ -3,7 +3,7 @@
 // Copyright (C) - Violent Tulip
 // Copyright (C) - Violent Tulip
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
 
 
-%guiContent = new GuiControl(VPathEditorToolbar)
+$guiContent = new GuiControl(VPathEditorToolbar)
 {
 {
     canSaveDynamicFields = "0";
     canSaveDynamicFields = "0";
     internalName = "VPathEditorToolbar";
     internalName = "VPathEditorToolbar";

+ 1 - 1
Templates/BaseGame/game/tools/VerveEditor/GUI/VerveEditor.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(VerveEditorGui) {
+$guiContent = new GuiControl(VerveEditorGui) {
    canSaveDynamicFields = "0";
    canSaveDynamicFields = "0";
    Enabled = "1";
    Enabled = "1";
    isContainer = "1";
    isContainer = "1";

+ 1 - 1
Templates/BaseGame/game/tools/VerveEditor/GUI/VerveEditorGroupBuilder.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(VerveEditorGroupBuilderGUI) {
+$guiContent = new GuiControl(VerveEditorGroupBuilderGUI) {
    isContainer = "1";
    isContainer = "1";
    Profile = "GuiDefaultProfile";
    Profile = "GuiDefaultProfile";
    HorizSizing = "right";
    HorizSizing = "right";

+ 1 - 1
Templates/BaseGame/game/tools/VerveEditor/GUI/VerveEditorImportPathNodes.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(VerveEditorImportPathNodesGUI) {
+$guiContent = new GuiControl(VerveEditorImportPathNodesGUI) {
    isContainer = "1";
    isContainer = "1";
    Profile = "GuiDefaultProfile";
    Profile = "GuiDefaultProfile";
    HorizSizing = "right";
    HorizSizing = "right";

+ 1 - 1
Templates/BaseGame/game/tools/VerveEditor/GUI/VerveEditorPreferences.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(VerveEditorPreferenceGui) {
+$guiContent = new GuiControl(VerveEditorPreferenceGui) {
    canSaveDynamicFields = "0";
    canSaveDynamicFields = "0";
    isContainer = "1";
    isContainer = "1";
    Profile = "GuiDefaultProfile";
    Profile = "GuiDefaultProfile";

+ 1 - 1
Templates/BaseGame/game/tools/assetBrowser/guis/AssetImportConfigEditor.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(AssetImportConfigEditor) {
+$guiContent = new GuiControl(AssetImportConfigEditor) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/tools/assetBrowser/guis/GameObjectCreator.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(GameObjectCreator) {
+$guiContent = new GuiControl(GameObjectCreator) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/tools/assetBrowser/guis/addModuleWindow.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(AssetBrowser_AddModule) {
+$guiContent = new GuiControl(AssetBrowser_AddModule) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/tools/assetBrowser/guis/addPackageWindow.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(AssetBrowser_AddPackage) {
+$guiContent = new GuiControl(AssetBrowser_AddPackage) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/tools/assetBrowser/guis/assetBrowser.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(AssetBrowser) {
+$guiContent = new GuiControl(AssetBrowser) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/tools/assetBrowser/guis/assetImport.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(AssetImportCtrl) {
+$guiContent = new GuiControl(AssetImportCtrl) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/tools/assetBrowser/guis/assetImportLog.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(AssetBrowserImportLog) {
+$guiContent = new GuiControl(AssetBrowserImportLog) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/tools/assetBrowser/guis/assetNameEdit.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(AssetBrowser_assetNameEdit) {
+$guiContent = new GuiControl(AssetBrowser_assetNameEdit) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/tools/assetBrowser/guis/assetPreviewButtonsTemplate.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(AssetPreviewButtonsTemplate) {
+$guiContent = new GuiControl(AssetPreviewButtonsTemplate) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/tools/assetBrowser/guis/createNewCollectionSet.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(CreateNewCollectionSetCtrl) {
+$guiContent = new GuiControl(CreateNewCollectionSetCtrl) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/tools/assetBrowser/guis/editAsset.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(AssetBrowser_editAsset) {
+$guiContent = new GuiControl(AssetBrowser_editAsset) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/tools/assetBrowser/guis/editModule.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(AssetBrowser_editModule) {
+$guiContent = new GuiControl(AssetBrowser_editModule) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/tools/assetBrowser/guis/looseFileAudit.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(LooseFileAudit) {
+$guiContent = new GuiControl(LooseFileAudit) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/tools/assetBrowser/guis/newAsset.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(AssetBrowser_newAsset) {
+$guiContent = new GuiControl(AssetBrowser_newAsset) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/tools/assetBrowser/guis/newComponentAsset.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(AssetBrowser_newComponentAsset) {
+$guiContent = new GuiControl(AssetBrowser_newComponentAsset) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/tools/assetBrowser/guis/newFolder.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(AssetBrowser_newFolder) {
+$guiContent = new GuiControl(AssetBrowser_newFolder) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/tools/assetBrowser/guis/selectModule.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(AssetBrowser_SelectModule) {
+$guiContent = new GuiControl(AssetBrowser_SelectModule) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/tools/assetBrowser/guis/selectPackage.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(AssetBrowser_SelectPackage) {
+$guiContent = new GuiControl(AssetBrowser_SelectPackage) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/tools/assetBrowser/guis/selectPath.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(SelectAssetPath) {
+$guiContent = new GuiControl(SelectAssetPath) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/tools/assetBrowser/scripts/templateFiles/guiFile.gui.template

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(@@) 
+$guiContent = new GuiControl(@@) 
 {
 {
     position = "0 0";
     position = "0 0";
 	extent = "100 100";
 	extent = "100 100";

+ 1 - 1
Templates/BaseGame/game/tools/componentEditor/gui/TypeMaskFieldGui.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(TypeMaskFieldGui) {
+$guiContent = new GuiControl(TypeMaskFieldGui) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/tools/componentEditor/gui/superToolTipDlg.ed.gui

@@ -1,4 +1,4 @@
-%guiContent = new GuiControl(SuperTooltipDlg) {
+$guiContent = new GuiControl(SuperTooltipDlg) {
    canSaveDynamicFields = "0";
    canSaveDynamicFields = "0";
    Profile = "GuiTransparentProfileModeless";
    Profile = "GuiTransparentProfileModeless";
    class = "SuperTooltip";
    class = "SuperTooltip";

+ 1 - 1
Templates/BaseGame/game/tools/convexEditor/convexEditorGui.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiConvexEditorCtrl(ConvexEditorGui) {
+$guiContent = new GuiConvexEditorCtrl(ConvexEditorGui) {
    canSaveDynamicFields = "0";
    canSaveDynamicFields = "0";
    Enabled = "1";
    Enabled = "1";
    isContainer = "1";
    isContainer = "1";

+ 1 - 1
Templates/BaseGame/game/tools/convexEditor/convexEditorSettingsTab.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(ConvexEditorSettingsTab,EditorGuiGroup) {
+$guiContent = new GuiControl(ConvexEditorSettingsTab,EditorGuiGroup) {
    isContainer = "1";
    isContainer = "1";
    Profile = "ToolsGuiDefaultProfile";
    Profile = "ToolsGuiDefaultProfile";
    HorizSizing = "right";
    HorizSizing = "right";

+ 1 - 1
Templates/BaseGame/game/tools/convexEditor/convexEditorToolbar.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(convexEditorToolbar, EditorGuiGroup) {
+$guiContent = new GuiControl(convexEditorToolbar, EditorGuiGroup) {
    canSaveDynamicFields = "0";
    canSaveDynamicFields = "0";
    internalName = "";
    internalName = "";
    isContainer = "1";
    isContainer = "1";

+ 1 - 1
Templates/BaseGame/game/tools/datablockEditor/DatablockEditorCreatePrompt.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(DatablockEditorCreatePrompt,EditorGuiGroup) {
+$guiContent = new GuiControl(DatablockEditorCreatePrompt,EditorGuiGroup) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/tools/datablockEditor/DatablockEditorInspectorWindow.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl() {
+$guiContent = new GuiControl() {
    isContainer = "1";
    isContainer = "1";
    Profile = "ToolsGuiDefaultProfile";
    Profile = "ToolsGuiDefaultProfile";
    HorizSizing = "right";
    HorizSizing = "right";

+ 1 - 1
Templates/BaseGame/game/tools/datablockEditor/DatablockEditorTreeWindow.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl() {
+$guiContent = new GuiControl() {
    isContainer = "1";
    isContainer = "1";
    Profile = "ToolsGuiDefaultProfile";
    Profile = "ToolsGuiDefaultProfile";
    HorizSizing = "right";
    HorizSizing = "right";

+ 1 - 1
Templates/BaseGame/game/tools/debugger/gui/breakConditionDlg.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(DebuggerBreakConditionDlg, EditorGuiGroup) {
+$guiContent = new GuiControl(DebuggerBreakConditionDlg, EditorGuiGroup) {
    profile = "ToolsGuiDefaultProfile";
    profile = "ToolsGuiDefaultProfile";
    horizSizing = "right";
    horizSizing = "right";
    vertSizing = "bottom";
    vertSizing = "bottom";

+ 1 - 1
Templates/BaseGame/game/tools/debugger/gui/connectDlg.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(DebuggerConnectDlg, EditorGuiGroup) {
+$guiContent = new GuiControl(DebuggerConnectDlg, EditorGuiGroup) {
    profile = "ToolsGuiDefaultProfile";
    profile = "ToolsGuiDefaultProfile";
    horizSizing = "right";
    horizSizing = "right";
    vertSizing = "bottom";
    vertSizing = "bottom";

+ 1 - 1
Templates/BaseGame/game/tools/debugger/gui/debugger.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(DebuggerGui, EditorGuiGroup) {
+$guiContent = new GuiControl(DebuggerGui, EditorGuiGroup) {
    profile = "ToolsGuiWindowProfile";
    profile = "ToolsGuiWindowProfile";
    horizSizing = "right";
    horizSizing = "right";
    vertSizing = "bottom";
    vertSizing = "bottom";

+ 1 - 1
Templates/BaseGame/game/tools/debugger/gui/editWatchDlg.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(DebuggerEditWatchDlg, EditorGuiGroup) {
+$guiContent = new GuiControl(DebuggerEditWatchDlg, EditorGuiGroup) {
    profile = "ToolsGuiDefaultProfile";
    profile = "ToolsGuiDefaultProfile";
    horizSizing = "right";
    horizSizing = "right";
    vertSizing = "bottom";
    vertSizing = "bottom";

+ 1 - 1
Templates/BaseGame/game/tools/debugger/gui/findDlg.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(DebuggerFindDlg, EditorGuiGroup) {
+$guiContent = new GuiControl(DebuggerFindDlg, EditorGuiGroup) {
    profile = "ToolsGuiDefaultProfile";
    profile = "ToolsGuiDefaultProfile";
    horizSizing = "right";
    horizSizing = "right";
    vertSizing = "bottom";
    vertSizing = "bottom";

+ 1 - 1
Templates/BaseGame/game/tools/debugger/gui/watchDlg.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(DebuggerWatchDlg, EditorGuiGroup) {
+$guiContent = new GuiControl(DebuggerWatchDlg, EditorGuiGroup) {
    profile = "ToolsGuiDefaultProfile";
    profile = "ToolsGuiDefaultProfile";
    horizSizing = "right";
    horizSizing = "right";
    vertSizing = "bottom";
    vertSizing = "bottom";

+ 1 - 1
Templates/BaseGame/game/tools/decalEditor/decalEditorGui.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiDecalEditorCtrl(DecalEditorGui) {
+$guiContent = new GuiDecalEditorCtrl(DecalEditorGui) {
    canSaveDynamicFields = "0";
    canSaveDynamicFields = "0";
    Enabled = "1";
    Enabled = "1";
    isContainer = "1";
    isContainer = "1";

+ 1 - 1
Templates/BaseGame/game/tools/forestEditor/forestEditToolbar.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(ForestEditToolbar,EditorGuiGroup) {
+$guiContent = new GuiControl(ForestEditToolbar,EditorGuiGroup) {
    isContainer = "1";
    isContainer = "1";
    Profile = "ToolsGuiDefaultProfile";
    Profile = "ToolsGuiDefaultProfile";
    HorizSizing = "right";
    HorizSizing = "right";

+ 1 - 1
Templates/BaseGame/game/tools/forestEditor/forestEditorGui.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new ForestEditorCtrl(ForestEditorGui,EditorGuiGroup) {
+$guiContent = new ForestEditorCtrl(ForestEditorGui,EditorGuiGroup) {
    renderMissionArea = "0";
    renderMissionArea = "0";
    missionAreaFillColor = "255 0 0 20";
    missionAreaFillColor = "255 0 0 20";
    missionAreaFrameColor = "255 0 0 128";
    missionAreaFrameColor = "255 0 0 128";

+ 1 - 1
Templates/BaseGame/game/tools/gui/EditorLoadingGui.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(EditorLoadingGui,EditorGuiGroup) {
+$guiContent = new GuiControl(EditorLoadingGui,EditorGuiGroup) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/tools/gui/EditorSettingsWindow.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(EditorSettingsWindow,EditorGuiGroup) {
+$guiContent = new GuiControl(EditorSettingsWindow,EditorGuiGroup) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/tools/gui/GuiEaseEditDlg.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(GuiEaseEditDlg,EditorGuiGroup) {
+$guiContent = new GuiControl(GuiEaseEditDlg,EditorGuiGroup) {
    isContainer = "1";
    isContainer = "1";
    Profile = "ToolsGuiDefaultProfile";
    Profile = "ToolsGuiDefaultProfile";
    HorizSizing = "right";
    HorizSizing = "right";

+ 1 - 1
Templates/BaseGame/game/tools/gui/assimpImport.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(AssimpImportDlg,EditorGuiGroup) {
+$guiContent = new GuiControl(AssimpImportDlg,EditorGuiGroup) {
    isContainer = "1";
    isContainer = "1";
    Profile = "ToolsGuiDefaultProfile";
    Profile = "ToolsGuiDefaultProfile";
    HorizSizing = "width";
    HorizSizing = "width";

+ 3 - 3
Templates/BaseGame/game/tools/gui/colladaImport.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(ColladaImportDlg,EditorGuiGroup) {
+$guiContent = new GuiControl(ColladaImportDlg,EditorGuiGroup) {
    isContainer = "1";
    isContainer = "1";
    Profile = "ToolsGuiDefaultProfile";
    Profile = "ToolsGuiDefaultProfile";
    HorizSizing = "width";
    HorizSizing = "width";
@@ -1754,8 +1754,8 @@ function convertColladaModels(%pattern)
 
 
 function showImportDialog(%shapePath, %cmd)
 function showImportDialog(%shapePath, %cmd)
 {
 {
-   %this.path = %shapePath;
-   %this.cmd = %cmd;
+   ColladaImportDlg.path = %shapePath;
+   ColladaImportDlg.cmd = %cmd;
 
 
    if ( fileExt(%shapePath) $= ".dts" || fileExt(%shapePath) $= ".dsq" 
    if ( fileExt(%shapePath) $= ".dts" || fileExt(%shapePath) $= ".dsq" 
       || fileExt(%shapePath) $= ".dae" || fileExt(%shapePath) $= ".kmz" )
       || fileExt(%shapePath) $= ".dae" || fileExt(%shapePath) $= ".kmz" )

+ 1 - 1
Templates/BaseGame/game/tools/gui/colorPicker.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiColorPickerCtrl(ColorPickerDlg,EditorGuiGroup) {
+$guiContent = new GuiColorPickerCtrl(ColorPickerDlg,EditorGuiGroup) {
    displayMode = "Dropper"; // this makes the background visible
    displayMode = "Dropper"; // this makes the background visible
    actionOnMove = "1";
    actionOnMove = "1";
    position = "0 0";
    position = "0 0";

+ 1 - 1
Templates/BaseGame/game/tools/gui/cubemapEditor.gui

@@ -1,4 +1,4 @@
-%guiContent = new GuiControl(CubemapEditor) {
+$guiContent = new GuiControl(CubemapEditor) {
    canSaveDynamicFields = "0";
    canSaveDynamicFields = "0";
    Enabled = "1";
    Enabled = "1";
    isContainer = "1";
    isContainer = "1";

+ 1 - 2
Templates/BaseGame/game/tools/gui/fileDialogBase.ed.tscript

@@ -255,8 +255,7 @@ function FileDialogOkButton::onClick( %this )
 
 
    // Callback      
    // Callback      
    eval( %this.parent.SuccessCallback @ "(\"" @ %fullPath @"\");" );
    eval( %this.parent.SuccessCallback @ "(\"" @ %fullPath @"\");" );
-   
-   %parent.SuccessCallback = 0;
+   %this.parent.SuccessCallback = 0;
    
    
    //error("Ok");
    //error("Ok");
    
    

+ 1 - 1
Templates/BaseGame/game/tools/gui/guiObjectInspector.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiWindowCollapseCtrl() {
+$guiContent = new GuiWindowCollapseCtrl() {
    collapseGroup = "-1";
    collapseGroup = "-1";
    collapseGroupNum = "-1";
    collapseGroupNum = "-1";
    resizeWidth = "1";
    resizeWidth = "1";

+ 3 - 3
Templates/BaseGame/game/tools/gui/guiObjectInspector.ed.tscript

@@ -37,7 +37,7 @@ function inspectObject( %object )
    // Create a new object inspector window.
    // Create a new object inspector window.
    exec( "./guiObjectInspector.ed.gui" );
    exec( "./guiObjectInspector.ed.gui" );
    
    
-   if( !isObject( %guiContent) )
+   if( !isObject( $guiContent) )
    {
    {
       error( "InspectObject: failed to create GUI from 'guiObjectInspector.ed.gui'" );
       error( "InspectObject: failed to create GUI from 'guiObjectInspector.ed.gui'" );
       return;
       return;
@@ -45,9 +45,9 @@ function inspectObject( %object )
    
    
    // Initialize the inspector.
    // Initialize the inspector.
    
    
-   %guiContent.init( %object );
+   $guiContent.init( %object );
       
       
-   Canvas.getContent().add( %guiContent );
+   Canvas.getContent().add( $guiContent );
 }
 }
 
 
 //=============================================================================================
 //=============================================================================================

+ 3 - 1
Templates/BaseGame/game/tools/gui/materialSelector.ed.gui

@@ -778,6 +778,8 @@ function MaterialSelector::buildStaticFilters( %this )
    // if you want to add any more containers to staticFilterObjects, here's
    // if you want to add any more containers to staticFilterObjects, here's
    // where to do it
    // where to do it
    
    
+   %filterArray = MaterialSelector-->filterArray;
+
    %staticFilterContainer = new GuiControl (){
    %staticFilterContainer = new GuiControl (){
       new GuiContainer(){
       new GuiContainer(){
          profile = "ToolsGuiDefaultProfile";
          profile = "ToolsGuiDefaultProfile";
@@ -1366,7 +1368,7 @@ function MaterialSelector::loadMaterialFilters( %this )
 // create category and update current material if there is one
 // create category and update current material if there is one
 function MaterialSelector::createFilter( %this, %filter )
 function MaterialSelector::createFilter( %this, %filter )
 {
 {
-   if( %filter $= %existingFilters )
+   if( %filter $= "" )
    {
    {
       toolsMessageBoxOK( "Error", "Can not create blank filter.");
       toolsMessageBoxOK( "Error", "Can not create blank filter.");
       return;
       return;

+ 1 - 1
Templates/BaseGame/game/tools/gui/messageBoxes/IODropdownDlg.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(IODropdownDlg) {
+$guiContent = new GuiControl(IODropdownDlg) {
 	profile = "GuiDefaultProfile";
 	profile = "GuiDefaultProfile";
 	horizSizing = "width";
 	horizSizing = "width";
 	vertSizing = "height";
 	vertSizing = "height";

+ 1 - 1
Templates/BaseGame/game/tools/gui/messageBoxes/messageBoxOK.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(toolsMessageBoxOKDlg) {
+$guiContent = new GuiControl(toolsMessageBoxOKDlg) {
    profile = "GuiOverlayProfile";
    profile = "GuiOverlayProfile";
    horizSizing = "width";
    horizSizing = "width";
    vertSizing = "height";
    vertSizing = "height";

+ 1 - 1
Templates/BaseGame/game/tools/gui/messageBoxes/messageBoxOKBuy.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(toolsMessageBoxOKBuyDlg) {
+$guiContent = new GuiControl(toolsMessageBoxOKBuyDlg) {
 	profile = "ToolsGuiDefaultProfile";
 	profile = "ToolsGuiDefaultProfile";
 	horizSizing = "width";
 	horizSizing = "width";
 	vertSizing = "height";
 	vertSizing = "height";

+ 1 - 1
Templates/BaseGame/game/tools/gui/messageBoxes/messageBoxOKCancel.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(toolsMessageBoxOKCancelDlg) {
+$guiContent = new GuiControl(toolsMessageBoxOKCancelDlg) {
    profile = "GuiOverlayProfile";
    profile = "GuiOverlayProfile";
    horizSizing = "width";
    horizSizing = "width";
    vertSizing = "height";
    vertSizing = "height";

+ 1 - 1
Templates/BaseGame/game/tools/gui/messageBoxes/messageBoxOKCancelDetailsDlg.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(toolsMessageBoxOKCancelDetailsDlg) {
+$guiContent = new GuiControl(toolsMessageBoxOKCancelDetailsDlg) {
    canSaveDynamicFields = "0";
    canSaveDynamicFields = "0";
    Profile = "GuiOverlayProfile";
    Profile = "GuiOverlayProfile";
    HorizSizing = "width";
    HorizSizing = "width";

+ 1 - 1
Templates/BaseGame/game/tools/gui/messageBoxes/messageBoxYesNo.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(toolsMessageBoxYesNoDlg) {
+$guiContent = new GuiControl(toolsMessageBoxYesNoDlg) {
 	profile = "GuiOverlayProfile";
 	profile = "GuiOverlayProfile";
 	horizSizing = "width";
 	horizSizing = "width";
 	vertSizing = "height";
 	vertSizing = "height";

+ 1 - 1
Templates/BaseGame/game/tools/gui/messageBoxes/messageBoxYesNoCancel.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(toolsMessageBoxYesNoCancelDlg) {
+$guiContent = new GuiControl(toolsMessageBoxYesNoCancelDlg) {
    canSaveDynamicFields = "0";
    canSaveDynamicFields = "0";
    Profile = "GuiOverlayProfile";
    Profile = "GuiOverlayProfile";
    HorizSizing = "width";
    HorizSizing = "width";

+ 1 - 1
Templates/BaseGame/game/tools/gui/messageBoxes/messagePopup.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(MessagePopupDlg) {
+$guiContent = new GuiControl(MessagePopupDlg) {
    profile = "GuiDefaultProfile";
    profile = "GuiDefaultProfile";
    horizSizing = "width";
    horizSizing = "width";
    vertSizing = "height";
    vertSizing = "height";

+ 1 - 1
Templates/BaseGame/game/tools/gui/postFxEditor.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(postFXEditor) {
+$guiContent = new GuiControl(postFXEditor) {
    position = "0 0";
    position = "0 0";
    extent = "1920 1200";
    extent = "1920 1200";
    minExtent = "8 8";
    minExtent = "8 8";

+ 1 - 1
Templates/BaseGame/game/tools/gui/profilerGraph.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(ProfilerGraphGui) {
+$guiContent = new GuiControl(ProfilerGraphGui) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/tools/gui/renderTargetVisualizer.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(RenderTargetVisualizer) {
+$guiContent = new GuiControl(RenderTargetVisualizer) {
    position = "0 0";
    position = "0 0";
    extent = "1024 768";
    extent = "1024 768";
    minExtent = "8 2";
    minExtent = "8 2";

+ 1 - 1
Templates/BaseGame/game/tools/gui/saveChangesMBDlg.ed.gui

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
 //--- OBJECT WRITE BEGIN ---
-%guiContent = new GuiControl(toolsMessageBoxSaveChangesDlg, EditorGuiGroup) {
+$guiContent = new GuiControl(toolsMessageBoxSaveChangesDlg, EditorGuiGroup) {
    canSaveDynamicFields = "0";
    canSaveDynamicFields = "0";
    Profile = "ToolsGuiDefaultProfile";
    Profile = "ToolsGuiDefaultProfile";
    HorizSizing = "width";
    HorizSizing = "width";

Some files were not shown because too many files changed in this diff