mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 23:54:35 +00:00
Fixes level save as logic to correctly name new level's scene object to match, and helps ensure you're editing the right scene.
Added New Folder button to Select Path window
This commit is contained in:
parent
8611e7090a
commit
f3fe2298d5
4 changed files with 87 additions and 35 deletions
|
|
@ -19,6 +19,11 @@ function SelectAssetPath::showDialog(%this, %startingPath, %callback)
|
|||
%dataItem = SelectAssetPath-->folderTree.insertItem(0, "Data");
|
||||
%this.dirHandler.loadFolders("Data", %dataItem);
|
||||
|
||||
%this.dirHandler.expandTreeToAddress(%startingPath);
|
||||
%id = %this.dirHandler.getFolderTreeItemFromAddress(%startingPath);
|
||||
%this.dirHandler.treeCtrl.clearSelection();
|
||||
%this.dirHandler.treeCtrl.selectItem(%id);
|
||||
|
||||
Canvas.pushDialog(SelectAssetPath);
|
||||
}
|
||||
|
||||
|
|
@ -44,4 +49,10 @@ function SelectAssetPath::selectPath(%this)
|
|||
}
|
||||
|
||||
Canvas.popDialog(SelectAssetPath);
|
||||
}
|
||||
|
||||
function SelectAssetPath::newFolder(%this)
|
||||
{
|
||||
AssetBrowser_newFolderNameTxt.text = "NewFolder";
|
||||
Canvas.pushDialog(AssetBrowser_newFolder);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue