Split the colorpicker logic into its own handler. Game.LoadWidget no longer adds the loaded widget to the RootWidget.

This commit is contained in:
Paul Chote
2011-05-13 15:32:04 +12:00
parent 529ed51034
commit 21267688b0
4 changed files with 75 additions and 44 deletions

View File

@@ -60,7 +60,7 @@ namespace OpenRA.Mods.RA
public void WorldLoaded(World world)
{
Game.LoadWidget(world, Info.Widget, new WidgetArgs());
Widget.RootWidget.AddChild(Game.LoadWidget(world, Info.Widget, new WidgetArgs()));
}
}
}