mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-28 15:55:39 +00:00
Added getShapeConstructorFilePath console function on shapeAsset
Fixed typo in import config settings for DuplicateAutoResolution Converted TSShapeConstructor to utilize assets Updated shape editor to work with assetified constructors Converted guiBitmapButtonCtrl to use assets
This commit is contained in:
parent
52c83d19e1
commit
88ae8a9665
181 changed files with 2343 additions and 1577 deletions
|
|
@ -3,7 +3,6 @@ new SimGroup(AssetBrowserPreviewCache);
|
|||
//AssetBrowser.addToolbarButton
|
||||
function AssetBrowser::addToolbarButton(%this)
|
||||
{
|
||||
%filename = expandFilename("tools/gui/images/stencilIcons/menuGrid");
|
||||
%button = new GuiBitmapButtonCtrl() {
|
||||
canSaveDynamicFields = "0";
|
||||
internalName = AssetBrowserBtn;
|
||||
|
|
@ -21,7 +20,7 @@ function AssetBrowser::addToolbarButton(%this)
|
|||
tooltipprofile = "ToolsGuiToolTipProfile";
|
||||
ToolTip = "Asset Browser";
|
||||
hovertime = "750";
|
||||
bitmap = %filename;
|
||||
bitmapAsset = "ToolsModule:menuGrid_n_image";
|
||||
bitmapMode = "Stretched";
|
||||
buttonType = "PushButton";
|
||||
groupNum = "0";
|
||||
|
|
@ -2142,7 +2141,7 @@ function AssetBrowser::updateNavigationBreadcrumb(%this, %address)
|
|||
%folderSpacerButton = new GuiBitmapButtonCtrl()
|
||||
{
|
||||
profile = ToolsGuiButtonProfile;
|
||||
bitmap = "tools/gui/images/rightArrowWhite";
|
||||
bitmapAsset = "ToolsModule:rightArrowWhite_image";
|
||||
bitmapMode = "Centered";
|
||||
extent = "25" SPC AssetBrowser_BreadcrumbBar.extent.y;
|
||||
//command = "AssetBrowser.navigateTo(\"" @ %rebuiltPath @ "\");";
|
||||
|
|
@ -2575,4 +2574,4 @@ function AssetBrowser::importLooseFiles(%this)
|
|||
{
|
||||
echo("Adding loose files at directory " @ %this.dirHandler.currentAddress);
|
||||
LooseFileAuditWindow.showDialog(%this.dirHandler.currentAddress);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ function setupImportConfigSettingsList()
|
|||
{
|
||||
new ArrayObject(ImportAssetConfigSettingsList);
|
||||
|
||||
ImportAssetConfigSettingsList.addNewConfigSetting("General/DuplicatAutoResolution", "Duplicate Asset Auto-Resolution Action", "list", "", "AutoPrune", "None,AutoPrune,AutoRename");
|
||||
ImportAssetConfigSettingsList.addNewConfigSetting("General/DuplicateAutoResolution", "Duplicate Asset Auto-Resolution Action", "list", "", "AutoRename", "None,AutoPrune,AutoRename,FolderPrefix");
|
||||
ImportAssetConfigSettingsList.addNewConfigSetting("General/WarningsAsErrors", "Warnings As Errors", "bool", "", "0", "", "");
|
||||
ImportAssetConfigSettingsList.addNewConfigSetting("General/PreventImportWithErrors", "Prevent Import With Errors", "bool", "", "1", "", "");
|
||||
ImportAssetConfigSettingsList.addNewConfigSetting("General/AutomaticallyPromptMissingFiles", "Automatically Prompt Missing Files", "bool", "", "0", "", "");
|
||||
|
|
|
|||
|
|
@ -145,4 +145,4 @@ function AssetBrowser::buildComponentAssetPreview(%this, %assetDef, %previewData
|
|||
%previewData.assetFriendlyName = %assetDef.friendlyName;
|
||||
%previewData.assetDesc = %assetDef.description;
|
||||
%previewData.tooltip = %assetDef.friendlyName @ "\n" @ %assetDef;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -293,4 +293,4 @@ function GuiInspectorTypeGameObjectAssetPtr::onClick( %this, %fieldName )
|
|||
//We've gotta be trying to create a GameObject, so kick that off
|
||||
AssetBrowser.createGameObjectAsset();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -176,4 +176,4 @@ function AssetBrowser::buildGUIAssetPreview(%this, %assetDef, %previewData)
|
|||
%previewData.assetFriendlyName = %assetDef.assetName;
|
||||
%previewData.assetDesc = %assetDef.description;
|
||||
%previewData.tooltip = %assetDef.assetName;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ function directoryHandler::navigateTo(%this, %address, %historyNav, %selectionNa
|
|||
%folderSpacerButton = new GuiBitmapButtonCtrl()
|
||||
{
|
||||
profile = ToolsGuiButtonProfile;
|
||||
bitmap = "tools/gui/images/rightArrowWhite";
|
||||
bitmapAsset = "ToolsModule:rightArrowWhite_image";
|
||||
bitmapMode = "Centered";
|
||||
extent = "25" SPC AssetBrowser_BreadcrumbBar.extent.y;
|
||||
//command = "AssetBrowser.navigateTo(\"" @ %rebuiltPath @ "\");";
|
||||
|
|
@ -338,4 +338,4 @@ function directoryHandler::copyFolder(%this, %fromFolder, %toFolder)
|
|||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue