don't mention rootwidget in chrome yaml

This commit is contained in:
Bob
2010-07-31 14:05:57 +12:00
parent fd5d441086
commit f49ec8d6b9
6 changed files with 1406 additions and 1413 deletions

View File

@@ -54,8 +54,11 @@ namespace OpenRA.Widgets
if (rootWidget == null)
{
var widgetYaml = Game.Manifest.ChromeLayout.Select(a => MiniYaml.FromFile(a)).Aggregate(MiniYaml.Merge);
rootWidget = new ContainerWidget();
foreach( var w in widgetYaml )
rootWidget.AddChild( WidgetLoader.LoadWidget( w ) );
rootWidget = WidgetLoader.LoadWidget( widgetYaml.FirstOrDefault() );
rootWidget.Initialize();
rootWidget.InitDelegates();
}