Pass subnodes of the widget Logic node to the corresponding ChromeLogic class

This commit is contained in:
Pavel Penev
2015-11-13 03:18:30 +02:00
parent d760ee1cd5
commit 5b185f93a1

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