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:
Areloch 2023-10-24 17:53:37 -05:00
parent 083e367be1
commit 473e566b70
4 changed files with 12 additions and 266 deletions

View file

@ -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);