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); 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.Initialize();
rootWidget.InitDelegates(); rootWidget.InitDelegates();
} }

View File

@@ -1,6 +1,4 @@
Container@ROOT: Background@SERVER_LOBBY:
Children:
Background@SERVER_LOBBY:
Id:SERVER_LOBBY Id:SERVER_LOBBY
Delegate:LobbyDelegate Delegate:LobbyDelegate
X:(WINDOW_RIGHT - WIDTH)/2 X:(WINDOW_RIGHT - WIDTH)/2
@@ -347,7 +345,7 @@ Container@ROOT:
Width:260 Width:260
Height:20 Height:20
Ticks:5 Ticks:5
Background@MAP_CHOOSER: Background@MAP_CHOOSER:
Id:MAP_CHOOSER Id:MAP_CHOOSER
X:(WINDOW_RIGHT - WIDTH)/2 X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM - HEIGHT)/2 Y:(WINDOW_BOTTOM - HEIGHT)/2

View File

@@ -1,6 +1,4 @@
Container@ROOT: Container@INGAME_ROOT:
Children:
Container@INGAME_ROOT:
Id:INGAME_ROOT Id:INGAME_ROOT
Delegate:IngameChromeDelegate Delegate:IngameChromeDelegate
Visible:false Visible:false

View File

@@ -1,6 +1,4 @@
Container@ROOT: Background@MAINMENU_BG:
Children:
Background@MAINMENU_BG:
Id:MAINMENU_BG Id:MAINMENU_BG
X:(WINDOW_RIGHT - WIDTH)/2 X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM - HEIGHT)/2 Y:(WINDOW_BOTTOM - HEIGHT)/2
@@ -58,7 +56,7 @@ Container@ROOT:
Text: Text:
Align:Right Align:Right
Bold:True Bold:True
Background@PERF_BG: Background@PERF_BG:
ClickThrough:true ClickThrough:true
Id:PERF_BG Id:PERF_BG
Background:dialog4 Background:dialog4
@@ -81,7 +79,7 @@ Container@ROOT:
Y:205 Y:205
Width:170 Width:170
Height:40 Height:40
Background@MUSIC_BG: Background@MUSIC_BG:
Id:MUSIC_BG Id:MUSIC_BG
Delegate:MusicPlayerDelegate Delegate:MusicPlayerDelegate
X:WINDOW_RIGHT - 175 X:WINDOW_RIGHT - 175

View File

@@ -1,6 +1,4 @@
Container@ROOT: Background@CREATESERVER_BG:
Children:
Background@CREATESERVER_BG:
Id:CREATESERVER_BG Id:CREATESERVER_BG
Delegate:CreateServerMenuDelegate Delegate:CreateServerMenuDelegate
X:(WINDOW_RIGHT - WIDTH)/2 X:(WINDOW_RIGHT - WIDTH)/2
@@ -95,7 +93,7 @@ Container@ROOT:
Height:25 Height:25
Text:Cancel Text:Cancel
Bold:True Bold:True
Background@JOINSERVER_BG: Background@JOINSERVER_BG:
Id:JOINSERVER_BG Id:JOINSERVER_BG
Delegate:ServerBrowserDelegate Delegate:ServerBrowserDelegate
X:(WINDOW_RIGHT - WIDTH)/2 X:(WINDOW_RIGHT - WIDTH)/2
@@ -247,7 +245,7 @@ Container@ROOT:
Height:25 Height:25
Text:Cancel Text:Cancel
Bold:True Bold:True
Background@DIRECTCONNECT_BG: Background@DIRECTCONNECT_BG:
Id:DIRECTCONNECT_BG Id:DIRECTCONNECT_BG
Delegate:ServerBrowserDelegate Delegate:ServerBrowserDelegate
X:(WINDOW_RIGHT - WIDTH)/2 X:(WINDOW_RIGHT - WIDTH)/2
@@ -296,7 +294,7 @@ Container@ROOT:
Height:25 Height:25
Text:Cancel Text:Cancel
Bold:True Bold:True
Background@CONNECTION_FAILED_BG: Background@CONNECTION_FAILED_BG:
Id:CONNECTION_FAILED_BG Id:CONNECTION_FAILED_BG
Delegate:ConnectionDialogsDelegate Delegate:ConnectionDialogsDelegate
X:(WINDOW_RIGHT - WIDTH)/2 X:(WINDOW_RIGHT - WIDTH)/2
@@ -338,7 +336,7 @@ Container@ROOT:
Height:25 Height:25
Text:Cancel Text:Cancel
Bold:True Bold:True
Background@CONNECTING_BG: Background@CONNECTING_BG:
Id:CONNECTING_BG Id:CONNECTING_BG
Delegate:ConnectionDialogsDelegate Delegate:ConnectionDialogsDelegate
X:(WINDOW_RIGHT - WIDTH)/2 X:(WINDOW_RIGHT - WIDTH)/2

View File

@@ -1,6 +1,4 @@
Container@ROOT: Background@SETTINGS_MENU:
Children:
Background@SETTINGS_MENU:
Id:SETTINGS_MENU Id:SETTINGS_MENU
Delegate:SettingsMenuDelegate Delegate:SettingsMenuDelegate
X:(WINDOW_RIGHT - WIDTH)/2 X:(WINDOW_RIGHT - WIDTH)/2