Kaynağa Gözat

more torquescript template fixes.

Jeff Hutchinson 4 yıl önce
ebeveyn
işleme
b2bbd771f6
54 değiştirilmiş dosya ile 122 ekleme ve 99 silme
  1. 1 1
      Templates/BaseGame/game/tools/VPathEditor/GUI/VPathEditorPalette.gui
  2. 1 0
      Templates/BaseGame/game/tools/VerveEditor/Scripts/Controller/VControllerProperties.tscript
  3. 1 1
      Templates/BaseGame/game/tools/VerveEditor/Scripts/Groups/VDirectorGroup.tscript
  4. 1 1
      Templates/BaseGame/game/tools/VerveEditor/Scripts/Groups/VSceneObjectGroup.tscript
  5. 1 1
      Templates/BaseGame/game/tools/VerveEditor/Scripts/Groups/VSpawnSphereGroup.tscript
  6. 18 0
      Templates/BaseGame/game/tools/assetBrowser/scripts/assetBrowser.tscript
  7. 3 0
      Templates/BaseGame/game/tools/assetBrowser/scripts/assetImport.tscript
  8. 2 0
      Templates/BaseGame/game/tools/assetBrowser/scripts/assetImportConfig.tscript
  9. 1 1
      Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/component.tscript
  10. 2 0
      Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/cpp.tscript
  11. 1 1
      Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/level.tscript
  12. 1 2
      Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/script.tscript
  13. 3 0
      Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/stateMachine.tscript
  14. 1 1
      Templates/BaseGame/game/tools/assetBrowser/scripts/directoryHandling.tscript
  15. 6 2
      Templates/BaseGame/game/tools/assetBrowser/scripts/editAsset.tscript
  16. 12 5
      Templates/BaseGame/game/tools/componentEditor/interface/materialFieldType.tscript
  17. 1 1
      Templates/BaseGame/game/tools/componentEditor/interface/stateMachineField.tscript
  18. 2 2
      Templates/BaseGame/game/tools/componentEditor/interface/typeMaskFieldType.tscript
  19. 3 0
      Templates/BaseGame/game/tools/componentEditor/scripts/componentEditor.ed.tscript
  20. 1 1
      Templates/BaseGame/game/tools/convexEditor/convexEditorSidebarGui.gui
  21. 3 3
      Templates/BaseGame/game/tools/datablockEditor/datablockEditorUndo.tscript
  22. 1 1
      Templates/BaseGame/game/tools/debugger/scripts/debugger.ed.tscript
  23. 0 8
      Templates/BaseGame/game/tools/decalEditor/decalEditorGui.gui
  24. 1 1
      Templates/BaseGame/game/tools/forestEditor/brushes.tscript
  25. 3 2
      Templates/BaseGame/game/tools/gui/editorSettingsWindow.ed.tscript
  26. 1 1
      Templates/BaseGame/game/tools/gui/fieldTypes/assetDependencies.tscript
  27. 1 1
      Templates/BaseGame/game/tools/gui/fieldTypes/buttonField.tscript
  28. 3 3
      Templates/BaseGame/game/tools/gui/fieldTypes/listField.tscript
  29. 1 1
      Templates/BaseGame/game/tools/gui/fieldTypes/range.tscript
  30. 2 0
      Templates/BaseGame/game/tools/guiEditor/scripts/guiEditorProfiles.ed.tscript
  31. 4 0
      Templates/BaseGame/game/tools/guiEditor/scripts/guiEditorUndo.ed.tscript
  32. 0 15
      Templates/BaseGame/game/tools/materialEditor/gui/guiMaterialPropertiesWindow.ed.gui
  33. 2 1
      Templates/BaseGame/game/tools/materialEditor/scripts/materialEditor.ed.tscript
  34. 1 1
      Templates/BaseGame/game/tools/meshRoadEditor/meshRoadEditorGui.tscript
  35. 4 24
      Templates/BaseGame/game/tools/particleEditor/ParticleEditor.ed.gui
  36. 1 1
      Templates/BaseGame/game/tools/roadEditor/roadEditorGui.tscript
  37. 3 1
      Templates/BaseGame/game/tools/shapeEditor/scripts/shapeEditor.ed.tscript
  38. 1 1
      Templates/BaseGame/game/tools/worldEditor/gui/ToolsPaletteGroups/ConvexEditorPalette.ed.gui
  39. 1 1
      Templates/BaseGame/game/tools/worldEditor/gui/ToolsPaletteGroups/DecalEditorPalette.ed.gui
  40. 1 1
      Templates/BaseGame/game/tools/worldEditor/gui/ToolsPaletteGroups/ForestEditorPalette.ed.gui
  41. 1 1
      Templates/BaseGame/game/tools/worldEditor/gui/ToolsPaletteGroups/MeshRoadEditorPalette.ed.gui
  42. 1 1
      Templates/BaseGame/game/tools/worldEditor/gui/ToolsPaletteGroups/NavEditorPalette.ed.gui
  43. 1 1
      Templates/BaseGame/game/tools/worldEditor/gui/ToolsPaletteGroups/RiverEditorPalette.ed.gui
  44. 1 1
      Templates/BaseGame/game/tools/worldEditor/gui/ToolsPaletteGroups/RoadEditorPalette.ed.gui
  45. 1 1
      Templates/BaseGame/game/tools/worldEditor/gui/ToolsPaletteGroups/ShapeEditorPalette.ed.gui
  46. 1 1
      Templates/BaseGame/game/tools/worldEditor/gui/ToolsPaletteGroups/TerrainEditPalette.ed.gui
  47. 1 1
      Templates/BaseGame/game/tools/worldEditor/gui/ToolsPaletteGroups/TerrainPainterPalette.ed.gui
  48. 1 1
      Templates/BaseGame/game/tools/worldEditor/gui/ToolsPaletteGroups/WorldEditorPalette.ed.gui
  49. 6 0
      Templates/BaseGame/game/tools/worldEditor/gui/ToolsPaletteGroups/init.tscript
  50. 3 0
      Templates/BaseGame/game/tools/worldEditor/gui/guiTerrainExportGui.gui
  51. 5 0
      Templates/BaseGame/game/tools/worldEditor/gui/guiTerrainImportGui.gui
  52. 1 1
      Templates/BaseGame/game/tools/worldEditor/scripts/EditorGui.ed.tscript
  53. 2 3
      Templates/BaseGame/game/tools/worldEditor/scripts/ManageSFXParametersWindow.ed.tscript
  54. 1 0
      Templates/BaseGame/game/tools/worldEditor/scripts/menuHandlers.ed.tscript

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

@@ -3,7 +3,7 @@
 // Copyright (C) - Violent Tulip
 //-----------------------------------------------------------------------------
 
-%paletteId = new GuiControl(VPathEditorPalette) {
+$paletteId = new GuiControl(VPathEditorPalette) {
    canSaveDynamicFields = "0";
    Enabled = "1";
    isContainer = "1";

+ 1 - 0
Templates/BaseGame/game/tools/VerveEditor/Scripts/Controller/VControllerProperties.tscript

@@ -59,6 +59,7 @@ function VControllerPropertyList::InspectObject( %this, %object )
     }
     
     %dataFieldCount = %object.getDataFieldCount();
+    %dataFieldList = "";
     for ( %i = 0; %i < %dataFieldCount; %i++ )
     {
         // Add To List.

+ 1 - 1
Templates/BaseGame/game/tools/VerveEditor/Scripts/Groups/VDirectorGroup.tscript

@@ -22,7 +22,7 @@ function VDirectorGroup::PopulateBuildStack( %this, %stack )
 
 function VDirectorGroup::ResolveBuildStack( %this, %stack )
 {
-    Parent::ResolveBuildStack( %this, %stack, %groupObject );
+    Parent::ResolveBuildStack( %this, %stack );
     
     // Find the Track Toggle.
     %directorTrackCheckBox = %stack.findObjectByInternalName( "DirectorTrackToggle", true );

+ 1 - 1
Templates/BaseGame/game/tools/VerveEditor/Scripts/Groups/VSceneObjectGroup.tscript

@@ -62,7 +62,7 @@ function VSceneObjectGroup::PopulateBuildStack( %this, %stack )
 
 function VSceneObjectGroup::ResolveBuildStack( %this, %stack )
 {
-    Parent::ResolveBuildStack( %this, %stack, %groupObject );
+    Parent::ResolveBuildStack( %this, %stack );
     
     // Fetch the Controller.
     %controller = %this.getRoot();

+ 1 - 1
Templates/BaseGame/game/tools/VerveEditor/Scripts/Groups/VSpawnSphereGroup.tscript

@@ -31,7 +31,7 @@ function VSceneObjectGroup::PopulateBuildStack( %this, %stack )
 
 function VSceneObjectGroup::ResolveBuildStack( %this, %stack )
 {
-    VGroup::ResolveBuildStack( %this, %stack, %groupObject );
+    VGroup::ResolveBuildStack( %this, %stack );
     
     // Fetch the Controller.
     %controller = %this.getRoot();

+ 18 - 0
Templates/BaseGame/game/tools/assetBrowser/scripts/assetBrowser.tscript

@@ -242,6 +242,8 @@ function AssetBrowser::selectAsset( %this, %asset )
       //eval("materialEd_previewMaterial." @ %propertyField @ " = " @ %value @ ";");
       if( AssetBrowser.returnType $= "name" )
       {
+         // TODO!
+         %name = "";
          eval( "" @ AssetBrowser.selectCallback @ "(" @ %name  @ ");");
       }
       else
@@ -663,6 +665,7 @@ function AssetBrowser::loadDirectories( %this )
    //Remove any modules that have no assets if we have that filter on
    if(%this.onlyShowModulesWithAssets)
    {
+      %modulesList = ModuleDatabase.findModules();
       for(%i=0; %i < getWordCount(%modulesList); %i++)
       {
          %moduleName = getWord(%modulesList, %i).ModuleId;
@@ -905,6 +908,8 @@ function AssetBrowser::addCreatorClass(%this, %class, %name, %buildfunc)
    if ( %name $= "" )
       %name = %class;
       
+   // TODO
+   %group = "";   
    if ( %this.currentCreatorGroup !$= "" && %group $= "" )
       %group = %this.currentCreatorGroup;
    
@@ -1048,6 +1053,13 @@ function AssetBrowser::toggleTagFilterPopup(%this)
 		//now, add the asset's category
 		%assetType = AssetDatabase.getAssetCategory(%assetId);
 		
+      // TODO?
+      %text = "";
+      %var = "";
+      %cmd = "";
+      %textLength = strlen(%text);
+      // end todo
+
 		%checkBox = new GuiCheckBoxCtrl()
 		{
 			canSaveDynamicFields = "0";
@@ -1108,6 +1120,9 @@ function AssetBrowser::reImportAsset(%this)
          //if(%assetType $= "ImageAsset")
          //   %filters = "";
             
+         //TODO
+         %currentFile = "";
+
          %dlg = new OpenFileDialog()
          {
             Filters = "(All Files (*.*)|*.*|";
@@ -1412,10 +1427,13 @@ function AssetBrowser::doRebuildAssetArray(%this)
    AssetBrowser-->assetList.deleteAllObjects();
    AssetPreviewArray.empty();
 
+   // uhh?? I just added global schenanagins here to make this work
+   %assetArray = $AssetBrowser::AssetArray;
    if(isObject(%assetArray))
       %assetArray.delete();
       
    %assetArray = new ArrayObject();
+   $AssetBrowser::AssetArray = %assetArray;
    
    //First, Query for our assets
    %assetQuery = new AssetQuery();

+ 3 - 0
Templates/BaseGame/game/tools/assetBrowser/scripts/assetImport.tscript

@@ -277,6 +277,9 @@ function AssetBrowser::onDropFolder(%this, %filePath)
       //First, we wanna scan to see if we have modules to contend with. If we do, we'll just plunk them in wholesale
       //and not process their contents.
       
+      // TODO
+      %fileExt = "";
+
       //If not modules, it's likely an art pack or other mixed files, so we'll import them as normal
       if( (%fileExt $= ".png") || (%fileExt $= ".jpg") || (%fileExt $= ".bmp") || (%fileExt $= ".dds") )
          %this.importAssetListArray.add("ImageAsset", %filePath);

+ 2 - 0
Templates/BaseGame/game/tools/assetBrowser/scripts/assetImportConfig.tscript

@@ -142,6 +142,7 @@ function ImportAssetOptionsWindow::editImportSettings(%this, %assetItem)
    %filePath = %assetItem.filePath;
    %assetName = %assetItem.assetName;
    %assetConfigObj = %assetItem.importConfig;
+   %optionsObj = %assetItem.optionsObj; // TODO IS THIS RIGHT
    
    ImportOptionsList.startGroup("Asset");
    ImportOptionsList.addField("AssetName", "Asset Name", "string", "", "NewAsset", "", %assetItem);
@@ -405,6 +406,7 @@ function ImportAssetConfigEditorWindow::editConfig(%this)
 
 function ImportAssetConfigEditorWindow::deleteConfig(%this)
 {
+   %configList = ImportAssetConfigSettingsList;
    for(%i=0; %i < %configList.count(); %i++)
    {
       

+ 1 - 1
Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/component.tscript

@@ -110,7 +110,7 @@ function AssetBrowser::renameComponentAsset(%this, %assetDef, %newAssetId, %orig
          %line = %file.readLine();
          %line = trim( %line );
          
-         %editedFileContents = %editedFileContents @ strreplace(%line, %originalAssetName, %newName) @ "\n";
+         %editedFileContents = %editedFileContents @ strreplace(%line, %originalName, %newName) @ "\n";
       }
       
       %file.close();

+ 2 - 0
Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/cpp.tscript

@@ -37,6 +37,8 @@ function AssetBrowser::createCpp(%this)
    
    TamlWrite(%asset, %tamlpath);*/
    
+   %tamlpath = %assetPath @ %assetName @ ".asset.taml";
+
    %moduleDef = ModuleDatabase.findModule(%moduleName, 1);
 	AssetDatabase.addDeclaredAsset(%moduleDef, %tamlpath);
 

+ 1 - 1
Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/level.tscript

@@ -137,7 +137,7 @@ function AssetBrowser::buildLevelAssetPreview(%this, %assetDef, %previewData)
    %previewData.assetPath = %assetDef.getLevelPath();
    %previewData.doubleClickCommand = "schedule( 1, 0, \"EditorOpenMission\", "@%assetDef@");";
    
-   %levelPreviewImage = %assetDesc.PreviewImage;
+   %levelPreviewImage = %assetDef.PreviewImage;
          
    if(isFile(%levelPreviewImage))
       %previewData.previewImage = %levelPreviewImage;

+ 1 - 2
Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/script.tscript

@@ -49,8 +49,7 @@ function AssetBrowser::importScriptAsset(%this, %assetId)
 
 function AssetBrowser::onScriptAssetEditorDropped(%this, %assetDef, %position)
 {
-   if(!isObject(%dropTarget))
-      return;
+
 }
 
 //Renames the asset

+ 3 - 0
Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/stateMachine.tscript

@@ -86,6 +86,9 @@ function AssetBrowser::editStateMachineAsset(%this, %assetDef)
 
 function AssetBrowser::duplicateStateMachineAsset(%this, %assetDef)
 {
+   // TODO:
+   %targetModule = "";
+
    //Check if we have a target module, if not we need to select one
    if(%targetModule $= "")
    {

+ 1 - 1
Templates/BaseGame/game/tools/assetBrowser/scripts/directoryHandling.tscript

@@ -325,7 +325,7 @@ function directoryHandler::copyFolder(%this, %fromFolder, %toFolder)
       if(!%success)
          error("copyProjectFolder() - failed to copy file: " @ %file);
       
-      %file = findNextFileMultiExpr( %fullPath @ "/*.*" );
+      %file = findNextFileMultiExpr( %fromFolder @ "/*.*" );
    }
    
    //do sub directories

+ 6 - 2
Templates/BaseGame/game/tools/assetBrowser/scripts/editAsset.tscript

@@ -143,6 +143,10 @@ function AssetBrowser::performRenameAsset(%this, %originalAssetName, %newName)
    //Update the selection to immediately jump to the new asset
    AssetBrowser-->filterTree.clearSelection();
    %ModuleItem = AssetBrowser-->filterTree.findItemByName(%moduleName);
+
+   // TODO is this correct?
+   %assetType = %ModuleItem.getClassName();
+
    %assetTypeId = AssetBrowser-->filterTree.findChildItemByName(%ModuleItem, %assetType);
    
    AssetBrowser-->filterTree.selectItem(%assetTypeId);
@@ -236,9 +240,9 @@ function moveAssetFile(%assetDef, %destinationPath)
    %assetPath = makeFullPath(AssetDatabase.getAssetFilePath(%assetDef.getAssetId()));
    %assetFilename = fileName(%assetPath);
    
-   %newAssetPath = %destination @ "/" @ %assetFilename;
+   %newAssetPath = %destinationPath @ "/" @ %assetFilename;
    
-   %copiedSuccess = pathCopy(%assetPath, %destination @ "/" @ %assetFilename);
+   %copiedSuccess = pathCopy(%assetPath, %destinationPath @ "/" @ %assetFilename);
    
    if(!%copiedSuccess)
       return "";

+ 12 - 5
Templates/BaseGame/game/tools/componentEditor/interface/materialFieldType.tscript

@@ -9,6 +9,13 @@ function GuiInspectorGroup::buildMaterialField(%this, %fieldName, %fieldLabel, %
    if(%currentMaterial $= "" || %currentMaterial == 0)
 	  %currentMaterial = %fieldDefaultVal;
       
+   // TODO?
+   %matName = "";
+   %component = "";
+   %material = "";
+   %accessor = "";
+   %precision = "";
+
    %container = new GuiControl() {
       canSaveDynamicFields = "0";
       Profile = "EditorContainerProfile";
@@ -20,7 +27,7 @@ function GuiInspectorGroup::buildMaterialField(%this, %fieldName, %fieldLabel, %
       canSave = "0";
       Visible = "1";
       hovertime = "100";
-      tooltip = %tooltip;
+      tooltip = "";// %tooltip;
       tooltipProfile = "EditorToolTipProfile";
    };
 
@@ -35,7 +42,7 @@ function GuiInspectorGroup::buildMaterialField(%this, %fieldName, %fieldLabel, %
       canSave = "0";
       Visible = "1";
       hovertime = "100";
-      tooltip = %tooltip;
+      tooltip = ""; //%tooltip;
       tooltipProfile = "EditorToolTipProfile";
       text = %fieldName;
       maxLength = "1024";
@@ -57,7 +64,7 @@ function GuiInspectorGroup::buildMaterialField(%this, %fieldName, %fieldLabel, %
          text = %currentMaterial;
       };
    };
-   
+
    %previewButton = new GuiBitmapButtonCtrl(){
       internalName = %matName;
       HorizSizing = "right";
@@ -121,7 +128,7 @@ function GuiInspectorGroup::buildMaterialField(%this, %fieldName, %fieldLabel, %
       canSave = "0";
       Visible = "1";
       hovertime = "100";
-      tooltip = %tooltip;
+      tooltip = ""; //%tooltip;
       tooltipProfile = "EditorToolTipProfile";
       text = "Mapped to:" SPC %material.mapTo;
       maxLength = "1024";
@@ -140,7 +147,7 @@ function GuiInspectorGroup::buildMaterialField(%this, %fieldName, %fieldLabel, %
       canSave = "0";
       Visible = "1";
       hovertime = "100";
-      tooltip = %tooltip;
+      tooltip = "";// %tooltip;
       tooltipProfile = "EditorToolTipProfile";
       maxLength = "1024";
       historySize = "0";

+ 1 - 1
Templates/BaseGame/game/tools/componentEditor/interface/stateMachineField.tscript

@@ -201,7 +201,7 @@ function stateMachineFieldList::onSelect(%this)
    %index = %this.getParent().fieldID;
    
    %oldValue = %this.behavior.stateMachine.getValue(%index);
-   %this.behavior.stateMachine.setValue(%fieldType SPC %oldValue.y);
+   %this.behavior.stateMachine.setValue(%this.fieldType SPC %oldValue.y);
    
    %this.getParent().add(%fieldCtrl);
 }

+ 2 - 2
Templates/BaseGame/game/tools/componentEditor/interface/typeMaskFieldType.tscript

@@ -13,7 +13,7 @@ function GuiInspectorComponentGroup::buildTypeMaskField(%this, %component, %fiel
       canSave = "0";
       Visible = "1";
       hovertime = "100";
-      tooltip = %tooltip;
+      tooltip = "";//%tooltip;
       tooltipProfile = "EditorToolTipProfile";
    };
 
@@ -28,7 +28,7 @@ function GuiInspectorComponentGroup::buildTypeMaskField(%this, %component, %fiel
       canSave = "0";
       Visible = "1";
       hovertime = "100";
-      tooltip = %tooltip;
+      tooltip = "";//%tooltip;
       tooltipProfile = "EditorToolTipProfile";
       text = %fieldName;
       maxLength = "1024";

+ 3 - 0
Templates/BaseGame/game/tools/componentEditor/scripts/componentEditor.ed.tscript

@@ -159,6 +159,9 @@ function QuickEditComponentList::onHotTrackItem( %this, %itemID )
       {
          %name = getField(%componentObj.getComponentField(%i), 0);
 
+         // TODO:
+         %description = "";
+
          SuperTooltipDlg.addParam(%name, %description @ "\n");
       }
       %position = %this.getGlobalPosition();

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

@@ -1,5 +1,5 @@
 //--- OBJECT WRITE BEGIN ---
-%guiContnt = new GuiControl(ConvexEditorOptions)
+$guiContnt = new GuiControl(ConvexEditorOptions)
 {
    position = "0 0";
    extent = "800 600";

+ 3 - 3
Templates/BaseGame/game/tools/datablockEditor/datablockEditorUndo.tscript

@@ -79,7 +79,7 @@ function ActionCreateDatablock::redo( %this )
    %this.editor.selectDatablock( %db );
    %this.editor.flagInspectorAsDirty( true );
    
-   UnlistedDatablocks.remove( %id );
+   UnlistedDatablocks.remove( %db );
 }
 
 //---------------------------------------------------------------------------------------------
@@ -99,7 +99,7 @@ function ActionCreateDatablock::undo( %this )
    %this.dbName = %db.name;
    %db.name = "";
    
-   UnlistedDatablocks.add( %this.db );
+   UnlistedDatablocks.add( %db );
 }
 
 //=============================================================================================
@@ -155,5 +155,5 @@ function ActionDeleteDatablock::undo( %this )
    
    // Remove from unlisted.
    
-   UnlistedDatablocks.remove( %id );
+   UnlistedDatablocks.remove( %db );
 }

+ 1 - 1
Templates/BaseGame/game/tools/debugger/scripts/debugger.ed.tscript

@@ -430,7 +430,7 @@ function DbgRemoveBreakPoint(%file, %line)
 function DbgDeleteSelectedBreak()
 {
    %selectedBreak = DebuggerBreakPoints.getSelectedId();
-   %rowNum = DebuggerBreakPoints.getRowNumById(%selectedWatch);
+   %rowNum = DebuggerBreakPoints.getRowNumById(%selectedBreak);
    if (%rowNum >= 0) {
       %breakText = DebuggerBreakPoints.getRowText(%rowNum);
       %breakLine = getField(%breakText, 0);

+ 0 - 8
Templates/BaseGame/game/tools/decalEditor/decalEditorGui.gui

@@ -472,8 +472,6 @@ $guiContent = new GuiDecalEditorCtrl(DecalEditorGui) {
                Margin = "0 0 0 -3";
                DragSizable = false;
                container = true;
-               parentRollout = %this.rollout;
-               object = %behavior;  
                
                new GuiStackControl() {
                   StackingType = "Vertical";
@@ -552,8 +550,6 @@ $guiContent = new GuiDecalEditorCtrl(DecalEditorGui) {
                Margin = "0 0 0 0";
                DragSizable = false;
                container = true;
-               parentRollout = %this.rollout;
-               object = %behavior;
                
                new GuiStackControl() {
                   StackingType = "Vertical";
@@ -716,8 +712,6 @@ $guiContent = new GuiDecalEditorCtrl(DecalEditorGui) {
                Margin = "0 0 0 -3";
                DragSizable = false;
                container = true;
-               parentRollout = %this.rollout;
-               object = %behavior;  
                
                new GuiStackControl() {
                   StackingType = "Vertical";
@@ -796,8 +790,6 @@ $guiContent = new GuiDecalEditorCtrl(DecalEditorGui) {
                Margin = "0 0 0 0";
                DragSizable = false;
                container = true;
-               parentRollout = %this.rollout;
-               object = %behavior; 
                
                new GuiInspector(DecalInspector) {
                   StackingType = "Vertical";

+ 1 - 1
Templates/BaseGame/game/tools/forestEditor/brushes.tscript

@@ -20,6 +20,6 @@
 // IN THE SOFTWARE.
 //-----------------------------------------------------------------------------
 
-%forestBrushesGroup = new SimGroup( ForestBrushGroup )
+$forestBrushesGroup = new SimGroup( ForestBrushGroup )
 {
 };

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

@@ -233,7 +233,7 @@ function GuiInspectorVariableGroup::buildOptionsSettingField(%this, %fieldName,
       canSave = "1";
       Visible = "1";
       tooltipprofile = "ToolsGuiToolTipProfile";
-      tooltip = %tooltip;
+      tooltip = "";//%tooltip;
       text = %fieldDefaultVal;
       hovertime = "1000";
       ownerObject = %ownerObj;
@@ -492,7 +492,8 @@ function ESettingsWindow::getAssetManagementSettings(%this)
 function ESettingsWindow::getAssetEditingSettings(%this)
 {
    ImportAssetWindow::reloadImportOptionConfigs();
-   
+   %formattedConfigList = "";
+
    for(%i=0; %i < ImportAssetWindow.importConfigsList.Count(); %i++)
    {
       %configName = ImportAssetWindow.importConfigsList.getKey(%i);

+ 1 - 1
Templates/BaseGame/game/tools/gui/fieldTypes/assetDependencies.tscript

@@ -34,7 +34,7 @@ function GuiInspectorVariableGroup::buildAssetDependenciesField(%this, %fieldNam
       canSave = "1";
       Visible = "1";
       tooltipprofile = "ToolsGuiToolTipProfile";
-      tooltip = %tooltip;
+      tooltip = "";// %tooltip;
       text = %fieldDefaultVal;
       hovertime = "1000";
       ownerObject = %ownerObj;

+ 1 - 1
Templates/BaseGame/game/tools/gui/fieldTypes/buttonField.tscript

@@ -33,7 +33,7 @@ function GuiInspectorVariableGroup::buildButtonField(%this, %fieldName, %fieldLa
       canSave = "1";
       Visible = "1";
       tooltipprofile = "ToolsGuiToolTipProfile";
-      tooltip = %tooltip;
+      tooltip = "";// %tooltip;
       text = %fieldName;
       hovertime = "1000";
       command = %fieldDataVals;

+ 3 - 3
Templates/BaseGame/game/tools/gui/fieldTypes/listField.tscript

@@ -22,7 +22,7 @@ function GuiInspectorVariableGroup::buildListField(%this, %fieldName, %fieldLabe
       canSave = "0";
       Visible = "1";
       hovertime = "100";
-      tooltip = %tooltip;
+      tooltip = ""; ///%tooltip;
       tooltipProfile = "EditorToolTipProfile";
    };
 
@@ -37,7 +37,7 @@ function GuiInspectorVariableGroup::buildListField(%this, %fieldName, %fieldLabe
       canSave = "0";
       Visible = "1";
       hovertime = "100";
-      tooltip = %tooltip;
+      tooltip = ""; //%tooltip;
       tooltipProfile = "EditorToolTipProfile";
       text = %fieldLabel;
       maxLength = "1024";
@@ -66,7 +66,7 @@ function GuiInspectorVariableGroup::buildListField(%this, %fieldName, %fieldLabe
       canSave = "1";
       Visible = "1";
       tooltipprofile = "ToolsGuiToolTipProfile";
-      tooltip = %tooltip;
+      tooltip = ""; //%tooltip;
       text = %fieldDefaultVal;
       hovertime = "1000";
       ownerObject = %ownerObj;

+ 1 - 1
Templates/BaseGame/game/tools/gui/fieldTypes/range.tscript

@@ -76,7 +76,7 @@ function GuiInspectorVariableGroup::buildRangeField(%this, %fieldName, %fieldLab
       Visible = "1";
       Command = "$thisControl.onDragComplete();";
       tooltipprofile = "GuiToolTipProfile";
-      tooltip = %tooltip;
+      tooltip = ""; //%tooltip;
       hovertime = "1000";
       canSaveDynamicFields = "0";
       ownerObject = %ownerObj;

+ 2 - 0
Templates/BaseGame/game/tools/guiEditor/scripts/guiEditorProfiles.ed.tscript

@@ -69,6 +69,8 @@ function GuiEditor::createNewProfile( %this, %name, %copySource )
 
 function GuiEditor::getProfileCategory( %this, %profile )
 {
+   // TODO
+   %name = "";
    if( %this.isDefaultProfile( %name ) )
       return "Default";
    else if( %profile.category !$= "" )

+ 4 - 0
Templates/BaseGame/game/tools/guiEditor/scripts/guiEditorUndo.ed.tscript

@@ -364,6 +364,10 @@ function GenericUndoAction::learn(%this, %object)
    %oldFieldNames = %this.fieldNames[%object];
    %numNewFields = getWordCount(%newFieldNames);
    %numOldFields = getWordCount(%oldFieldNames);
+
+   %newNullFields = "";
+   %oldNullFields = "";
+
    // compare the old field list to the new field list.
    // if a field is on the old list that isn't on the new list, 
    // add it to the newNullFields list.

+ 0 - 15
Templates/BaseGame/game/tools/materialEditor/gui/guiMaterialPropertiesWindow.ed.gui

@@ -233,8 +233,6 @@ $guiContent = new GuiControl(MaterialEditorGui,EditorGuiGroup) {
                   Margin = "4 4 4 0";
                   DragSizable = false;
                   container = true;
-                  parentRollout = %this.rollout;
-                  object = %behavior;
                   
                   new GuiStackControl() {
                      StackingType = "Vertical";
@@ -543,9 +541,6 @@ $guiContent = new GuiControl(MaterialEditorGui,EditorGuiGroup) {
                   Margin = "4 4 4 0";
                   DragSizable = false;
                   container = true;
-                  parentRollout = %this.rollout;
-                  object = %behavior;
-                  object = %behavior;
                   
                   new GuiStackControl() {
                      StackingType = "Vertical";
@@ -1923,8 +1918,6 @@ $guiContent = new GuiControl(MaterialEditorGui,EditorGuiGroup) {
                   Margin = "4 4 4 0";
                   DragSizable = false;
                   container = true;
-                  parentRollout = %this.rollout;
-                  object = %behavior;
                   
                   new GuiStackControl() {
                      StackingType = "Vertical";
@@ -2623,8 +2616,6 @@ $guiContent = new GuiControl(MaterialEditorGui,EditorGuiGroup) {
                   Margin = "-1 0 0 0";
                   DragSizable = false;
                   container = true;
-                  parentRollout = %this.rollout;
-                  object = %behavior;
                   
                   new GuiStackControl() {
                      StackingType = "Vertical";
@@ -3100,8 +3091,6 @@ $guiContent = new GuiControl(MaterialEditorGui,EditorGuiGroup) {
                   Margin = "-1 0 0 0";
                   DragSizable = false;
                   container = true;
-                  parentRollout = %this.rollout;
-                  object = %behavior;
                   
                   new GuiStackControl() {
                      StackingType = "Vertical";
@@ -3373,8 +3362,6 @@ $guiContent = new GuiControl(MaterialEditorGui,EditorGuiGroup) {
                   Margin = "-1 0 0 0";
                   DragSizable = false;
                   container = true;
-                  parentRollout = %this.rollout;
-                  object = %behavior;
                   
                   new GuiStackControl() {
                      StackingType = "Vertical";
@@ -4191,8 +4178,6 @@ $guiContent = new GuiControl(MaterialEditorGui,EditorGuiGroup) {
                   Margin = "4 4 4 0";
                   DragSizable = false;
                   container = true;
-                  parentRollout = %this.rollout;
-                  object = %behavior;
                            
                   new GuiStackControl() {
                      StackingType = "Vertical";

+ 2 - 1
Templates/BaseGame/game/tools/materialEditor/scripts/materialEditor.ed.tscript

@@ -1496,7 +1496,8 @@ function MaterialEditorGui::updateAnimationFlags(%this)
 {
    MaterialEditorGui.setMaterialDirty();
    %single = true;
-   
+   %flags = "";
+
    if(MaterialEditorPropertiesWindow-->RotationAnimation.getValue() == true)
    {
       if(%single == true)

+ 1 - 1
Templates/BaseGame/game/tools/meshRoadEditor/meshRoadEditorGui.tscript

@@ -136,7 +136,7 @@ function MeshRoadEditorGui::editNodeDetails( %this )
 
 function MeshRoadEditorGui::onBrowseClicked( %this )
 {
-   //%filename = RETextureFileCtrl.getText();
+   %filename = RETextureFileCtrl.getText();
 
    %dlg = new OpenFileDialog()
    {

+ 4 - 24
Templates/BaseGame/game/tools/particleEditor/ParticleEditor.ed.gui

@@ -271,8 +271,6 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
                   Margin = "4 4 4 0";
                   DragSizable = false;
                   container = true;
-                  parentRollout = %this.rollout;
-                  object = %behavior;
                   
                   new GuiStackControl() {
                      StackingType = "Vertical";
@@ -584,8 +582,6 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
                   Margin = "4 4 4 0";
                   DragSizable = false;
                   container = true;
-                  parentRollout = %this.rollout;
-                  object = %behavior;
                   
                   new GuiStackControl() {
                      StackingType = "Vertical";
@@ -826,9 +822,7 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
                   Margin = "4 4 4 0";
                   DragSizable = false;
                   container = true;
-                  parentRollout = %this.rollout;
-                  object = %behavior;
-                  
+
                   new GuiStackControl() {
                      StackingType = "Vertical";
                      HorizStacking = "Left to Right";
@@ -1272,8 +1266,6 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
                   Margin = "4 4 4 0";
                   DragSizable = false;
                   container = true;
-                  parentRollout = %this.rollout;
-                  object = %behavior;
                   
                   new GuiStackControl() {
                      StackingType = "Vertical";
@@ -1359,7 +1351,7 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
                            MinExtent = "8 2";
                            canSave = "1";
                            Visible = "1";
-                           Command = "%particleId = PEE_EmitterParticle2-->PopUpMenu.findText( \"None\" ); PEE_EmitterParticle2-->PopUpMenu.setSelected( %particleId );PE_EmitterEditor.updateParticlesFields();"; 
+                           Command = "$_particleId = PEE_EmitterParticle2-->PopUpMenu.findText( \"None\" ); PEE_EmitterParticle2-->PopUpMenu.setSelected( $_particleId );PE_EmitterEditor.updateParticlesFields();"; 
                            hovertime = "1000";
                            tooltip = "Clear Particle 2 from Emitter";
                            text = "";
@@ -1407,7 +1399,7 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
                            MinExtent = "8 2";
                            canSave = "1";
                            Visible = "1";
-                           Command = "%particleId = PEE_EmitterParticle3-->PopUpMenu.findText( \"None\" ); PEE_EmitterParticle3-->PopUpMenu.setSelected( %particleId );PE_EmitterEditor.updateParticlesFields();"; 
+                           Command = "$_particleId = PEE_EmitterParticle3-->PopUpMenu.findText( \"None\" ); PEE_EmitterParticle3-->PopUpMenu.setSelected( $_particleId );PE_EmitterEditor.updateParticlesFields();"; 
                            hovertime = "1000";
                            tooltip = "Clear Particle 3 from Emitter";
                            text = "";
@@ -1455,7 +1447,7 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
                            MinExtent = "8 2";
                            canSave = "1";
                            Visible = "1";
-                           Command = "%particleId = PEE_EmitterParticle4-->PopUpMenu.findText( \"None\" ); PEE_EmitterParticle4-->PopUpMenu.setSelected( %particleId );PE_EmitterEditor.updateParticlesFields();"; 
+                           Command = "$_particleId = PEE_EmitterParticle4-->PopUpMenu.findText( \"None\" ); PEE_EmitterParticle4-->PopUpMenu.setSelected( $_particleId );PE_EmitterEditor.updateParticlesFields();"; 
                            hovertime = "1000";
                            tooltip = "Clear Particle 4 from Emitter";
                            text = "";
@@ -1479,8 +1471,6 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
                   Margin = "4 4 4 0";
                   DragSizable = false;
                   container = true;
-                  parentRollout = %this.rollout;
-                  object = %behavior;
                   
                   new GuiStackControl() {
                      StackingType = "Vertical";
@@ -1933,8 +1923,6 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
                   Margin = "4 4 4 0";
                   DragSizable = false;
                   container = true;
-                  parentRollout = %this.rollout;
-                  object = %behavior;
                   
                   new GuiStackControl() {
                      StackingType = "Vertical";
@@ -2233,8 +2221,6 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
                   Margin = "4 4 4 0";
                   DragSizable = false;
                   container = true;
-                  parentRollout = %this.rollout;
-                  object = %behavior;
                   
                   new GuiStackControl() {
                      StackingType = "Vertical";
@@ -2518,8 +2504,6 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
                   Margin = "4 4 4 0";
                   DragSizable = false;
                   container = true;
-                  parentRollout = %this.rollout;
-                  object = %behavior;
                   
                   new GuiStackControl() {
                      StackingType = "Vertical";
@@ -2720,8 +2704,6 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
                   Margin = "4 4 4 0";
                   DragSizable = false;
                   container = true;
-                  parentRollout = %this.rollout;
-                  object = %behavior;
                   
                   new GuiStackControl() {
                      StackingType = "Vertical";
@@ -2865,8 +2847,6 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
                   Margin = "4 4 4 0";
                   DragSizable = false;
                   container = true;
-                  parentRollout = %this.rollout;
-                  object = %behavior;
                   
                   new GuiStackControl() {
                      StackingType = "Vertical";

+ 1 - 1
Templates/BaseGame/game/tools/roadEditor/roadEditorGui.tscript

@@ -138,7 +138,7 @@ function RoadEditorGui::editNodeDetails( %this )
 
 function RoadEditorGui::onBrowseClicked( %this )
 {
-   //%filename = RETextureFileCtrl.getText();
+   %filename = RETextureFileCtrl.getText();
          
    %dlg = new OpenFileDialog()
    {

+ 3 - 1
Templates/BaseGame/game/tools/shapeEditor/scripts/shapeEditor.ed.tscript

@@ -1439,6 +1439,8 @@ function ShapeEdPropWindow::update_onSequenceBlendChanged( %this, %seqName, %ble
    %proxyName = ShapeEditor.getProxyName( %seqName );
    if ( ShapeEditor.shape.getSequenceIndex( %proxyName ) != -1 )
    {
+      //TODO
+      %oldBlend = false;
       if ( %blend && %oldBlend )
          ShapeEditor.shape.setSequenceBlend( %proxyName, false, %oldBlendSeq, %oldBlendFrame );
       ShapeEditor.shape.setSequenceBlend( %proxyName, %blend, %blendSeq, %blendFrame );
@@ -2217,7 +2219,7 @@ function ShapeEdTriggerList::updateItem( %this, %oldFrame, %oldState, %frame, %s
       if ( %frame != %oldFrame )
       {
          %pos = ShapeEdAnimWindow.getTimelineBitmapPos( ShapeEdAnimWindow-->seqIn.getText() + %frame, 2 );
-         eval( "%ctrl = ShapeEdAnimWindow-->trigger" @ %updatedId @ ";" );
+         %ctrl = eval( "return ShapeEdAnimWindow-->trigger" @ %updatedId @ ";" );
          %ctrl.position = %pos SPC "0";
       }
    }

+ 1 - 1
Templates/BaseGame/game/tools/worldEditor/gui/ToolsPaletteGroups/ConvexEditorPalette.ed.gui

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

+ 1 - 1
Templates/BaseGame/game/tools/worldEditor/gui/ToolsPaletteGroups/DecalEditorPalette.ed.gui

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

+ 1 - 1
Templates/BaseGame/game/tools/worldEditor/gui/ToolsPaletteGroups/ForestEditorPalette.ed.gui

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

+ 1 - 1
Templates/BaseGame/game/tools/worldEditor/gui/ToolsPaletteGroups/MeshRoadEditorPalette.ed.gui

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

+ 1 - 1
Templates/BaseGame/game/tools/worldEditor/gui/ToolsPaletteGroups/NavEditorPalette.ed.gui

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

+ 1 - 1
Templates/BaseGame/game/tools/worldEditor/gui/ToolsPaletteGroups/RiverEditorPalette.ed.gui

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

+ 1 - 1
Templates/BaseGame/game/tools/worldEditor/gui/ToolsPaletteGroups/RoadEditorPalette.ed.gui

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

+ 1 - 1
Templates/BaseGame/game/tools/worldEditor/gui/ToolsPaletteGroups/ShapeEditorPalette.ed.gui

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

+ 1 - 1
Templates/BaseGame/game/tools/worldEditor/gui/ToolsPaletteGroups/TerrainEditPalette.ed.gui

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

+ 1 - 1
Templates/BaseGame/game/tools/worldEditor/gui/ToolsPaletteGroups/TerrainPainterPalette.ed.gui

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

+ 1 - 1
Templates/BaseGame/game/tools/worldEditor/gui/ToolsPaletteGroups/WorldEditorPalette.ed.gui

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

+ 6 - 0
Templates/BaseGame/game/tools/worldEditor/gui/ToolsPaletteGroups/init.tscript

@@ -30,6 +30,9 @@ function EWToolsPaletteWindow::loadToolsPalettes()
       exec( %file );
       %paletteGroup = 0;      
       
+      // TODO
+      %paletteId = 0;
+
       %i = %paletteId.getCount();
       for( ; %i != 0; %i--)
       {
@@ -49,6 +52,9 @@ function EWToolsPaletteWindow::loadToolsPalettes()
       exec( %file );
       %paletteGroup = 0;      
       
+      // TODO
+      %paletteId = 0;
+
       %i = %paletteId.getCount();
       for( ; %i != 0; %i--)
       {

+ 3 - 0
Templates/BaseGame/game/tools/worldEditor/gui/guiTerrainExportGui.gui

@@ -288,6 +288,9 @@ function TerrainExportGui::selectFolder( %this )
 
 function TerrainExportGui::doOpenDialog( %this, %filter, %callback )
 {
+   // TODO
+   %currentFile = "";
+
    %dlg = new OpenFolderDialog()
    {
       Title = "Select Export Folder";

+ 5 - 0
Templates/BaseGame/game/tools/worldEditor/gui/guiTerrainImportGui.gui

@@ -508,6 +508,8 @@ function TerrainImportGui::acceptSettings( %this )
    
    AssetBrowser.newAssetSettings.opacityList = %this-->OpacityLayerTextList;
    
+   %opacityList = %this-->OpacityLayerTextList;
+
    for( %i = 0; %i < %opacityList.rowCount(); %i++ )
    {
       %itemText = %opacityList.getRowTextById( %i );
@@ -535,6 +537,9 @@ function TerrainImportGui::cancel( %this )
 
 function TerrainImportGui::doOpenDialog( %this, %filter, %callback )
 {
+   // TODO
+   %currentFile = "";
+
    %dlg = new OpenFileDialog()
    {
       Filters = %filter;

+ 1 - 1
Templates/BaseGame/game/tools/worldEditor/scripts/EditorGui.ed.tscript

@@ -399,7 +399,7 @@ function EditorGui::addToToolsToolbar( %this, %pluginName, %internalName, %bitma
          Visible = "1";
          Command = "EditorGui.setEditor(" @ %pluginName @ ");";
          tooltipprofile = "ToolsGuiToolTipProfile";
-         ToolTip = %tooltip;
+         ToolTip = "";// %tooltip;
          hovertime = "750";
          bitmap = %bitmap;
          buttonType = "RadioButton";

+ 2 - 3
Templates/BaseGame/game/tools/worldEditor/scripts/ManageSFXParametersWindow.ed.tscript

@@ -137,8 +137,7 @@ function EManageSFXParameters::onVisible( %this, %value )
    if( %value )
    {
       // Schedule an update.
-
-      %this.schedule( %SFX_PARAMETERS_UPDATE_INTERVAL, "update" );      
+      %this.schedule( $SFX_PARAMETERS_UPDATE_INTERVAL, "update" );      
    }
 }
 
@@ -770,7 +769,7 @@ function EManageSFXParameters::addParameter( %this, %parameter )
    
    // Set the fields to reflect the parameter's current settings.
    
-   %ctrl-->valueField.setValue( %paramter.value );
+   %ctrl-->valueField.setValue( %parameter.value );
    %ctrl-->rangeMinField.setText( %parameter.range.x );
    %ctrl-->rangeMaxField.setText( %parameter.range.y );
    %ctrl-->defaultField.setValue( %parameter.defaultValue );

+ 1 - 0
Templates/BaseGame/game/tools/worldEditor/scripts/menuHandlers.ed.tscript

@@ -871,6 +871,7 @@ function EditorToolsMenu::onSelectItem(%this, %id)
 {
    %toolName = getField( %this.item[%id], 2 );  
 
+   %paletteName = "";
    EditorGui.setEditor(%toolName, %paletteName  );
    
    %this.checkRadioItem(0, %this.getItemCount(), %id);