mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-09 04:53:30 +08:00
UXAssist: Ctrl+A also select all prebuilds
This commit is contained in:
@@ -125,6 +125,13 @@ public static class FactoryFunctions
|
|||||||
blueprintCopyTool.preSelectObjIds.Add(entity.id);
|
blueprintCopyTool.preSelectObjIds.Add(entity.id);
|
||||||
blueprintCopyTool.selectedObjIds.Add(entity.id);
|
blueprintCopyTool.selectedObjIds.Add(entity.id);
|
||||||
}
|
}
|
||||||
|
var prebuildPool = localFactory.prebuildPool;
|
||||||
|
foreach (var prebuild in prebuildPool)
|
||||||
|
{
|
||||||
|
if (prebuild.id == 0) continue;
|
||||||
|
blueprintCopyTool.preSelectObjIds.Add(-prebuild.id);
|
||||||
|
blueprintCopyTool.selectedObjIds.Add(-prebuild.id);
|
||||||
|
}
|
||||||
blueprintCopyTool.RefreshBlueprintData();
|
blueprintCopyTool.RefreshBlueprintData();
|
||||||
blueprintCopyTool.DeterminePreviews();
|
blueprintCopyTool.DeterminePreviews();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user