private void OpenRelocateView(string data) { string text = Service.CurrentPlayer.PlanetId; CampaignScreenSection section = CampaignScreenSection.Main; if (!string.IsNullOrEmpty(data)) { string[] array = data.Split(new char[] { '|' }); if (array.Length >= 1) { text = array[0]; } } bool flag = Service.BuildingLookupController.HasNavigationCenter(); if (flag) { if (this.holonetScreen != null) { this.holonetScreen.Close(null); } Service.GalaxyViewController.GoToPlanetView(text, section); PlanetVO planetVO = Service.StaticDataController.Get <PlanetVO>(text); ConfirmRelocateScreen.ShowModal(planetVO, null, null); } else { Service.UXController.MiscElementsManager.ShowPlayerInstructionsError(Service.Lang.Get("HOLONET_RELOCATE_NO_PC", new object[0])); } }
public void OnRelocateButton(UXButton button) { ConfirmRelocateScreen.ShowModal(this.screen.viewingPlanetVO, null, null); }