route disconnect back to Game
This commit is contained in:
@@ -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() { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,9 +37,8 @@ namespace OpenRA.Widgets.Delegates
|
|||||||
};
|
};
|
||||||
|
|
||||||
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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user