mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-04 21:10:32 +00:00
Adjusts Forest object creation and forest item data creation/management to work with asset/module workflows
This commit is contained in:
parent
bea11acc66
commit
8af6513aea
2 changed files with 40 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue