コード例 #1
0
ファイル: CityInfoPanel.cs プロジェクト: LeaderEnemyBoss/ELCP
 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);
     }
 }
コード例 #2
0
ファイル: CityInfoPanel.cs プロジェクト: LeaderEnemyBoss/ELCP
 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);
     }
 }