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 }
public override void Select() { base.Select(); if (GameMain.Client != null) { GameMain.Client.Disconnect(); GameMain.Client = null; } Submarine.Unload(); ResetButtonStates(null); GameAnalyticsManager.SetCustomDimension01(""); }
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(""); }
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(""); }
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"); }
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"); }