Merge pull request #11621 from Mailaender/text-controlgroup

Added With*ControlGroup
This commit is contained in:
reaperrr
2016-08-18 21:25:32 +02:00
committed by GitHub
11 changed files with 267 additions and 22 deletions

View File

@@ -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);
}