mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-15 00:24:48 +08:00
Select multiple items in project explorer with ctrl and shift
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user