private void CleanUpLootScreen() { if (this.lootScreen != null) { this.lootScreen.OnModalResult = null; this.lootScreen.CloseNoTransition(null); this.lootScreen = null; } }
private void OnPlanetInfoButtonClicked(UXButton button) { button.Enabled = false; Service.EventManager.SendEvent(EventId.LootTableButtonTapped, null); Planet currentPlanet = this.screen.CurrentPlanet; this.lootScreen = new PlanetLootTableScreen(currentPlanet); this.lootScreen.OnModalResult = new OnScreenModalResult(this.OnScreenClosed); Service.ScreenController.AddScreen(this.lootScreen, false); if (this.newBadge.Visible) { this.SaveLastFeaturedLootHash(); } this.screen.ShowPlanetInfoUI(); this.screen.UpdateCurrentPlanet(this.screen.CurrentPlanet); Service.GalaxyViewController.SwitchToObjectiveDetails(false); }
private void OnScreenClosed(object result, object cookie) { if (this.planetInfoButton != null) { this.planetInfoButton.Enabled = true; } if (this.lootScreen != null) { this.lootScreen = null; Service.Get <GalaxyPlanetController>().UpdateEventEffectStatus(this.screen.CurrentPlanet); this.screen.HidePlanetInfoUI(); Service.Get <GalaxyViewController>().SwitchFromObjectiveDetails(); } else { this.screen.HidePlanetInfoUI(); } this.newBadge.Visible = false; }