hide the dialog in join cases, too

This commit is contained in:
Chris Forbes
2010-03-16 20:28:52 +13:00
parent d4993778e1
commit 560019e15f

View File

@@ -86,13 +86,15 @@ namespace OpenRA.Widgets.Delegates
}
if (w.Id == "JOINSERVER_BUTTON_DIRECTCONNECT")
{
{
Game.chrome.rootWidget.GetWidget("JOINSERVER_BG").Visible = false;
Game.JoinServer(Game.Settings.NetworkHost, Game.Settings.NetworkPort);
return true;
}
if (w.Id.Substring(0,10) == "JOIN_GAME_")
{
{
Game.chrome.rootWidget.GetWidget("JOINSERVER_BG").Visible = false;
int index = int.Parse(w.Id.Substring(10));
var game = GameList[index];
Game.JoinServer(game.Address.Split(':')[0], int.Parse(game.Address.Split(':')[1]));