Merge pull request #9980 from penev92/chromeLogic

Allow loading of ChromeLogic properties from YAML
This commit is contained in:
Matthias Mailänder
2015-11-22 19:21:11 +01:00
4 changed files with 17 additions and 3 deletions

View File

@@ -67,7 +67,14 @@ namespace OpenRA
foreach (var c in child.Value.Nodes)
LoadWidget(args, widget, c);
var logicNode = node.Value.Nodes.FirstOrDefault(n => n.Key == "Logic");
var logic = logicNode == null ? null : logicNode.Value.ToDictionary();
args.Add("logicArgs", logic);
widget.PostInit(args);
args.Remove("logicArgs");
return widget;
}