Select multiple items in project explorer with ctrl and shift

This commit is contained in:
dexy
2020-01-15 19:00:19 +11:00
Unverified
parent 95e2a8ec0f
commit 5cd2ebdd85
4 changed files with 93 additions and 8 deletions
+11
View File
@@ -711,6 +711,12 @@ namespace CodeWalker.Project
}
public void ShowProjectItem(object item, bool promote)
{
if (item is object[] arr)
{
var multisel = MapSelection.FromProjectObject(arr); //convert to MapSelection array
item = multisel.MultipleSelectionItems;
}
ShowProjectItemInProcess = true;
SetProjectItem(item);
@@ -724,6 +730,11 @@ namespace CodeWalker.Project
ShowCurrentProjectItem(promote);
}
if (item is MapSelection[] multi)
{
WorldForm?.SelectMulti(multi, false, false);
}
ShowProjectItemInProcess = false;
}
public void SetProjectItem(object item, bool refreshUI = true)