diff --git a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/cpp.tscript b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/cpp.tscript index a42431bfd..cbf40f97f 100644 --- a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/cpp.tscript +++ b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/cpp.tscript @@ -31,7 +31,7 @@ function AssetBrowser::createCpp(%this) %assetName = AssetBrowser.newAssetSettings.assetName; - %assetPath = AssetBrowser.dirHandler.currentAddress @ "/"; + %assetPath = NewAssetTargetAddress.getText() @ "/"; //%tamlpath = %assetPath @ %assetName @ ".asset.taml"; %codePath = %assetPath @ %assetName @ ".cpp"; diff --git a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/cubemap.tscript b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/cubemap.tscript index c2a5429f3..95872ca8d 100644 --- a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/cubemap.tscript +++ b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/cubemap.tscript @@ -7,7 +7,7 @@ function AssetBrowser::createCubemapAsset(%this) %modulePath = "data/" @ %moduleName; %assetName = AssetBrowser.newAssetSettings.assetName; - %assetPath = AssetBrowser.dirHandler.currentAddress @ "/"; + %assetPath = NewAssetTargetAddress.getText() @ "/"; %tamlpath = %assetPath @ %assetName @ ".asset.taml"; %shapeFilePath = %assetPath @ %assetName @ ".dae"; diff --git a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/gui.tscript b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/gui.tscript index 7a5f66a64..ae78030f7 100644 --- a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/gui.tscript +++ b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/gui.tscript @@ -5,7 +5,7 @@ function AssetBrowser::createGUIAsset(%this) %assetName = AssetBrowser.newAssetSettings.assetName; - %assetPath = AssetBrowser.dirHandler.currentAddress @ "/"; + %assetPath = NewAssetTargetAddress.getText() @ "/"; %tamlpath = %assetPath @ %assetName @ ".asset.taml"; %guipath = %assetPath @ %assetName @ ".gui"; diff --git a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/image.tscript b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/image.tscript index f118fc078..afa13fddf 100644 --- a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/image.tscript +++ b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/image.tscript @@ -139,7 +139,7 @@ function AssetBrowser::importImageAsset(%this, %assetItem) %assetImportSuccessful = false; %assetId = %moduleName@":"@%assetName; - %assetPath = AssetBrowser.dirHandler.currentAddress @ "/"; + %assetPath = NewAssetTargetAddress.getText() @ "/"; %assetFullPath = %assetPath @ "/" @ fileName(%filePath); diff --git a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/level.tscript b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/level.tscript index 479f3cf87..2d538ae4b 100644 --- a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/level.tscript +++ b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/level.tscript @@ -18,7 +18,7 @@ function AssetBrowser::createLevelAsset(%this) %assetName = AssetBrowser.newAssetSettings.assetName; - %assetPath = AssetBrowser.dirHandler.currentAddress @ "/"; + %assetPath = NewAssetTargetAddress.getText() @ "/"; %tamlpath = %assetPath @ %assetName @ ".asset.taml"; %levelPath = %assetPath @ %assetName @ ".mis"; diff --git a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/material.tscript b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/material.tscript index ba8f32d59..70c32b6e3 100644 --- a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/material.tscript +++ b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/material.tscript @@ -5,7 +5,7 @@ function AssetBrowser::createMaterialAsset(%this) %moduleName = AssetBrowser.newAssetSettings.moduleName; %modulePath = "data/" @ %moduleName; - %assetPath = AssetBrowser.dirHandler.currentAddress @ "/"; + %assetPath = NewAssetTargetAddress.getText() @ "/"; %tamlpath = %assetPath @ %assetName @ ".asset.taml"; @@ -309,7 +309,7 @@ function AssetBrowser::importMaterialAsset(%this, %assetItem) %assetImportSuccessful = false; %assetId = %moduleName@":"@%assetName; - %assetPath = AssetBrowser.dirHandler.currentAddress @ "/"; + %assetPath = NewAssetTargetAddress.getText() @ "/"; %tamlpath = %assetPath @ %assetName @ ".asset.taml"; %sgfPath = %assetPath @ %assetName @ ".sgf"; %scriptPath = %assetPath @ %assetName @ "." @ $TorqueScriptFileExtension; diff --git a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/postFX.tscript b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/postFX.tscript index a51390370..3d684bf47 100644 --- a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/postFX.tscript +++ b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/postFX.tscript @@ -3,7 +3,7 @@ function AssetBrowser::createPostEffectAsset(%this) %moduleName = AssetBrowser.newAssetSettings.moduleName; %assetName = AssetBrowser.newAssetSettings.assetName; - %assetPath = AssetBrowser.dirHandler.currentAddress @ "/"; + %assetPath = NewAssetTargetAddress.getText() @ "/"; %tamlpath = %assetPath @ %assetName @ ".asset.taml"; %scriptPath = %assetPath @ %assetName @ "." @ $TorqueScriptFileExtension; diff --git a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/prefab.tscript b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/prefab.tscript index a40302e22..eec9fb7b0 100644 --- a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/prefab.tscript +++ b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/prefab.tscript @@ -5,7 +5,7 @@ function AssetBrowser::createPrefab(%this) %assetName = AssetBrowser.newAssetSettings.assetName; - %assetPath = AssetBrowser.dirHandler.currentAddress @ "/"; + %assetPath = NewAssetTargetAddress.getText() @ "/"; %tamlpath = %assetPath @ %assetName @ ".asset.taml"; %prefabFilePath = %assetPath @ %assetName @ ".prefab"; diff --git a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/script.tscript b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/script.tscript index 7b308b624..cc93fcdc1 100644 --- a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/script.tscript +++ b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/script.tscript @@ -5,7 +5,7 @@ function AssetBrowser::createScriptAsset(%this) %assetName = AssetBrowser.newAssetSettings.assetName; - %assetPath = AssetBrowser.dirHandler.currentAddress @ "/"; + %assetPath = NewAssetTargetAddress.getText() @ "/"; %tamlpath = %assetPath @ %assetName @ ".asset.taml"; %scriptPath = %assetPath @ %assetName @ "." @ $TorqueScriptFileExtension; diff --git a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/shape.tscript b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/shape.tscript index c39710f9c..fc850cb09 100644 --- a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/shape.tscript +++ b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/shape.tscript @@ -5,7 +5,7 @@ function AssetBrowser::createShapeAsset(%this) %assetName = AssetBrowser.newAssetSettings.assetName; - %assetPath = AssetBrowser.dirHandler.currentAddress @ "/"; + %assetPath = NewAssetTargetAddress.getText() @ "/"; %tamlpath = %assetPath @ %assetName @ ".asset.taml"; %shapeFilePath = %assetPath @ %assetName @ ".dae"; @@ -135,7 +135,7 @@ function AssetBrowser::importShapeAsset(%this, %assetItem) %assetImportSuccessful = false; %assetId = %moduleName@":"@%assetName; - %assetPath = AssetBrowser.dirHandler.currentAddress @ "/"; + %assetPath = NewAssetTargetAddress.getText() @ "/"; %assetFullPath = %assetPath @ fileName(%filePath); %newAsset = new ShapeAsset() diff --git a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/stateMachine.tscript b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/stateMachine.tscript index 0e9188a97..4234f6d28 100644 --- a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/stateMachine.tscript +++ b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/stateMachine.tscript @@ -2,7 +2,7 @@ function AssetBrowser::createStateMachineAsset(%this) { %assetName = AssetBrowser.newAssetSettings.assetName; %moduleName = AssetBrowser.selectedModule; - %assetPath = AssetBrowser.dirHandler.currentAddress @ "/"; + %assetPath = NewAssetTargetAddress.getText() @ "/"; %assetQuery = new AssetQuery(); diff --git a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/terrain.tscript b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/terrain.tscript index 31642000c..410360801 100644 --- a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/terrain.tscript +++ b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/terrain.tscript @@ -18,7 +18,7 @@ function AssetBrowser::createTerrainAsset(%this) %assetName = AssetBrowser.newAssetSettings.assetName; %assetType = AssetBrowser.newAssetSettings.assetType; - %assetPath = AssetBrowser.dirHandler.currentAddress @ "/"; + %assetPath = NewAssetTargetAddress.getText() @ "/"; //Ensure anything we generate goes into the right directory $pref::Directories::Terrain = %assetPath; diff --git a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/terrainMaterial.tscript b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/terrainMaterial.tscript index d9ded4ef3..e67a8274a 100644 --- a/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/terrainMaterial.tscript +++ b/Templates/BaseGame/game/tools/assetBrowser/scripts/assetTypes/terrainMaterial.tscript @@ -6,7 +6,7 @@ function AssetBrowser::createTerrainMaterialAsset(%this) %assetName = AssetBrowser.newAssetSettings.assetName; %assetType = AssetBrowser.newAssetSettings.assetType; - %assetPath = AssetBrowser.dirHandler.currentAddress @ "/"; + %assetPath = NewAssetTargetAddress.getText() @ "/"; %tamlpath = %assetPath @ %assetName @ ".asset.taml"; %scriptPath = %assetPath @ %assetName @ "." @ $TorqueScriptFileExtension;