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
+10 -1
View File
@@ -1291,7 +1291,16 @@ namespace CodeWalker
{
const float nrad = 0.5f;
var ms = new MapSelection();
if (o is YmapEntityDef entity)
if (o is object[] arr)
{
var multi = new MapSelection[arr.Length];
for (int i = 0; i < arr.Length; i++)
{
multi[i] = FromProjectObject(arr[i]);
}
ms.SetMultipleSelectionItems(multi);
}
else if (o is YmapEntityDef entity)
{
ms.EntityDef = entity;
ms.Archetype = entity?.Archetype;