Fix ModChooser UI

This commit is contained in:
Pavel Penev
2015-09-08 20:17:27 +03:00
parent 863814105b
commit 1e57f13ecd
2 changed files with 10 additions and 7 deletions

View File

@@ -41,7 +41,8 @@ namespace OpenRA.Mods.Common.LoadScreens
public void StartGame(Arguments args)
{
Ui.LoadWidget("MODCHOOSER", Ui.Root, new WidgetArgs());
Ui.LoadWidget("MODCHOOSER_BACKGROUND", Ui.Root, new WidgetArgs());
Ui.OpenWindow("MODCHOOSER_DIALOG");
}
public void Dispose()

View File

@@ -1,8 +1,10 @@
Background@MODCHOOSER:
Logic:ModBrowserLogic
Background@MODCHOOSER_BACKGROUND:
Background: background
Width:WINDOW_RIGHT
Height:WINDOW_BOTTOM
Background@MODCHOOSER_DIALOG:
Logic:ModBrowserLogic
Children:
Container:
X:(WINDOW_RIGHT - WIDTH)/2
@@ -10,7 +12,7 @@ Background@MODCHOOSER:
Width:750
Height:550-4-32
Children:
Background@bg:
Background@DIALOG_BACKGROUND:
Y:69
Width:PARENT_RIGHT
Height:PARENT_BOTTOM - 69
@@ -123,16 +125,16 @@ Background@MODCHOOSER:
X:PARENT_RIGHT - 53 - WIDTH - 170
Y:PARENT_BOTTOM - 25 - HEIGHT
Width:140
Height:35
Height:32
Text:Load Mod
Button@QUIT_BUTTON:
Background:button-highlighted
X:PARENT_RIGHT - 53 - WIDTH
Y:PARENT_BOTTOM - 25 - HEIGHT
Width:140
Height:35
Height:32
Text:Quit
Background@header:
Background@DIALOG_HEADER:
Width:PARENT_RIGHT
Height:72
Background:panel-header