mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
Adds a separate gui profile for the popupmenus themselves that has a lighter border color, making it easier to keep track of the layout
Fixes the C++ asset creation and management function names so the AB can create C++ assets now removes duplicate menuBuilder script file
This commit is contained in:
parent
083e367be1
commit
473e566b70
4 changed files with 12 additions and 266 deletions
|
|
@ -24,7 +24,7 @@ function AssetBrowser::buildCppAssetPreview(%this, %assetDef, %previewData)
|
|||
%previewData.tooltip = %assetDef.assetName;
|
||||
}
|
||||
|
||||
function AssetBrowser::createCpp(%this)
|
||||
function AssetBrowser::createCppAsset(%this)
|
||||
{
|
||||
%moduleName = AssetBrowser.newAssetSettings.moduleName;
|
||||
%modulePath = "data/" @ %moduleName;
|
||||
|
|
@ -170,12 +170,12 @@ function AssetBrowser::createCpp(%this)
|
|||
return "";
|
||||
}
|
||||
|
||||
function AssetBrowser::editCpp(%this, %assetDef)
|
||||
function AssetBrowser::editCppAsset(%this, %assetDef)
|
||||
{
|
||||
}
|
||||
|
||||
//Renames the asset
|
||||
function AssetBrowser::renameCpp(%this, %assetDef, %newAssetName)
|
||||
function AssetBrowser::renameCppAsset(%this, %assetDef, %newAssetName)
|
||||
{
|
||||
%newCodeLooseFilename = renameAssetLooseFile(%assetDef.codefile, %newAssetName);
|
||||
|
||||
|
|
@ -195,13 +195,13 @@ function AssetBrowser::renameCpp(%this, %assetDef, %newAssetName)
|
|||
}
|
||||
|
||||
//Deletes the asset
|
||||
function AssetBrowser::deleteCpp(%this, %assetDef)
|
||||
function AssetBrowser::deleteCppAsset(%this, %assetDef)
|
||||
{
|
||||
AssetDatabase.deleteAsset(%assetDef.getAssetId(), true);
|
||||
}
|
||||
|
||||
//Moves the asset to a new path/module
|
||||
function AssetBrowser::moveCpp(%this, %assetDef, %destination)
|
||||
function AssetBrowser::moveCppAsset(%this, %assetDef, %destination)
|
||||
{
|
||||
%currentModule = AssetDatabase.getAssetModule(%assetDef.getAssetId());
|
||||
%targetModule = AssetBrowser.dirHandler.getModuleFromAddress(%destination);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue