Quick-fix for "Invisible chrome" bug

This commit is contained in:
Paul Chote
2010-04-09 18:23:34 +12:00
parent a78b28d394
commit a683bddfea
8 changed files with 40 additions and 37 deletions

View File

@@ -29,19 +29,19 @@ namespace OpenRA.Widgets.Delegates
public CreateServerMenuDelegate()
{
var r = Game.chrome.rootWidget;
var r = Chrome.rootWidget;
r.GetWidget("MAINMENU_BUTTON_CREATE").OnMouseUp = mi => {
Game.chrome.rootWidget.ShowMenu("CREATESERVER_BG");
r.ShowMenu("CREATESERVER_BG");
return true;
};
r.GetWidget("CREATESERVER_BUTTON_CANCEL").OnMouseUp = mi => {
Game.chrome.rootWidget.ShowMenu("MAINMENU_BG");
r.ShowMenu("MAINMENU_BG");
return true;
};
r.GetWidget("CREATESERVER_BUTTON_START").OnMouseUp = mi => {
Game.chrome.rootWidget.ShowMenu(null);
r.ShowMenu(null);
Log.Write("Creating server");
// TODO: Get this from a map chooser