Merge remote-tracking branch 'origin/master' into 1.10
This commit is contained in:
@@ -638,12 +638,14 @@ namespace FlaxEditor.Windows
|
||||
var toDelete = new List<ContentItem>(items);
|
||||
toDelete.Sort((a, b) => a.IsFolder ? 1 : b.IsFolder ? -1 : a.Compare(b));
|
||||
|
||||
string singularPlural = toDelete.Count > 1 ? "s" : "";
|
||||
|
||||
string msg = toDelete.Count == 1
|
||||
? string.Format("Are you sure to delete \'{0}\'?\nThis action cannot be undone. Files will be deleted permanently.", items[0].Path)
|
||||
: string.Format("Are you sure to delete {0} selected items?\nThis action cannot be undone. Files will be deleted permanently.", items.Count);
|
||||
? string.Format("Delete \'{0}\'?\n\nThis action cannot be undone.\nFile will be deleted permanently.", items[0].Path)
|
||||
: string.Format("Delete {0} selected items?\n\nThis action cannot be undone.\nFiles will be deleted permanently.", items.Count);
|
||||
|
||||
// Ask user
|
||||
if (MessageBox.Show(msg, "Delete asset(s)", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != DialogResult.OK)
|
||||
if (MessageBox.Show(msg, "Delete asset" + singularPlural, MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != DialogResult.OK)
|
||||
return;
|
||||
|
||||
// Clear navigation
|
||||
|
||||
@@ -328,6 +328,19 @@ namespace FlaxEditor.Windows
|
||||
|
||||
group.Object(new ReadOnlyValueContainer(platformObj));
|
||||
|
||||
layout.Space(2);
|
||||
var openOutputButton = layout.Button("Open output folder").Button;
|
||||
openOutputButton.TooltipText = "Opens the defined out folder if the path exists.";
|
||||
openOutputButton.Clicked += () =>
|
||||
{
|
||||
string output = StringUtils.ConvertRelativePathToAbsolute(Globals.ProjectFolder, StringUtils.NormalizePath(proxy.PerPlatformOptions[_platform].Output));
|
||||
if (Directory.Exists(output))
|
||||
FlaxEngine.FileSystem.ShowFileExplorer(output);
|
||||
else
|
||||
FlaxEditor.Editor.LogWarning($"Can not open path: {output} because it does not exist.");
|
||||
};
|
||||
layout.Space(2);
|
||||
|
||||
_buildButton = layout.Button("Build").Button;
|
||||
_buildButton.Clicked += OnBuildClicked;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user