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

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

View File

@@ -1,5 +1,3 @@
Container@ROOT:
Children:
Background@SERVER_LOBBY:
Id:SERVER_LOBBY
Delegate:LobbyDelegate

View File

@@ -1,5 +1,3 @@
Container@ROOT:
Children:
Container@INGAME_ROOT:
Id:INGAME_ROOT
Delegate:IngameChromeDelegate

View File

@@ -1,5 +1,3 @@
Container@ROOT:
Children:
Background@MAINMENU_BG:
Id:MAINMENU_BG
X:(WINDOW_RIGHT - WIDTH)/2

View File

@@ -1,5 +1,3 @@
Container@ROOT:
Children:
Background@CREATESERVER_BG:
Id:CREATESERVER_BG
Delegate:CreateServerMenuDelegate

View File

@@ -1,5 +1,3 @@
Container@ROOT:
Children:
Background@SETTINGS_MENU:
Id:SETTINGS_MENU
Delegate:SettingsMenuDelegate