void OpenSkirmishLobbyPanel() { SwitchMenu(MenuType.None); WarGame.OpenWindow("SERVER_LOBBY", new WidgetArgs { { "onExit", () => { WarGame.Disconnect(); SwitchMenu(MenuType.Singleplayer); } }, { "onStart", RemoveShellmapUI }, { "skirmishMode", true } }); }
void ConnectionStateChanged(OrderManager om) { if (om.Connection.ConnectionState == ConnectionState.NotConnected) { UI.CloseWindow(); Action onConnect = () => { WarGame.OpenWindow("SERVER_LOBBY", new WidgetArgs() { { "onExit", onExit }, { "onStart", onStart }, { "skirmishMode", false } }); }; } }