mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 07:04:36 +00:00
Fixes Settings window not being able to be brought forward over AB
Adds checkbox to mark as not showing Import Window each time Added loaded import config to import log output Fixed targeted material map slot field names Added helper function for playing a sound asset via AssetId Updated import config to have some more common suffixes Updated editor settings to have Import Window show by default Changed AB context menu from listing item as "Refresh Asset" to "Reload Asset" for improved clarity Removed unneeded duplicate editor settings window script file
This commit is contained in:
parent
8d310b8d5d
commit
97484247ae
11 changed files with 56 additions and 169 deletions
|
|
@ -86,6 +86,8 @@ function ImportAssetWindow::onWake(%this)
|
|||
%this.importer.targetModuleId = AssetImportTargetModule.getText();
|
||||
|
||||
%this.refresh();
|
||||
|
||||
toggleImportWindowVizBtn.setStateOn(EditorSettings.value("Assets/AutoImport"));
|
||||
}
|
||||
|
||||
//
|
||||
|
|
@ -469,9 +471,7 @@ function ImportAssetWindow::doRefresh(%this)
|
|||
ImportAssetWindow.importer.processImportingAssets();
|
||||
//%this.processImportAssets();
|
||||
|
||||
//ImportAssetWindow.hasImportIssues = %this.validateAssets();
|
||||
|
||||
ImportAssetWindow.importer.validateImportingAssets();
|
||||
ImportAssetWindow.hasImportIssues = ImportAssetWindow.importer.hasImportIssues();
|
||||
|
||||
AssetImportCtrl-->NewAssetsTree.clear();
|
||||
AssetImportCtrl-->NewAssetsTree.insertItem(0, "Importing Assets");
|
||||
|
|
@ -947,3 +947,12 @@ function ImportAssetModuleList::refresh(%this)
|
|||
}
|
||||
}
|
||||
//
|
||||
|
||||
//
|
||||
function toggleImportWindowViz()
|
||||
{
|
||||
%value = EditorSettings.value("Assets/AutoImport");
|
||||
EditorSettings.setValue("Assets/AutoImport", !%value);
|
||||
|
||||
}
|
||||
//
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ function setupImportConfigSettingsList()
|
|||
ImportAssetConfigSettingsList.addNewConfigSetting("Materials/ImportMaterials", "Import Materials", "bool", "", "1", "");
|
||||
ImportAssetConfigSettingsList.addNewConfigSetting("Materials/AlwaysAddMaterialSuffix", "Always Add Material Suffix", "bool", "", "1", "");
|
||||
ImportAssetConfigSettingsList.addNewConfigSetting("Materials/AddedMaterialSuffix", "Added Material Suffix", "string", "", "_mat", "");
|
||||
ImportAssetConfigSettingsList.addNewConfigSetting("Materials/CreateComposites", "Create Composites", "bool", "", "1", "");
|
||||
ImportAssetConfigSettingsList.addNewConfigSetting("Materials/CreateORMConfig", "Create ORM Map", "bool", "", "1", "");
|
||||
ImportAssetConfigSettingsList.addNewConfigSetting("Materials/UseDiffuseSuffixOnOriginImage", "Use Diffuse Suffix for Origin Image", "bool", "", "1", "");
|
||||
ImportAssetConfigSettingsList.addNewConfigSetting("Materials/UseExistingMaterials", "Use Existing Materials", "bool", "", "1", "");
|
||||
ImportAssetConfigSettingsList.addNewConfigSetting("Materials/IgnoreMaterials", "Ignore Materials", "command", "", "", "");
|
||||
|
|
@ -185,7 +185,7 @@ function ImportAssetOptionsWindow::editImportSettings(%this, %assetItem)
|
|||
else if(%assetType $= "MaterialAsset")
|
||||
{
|
||||
ImportOptionsList.startGroup("Material");
|
||||
ImportOptionsList.addField("CreateComposites", "Create Composite Textures", "bool", "", "1", "", %assetConfigObj);
|
||||
ImportOptionsList.addField("CreateORMConfig", "Create ORM Map", "bool", "", "1", "", %assetConfigObj);
|
||||
ImportOptionsList.endGroup();
|
||||
}
|
||||
else if(%assetType $= "ImageAsset")
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ function AssetBrowser::buildPopupMenus(%this)
|
|||
|
||||
item[ 0 ] = "Edit Asset" TAB "" TAB "AssetBrowser.editAsset();";
|
||||
item[ 1 ] = "Rename Asset" TAB "" TAB "AssetBrowser.renameAsset();";
|
||||
item[ 2 ] = "Refresh Asset" TAB "" TAB "AssetBrowser.refreshAsset();";
|
||||
item[ 2 ] = "Reload Asset" TAB "" TAB "AssetBrowser.refreshAsset();";
|
||||
item[ 3 ] = "Asset Properties" TAB "" TAB "AssetBrowser.editAssetInfo();";
|
||||
item[ 4 ] = "-";
|
||||
Item[ 5 ] = "Duplicate Asset" TAB "" TAB "AssetBrowser.duplicateAsset();";
|
||||
|
|
@ -50,7 +50,7 @@ function AssetBrowser::buildPopupMenus(%this)
|
|||
item[ 0 ] = "Edit Level" TAB "" TAB "AssetBrowser.editAsset();";
|
||||
item[ 1 ] = "Append as Sublevel" TAB "" TAB "AssetBrowser.appendSublevel();";
|
||||
item[ 2 ] = "Rename Asset" TAB "" TAB "AssetBrowser.renameAsset();";
|
||||
item[ 3 ] = "Refresh Asset" TAB "" TAB "AssetBrowser.refreshAsset();";
|
||||
item[ 3 ] = "Reload Asset" TAB "" TAB "AssetBrowser.refreshAsset();";
|
||||
item[ 4 ] = "Asset Properties" TAB "" TAB "AssetBrowser.editAssetInfo();";
|
||||
item[ 5 ] = "-";
|
||||
Item[ 6 ] = "Duplicate Asset" TAB "" TAB "AssetBrowser.duplicateAsset();";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue