diff --git a/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs b/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs index a69e512444..c01d79e87e 100644 --- a/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs +++ b/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs @@ -270,6 +270,16 @@ namespace OpenRA.Mods.Common.UtilityCommands } } + if (engineVersion < 20160717) + { + if (depth == 0) + { + var selectionDecorations = node.Value.Nodes.FirstOrDefault(n => n.Key == "SelectionDecorations"); + if (selectionDecorations != null) + node.Value.Nodes.Add(selectionDecorations = new MiniYamlNode("WithSpriteControlGroup", "")); + } + } + UpgradeActorRules(modData, engineVersion, ref node.Value.Nodes, node, depth + 1); } diff --git a/mods/cnc/rules/defaults.yaml b/mods/cnc/rules/defaults.yaml index 180320f53b..5b5c607b4a 100644 --- a/mods/cnc/rules/defaults.yaml +++ b/mods/cnc/rules/defaults.yaml @@ -69,6 +69,7 @@ Beach: 50 TurnSpeed: 5 SelectionDecorations: + WithSpriteControlGroupDecoration: Selectable: Bounds: 24,24 Targetable: @@ -133,6 +134,7 @@ UpgradeTypes: airborne UpgradeMinEnabledLevel: 1 SelectionDecorations: + WithSpriteControlGroupDecoration: Selectable: Bounds: 24,24 Aircraft: @@ -191,6 +193,7 @@ PathingCost: 300 Beach: 80 SelectionDecorations: + WithSpriteControlGroupDecoration: Selectable: Bounds: 12,17,0,-6 Targetable: @@ -351,6 +354,7 @@ Beach: 80 Voice: Move SelectionDecorations: + WithSpriteControlGroupDecoration: Selectable: Bounds: 24,24 Targetable: @@ -398,6 +402,7 @@ BlueTiberium: 100 Beach: 60 SelectionDecorations: + WithSpriteControlGroupDecoration: Selectable: Bounds: 24,24 Targetable: @@ -463,6 +468,7 @@ TerrainSpeeds: Water: 100 SelectionDecorations: + WithSpriteControlGroupDecoration: Selectable: Targetable: TargetTypes: Ground, Water @@ -486,6 +492,7 @@ Inherits@2: ^SpriteActor Huntable: SelectionDecorations: + WithSpriteControlGroupDecoration: Selectable: Priority: 3 Targetable: diff --git a/mods/d2k/rules/defaults.yaml b/mods/d2k/rules/defaults.yaml index 255f4e5f86..4396be601b 100644 --- a/mods/d2k/rules/defaults.yaml +++ b/mods/d2k/rules/defaults.yaml @@ -74,6 +74,7 @@ Dune: 50 TurnSpeed: 5 SelectionDecorations: + WithSpriteControlGroupDecoration: Selectable: Bounds: 32,32 Targetable: @@ -183,6 +184,7 @@ Dune: 80 Rough: 80 SelectionDecorations: + WithSpriteControlGroupDecoration: Selectable: Bounds: 12,20,0,-4 Targetable: @@ -245,6 +247,7 @@ Inherits@2: ^SpriteActor Huntable: SelectionDecorations: + WithSpriteControlGroupDecoration: Selectable: Priority: 2 RevealsShroud: diff --git a/mods/ra/rules/defaults.yaml b/mods/ra/rules/defaults.yaml index a50aed2194..7884101e2b 100644 --- a/mods/ra/rules/defaults.yaml +++ b/mods/ra/rules/defaults.yaml @@ -82,6 +82,7 @@ Beach: 40 TurnSpeed: 5 SelectionDecorations: + WithSpriteControlGroupDecoration: Selectable: Bounds: 24, 24 Targetable: @@ -189,6 +190,7 @@ Gems: 80 Beach: 80 SelectionDecorations: + WithSpriteControlGroupDecoration: Selectable: Bounds: 12,18,0,-8 Targetable: @@ -316,6 +318,7 @@ TerrainSpeeds: Water: 100 SelectionDecorations: + WithSpriteControlGroupDecoration: Selectable: Bounds: 24,24 Targetable: @@ -357,6 +360,7 @@ AppearsOnRadar: UseLocation: true SelectionDecorations: + WithSpriteControlGroupDecoration: Selectable: Bounds: 24,24 Aircraft: @@ -420,6 +424,7 @@ Inherits@2: ^IronCurtainable Inherits@3: ^SpriteActor SelectionDecorations: + WithSpriteControlGroupDecoration: Selectable: Priority: 3 Targetable: