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:
Areloch 2020-08-29 04:22:58 -05:00
parent 8611e7090a
commit f3fe2298d5
4 changed files with 87 additions and 35 deletions

View file

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