Ejemplo n.º 1
0
        public override void Select()
        {
            base.Select();

            if (GameMain.Client != null)
            {
                GameMain.Client.Disconnect();
                GameMain.Client = null;
            }

            Submarine.Unload();

            ResetButtonStates(null);

            GameAnalyticsManager.SetCustomDimension01("");

            #if OSX
            // Hack for adjusting the viewport properly after splash screens on older Macs
            if (firstLoadOnMac)
            {
                firstLoadOnMac = false;

                menuTabs[(int)Tab.Empty] = new GUIFrame(new RectTransform(new Vector2(1f, 1f), GUI.Canvas), "", Color.Transparent)
                {
                    CanBeFocused = false
                };
                var emptyList = new GUIListBox(new RectTransform(new Vector2(0.0f, 0.0f), menuTabs[(int)Tab.Empty].RectTransform))
                {
                    CanBeFocused = false
                };

                SelectTab(null, Tab.Empty);
            }
            #endif
        }
Ejemplo n.º 2
0
        public override void Select()
        {
            base.Select();

            if (GameMain.Client != null)
            {
                GameMain.Client.Disconnect();
                GameMain.Client = null;
            }

            Submarine.Unload();

            ResetButtonStates(null);

            GameAnalyticsManager.SetCustomDimension01("");
        }
Ejemplo n.º 3
0
        public override void Select()
        {
            base.Select();

            if (GameMain.NetworkMember != null)
            {
                GameMain.NetworkMember.Disconnect();
                GameMain.NetworkMember = null;
            }

            Submarine.Unload();

            campaignSetupUI.UpdateSubList();

            SelectTab(null, 0);

            GameAnalyticsManager.SetCustomDimension01("");
        }
Ejemplo n.º 4
0
        public override void Select()
        {
            base.Select();

            if (GameMain.Client != null)
            {
                GameMain.Client.Disconnect();
                GameMain.Client = null;
            }

            Submarine.Unload();

            UpdateTutorialList();

            campaignSetupUI.UpdateSubList(Submarine.SavedSubmarines);

            ResetButtonStates(null);

            GameAnalyticsManager.SetCustomDimension01("");
        }
Ejemplo n.º 5
0
        public override void Select()
        {
            base.Select();

            CampaignMode campaign = GameMain.GameSession.GameMode as CampaignMode;

            if (campaign == null)
            {
                return;
            }

            locationTitle.Text = TextManager.Get("Location") + ": " + campaign.Map.CurrentLocation.Name;

            bottomPanel.ClearChildren();
            campaignUI                    = new CampaignUI(campaign, bottomPanel);
            campaignUI.StartRound         = StartRound;
            campaignUI.OnLocationSelected = SelectLocation;
            campaignUI.UpdateCharacterLists();

            GameAnalyticsManager.SetCustomDimension01("singleplayer");
        }
Ejemplo n.º 6
0
        public override void Select()
        {
            base.Select();

            CampaignMode campaign = GameMain.GameSession.GameMode as CampaignMode;

            if (campaign == null)
            {
                return;
            }

            campaign.Map.SelectLocation(-1);

            campaignUIContainer.ClearChildren();
            campaignUI = new CampaignUI(campaign, campaignUIContainer)
            {
                StartRound         = StartRound,
                OnLocationSelected = SelectLocation
            };
            campaignUI.UpdateCharacterLists();

            GameAnalyticsManager.SetCustomDimension01("singleplayer");
        }