Beispiel #1
0
 void OpenSkirmishLobbyPanel()
 {
     SwitchMenu(MenuType.None);
     WarGame.OpenWindow("SERVER_LOBBY", new WidgetArgs
     {
         { "onExit", () => { WarGame.Disconnect(); SwitchMenu(MenuType.Singleplayer); } },
         { "onStart", RemoveShellmapUI },
         { "skirmishMode", true }
     });
 }
Beispiel #2
0
        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 }
                    });
                };
            }
        }