private void DepartmentOfScience_TechnologyUnlocked(object sender, ConstructibleElementEventArgs e) { if (base.IsVisible && this.City != null && e.ConstructibleElement.Name == "TechnologyDefinitionNecrophages8") { CityInfoPanel.ShowHidePopulationSacrificeButton(this.playerControllerRepository.ActivePlayerController.Empire, this.DepartmentOfScience, this.PopulationSacrificeButton); CityInfoPanel.RefreshPopulationSacrificeButton(this.playerControllerRepository.ActivePlayerController.Empire, this.City, this.PopulationSacrificeButton); } }
private void RefreshButtons() { if (this.PopulationBuyoutButton.AgeTransform.Visible) { CityInfoPanel.RefreshPopulationBuyoutButton(this.playerControllerRepository.ActivePlayerController.Empire, this.City, this.PopulationBuyoutButton); } if (this.PopulationSacrificeButton.AgeTransform.Visible) { CityInfoPanel.RefreshPopulationSacrificeButton(this.playerControllerRepository.ActivePlayerController.Empire, this.City, this.PopulationSacrificeButton); } }