Adjusts Forest object creation and forest item data creation/management to work with asset/module workflows

This commit is contained in:
Areloch 2021-02-21 02:04:13 -06:00
parent bea11acc66
commit 8af6513aea
2 changed files with 40 additions and 11 deletions

View file

@ -3,7 +3,7 @@ function SelectAssetPath::onWake(%this)
}
//SelectAssetPath.showDialog();
function SelectAssetPath::showDialog(%this, %startingPath, %callback)
function SelectAssetPath::showDialog(%this, %startingPath, %callback, %promptText)
{
if(!isObject(%this.dirHandler))
%this.dirHandler = makedirectoryHandler(SelectAssetPath-->folderTree, "Core,Tools,cache,shaderCache", "");
@ -12,6 +12,11 @@ function SelectAssetPath::showDialog(%this, %startingPath, %callback)
SelectAssetPath-->folderTree.buildIconTable( ":tools/classIcons/Prefab:tools/classIcons/Prefab" @
":tools/classIcons/SimSet:tools/classIcons/SimSet");
if(%promptText $= "")
%promptText = "Select Path";
SelectAssetPathWindow.text = %promptText;
%this.dirHandler.currentPath = %startingPath;
%this.callback = %callback;