Pass WidgetArgs to Widget.Initialize. Use this to allow for custom substitutions.

This commit is contained in:
Paul Chote
2011-05-17 18:57:41 +12:00
parent b417118429
commit 5bc0ef69ad
6 changed files with 18 additions and 10 deletions

View File

@@ -52,7 +52,7 @@ namespace OpenRA
if (child.Key != "Children")
FieldLoader.LoadField(widget, child.Key, child.Value.Value);
widget.Initialize();
widget.Initialize(args);
foreach (var child in node.Value.Nodes)
if (child.Key == "Children")