Make Game.LoadWidget / Widget.LoadWidget consistent.

This commit is contained in:
Paul Chote
2011-05-13 15:53:46 +12:00
parent 21267688b0
commit 1526b6ff37
7 changed files with 12 additions and 9 deletions

View File

@@ -114,14 +114,14 @@ namespace OpenRA
}
// Load a widget with world, orderManager, worldRenderer args, without adding it to the widget tree
public static Widget LoadWidget(World world, string widget, WidgetArgs args)
public static Widget LoadWidget(World world, string id, Widget parent, WidgetArgs args)
{
return Game.modData.WidgetLoader.LoadWidget(new WidgetArgs(args)
{
{ "world", world },
{ "orderManager", orderManager },
{ "worldRenderer", worldRenderer },
}, null, widget);
}, parent, id);
}
static ActionQueue afterTickActions = new ActionQueue();