route disconnect back to Game

This commit is contained in:
Chris Forbes
2010-05-05 17:37:18 +12:00
parent 75f5855881
commit d85bde324e
2 changed files with 5 additions and 4 deletions

View File

@@ -597,5 +597,7 @@ namespace OpenRA
public static void Exit() { quit = true; } public static void Exit() { quit = true; }
public static void Debug(string s) { chat.AddLine(Color.White, "Debug", s); } public static void Debug(string s) { chat.AddLine(Color.White, "Debug", s); }
public static void Disconnect() { }
} }
} }

View File

@@ -36,10 +36,9 @@ namespace OpenRA.Widgets.Delegates
return true; return true;
}; };
optionsBG.GetWidget("BUTTON_DISCONNECT").OnMouseUp = mi => { optionsBG.GetWidget("BUTTON_DISCONNECT").OnMouseUp = mi => {
// Todo: Do this cleanly, so we don't crash optionsBG.Visible = false;
//Game.JoinLocal(); Game.Disconnect();
//Game.LoadShellMap(new Manifest(Game.LobbyInfo.GlobalSettings.Mods).ShellmapUid);
return true; return true;
}; };