Пример #1
0
 public string GetColorizedLocalizedName(Empire empireLooking, bool useYou = false)
 {
     if (useYou && this.Empire == empireLooking)
     {
         return(GuiEmpire.Colorize(this.Empire, AgeLocalizer.Instance.LocalizeString("%YouTitle")));
     }
     return(GuiEmpire.Colorize(this.Empire, this.Empire.LocalizedName));
 }
Пример #2
0
 public string GetColorizedLocalizedNameAndFaction(Empire empireLooking, bool useYou = false)
 {
     if (useYou && this.Empire == empireLooking)
     {
         return(GuiEmpire.Colorize(this.Empire, AgeLocalizer.Instance.LocalizeString("%YouTitle")));
     }
     if (TutorialManager.IsActivated)
     {
         return(GuiEmpire.Colorize(this.Empire, this.Empire.LocalizedName));
     }
     return(GuiEmpire.Colorize(this.Empire, this.Empire.LocalizedName + " - " + this.GuiFaction.LocalizedName));
 }
Пример #3
0
 private void Set_FortressOwnerIcon(global::Empire empire, global::Empire playerEmpire)
 {
     this.Empire       = empire;
     this.PlayerEmpire = playerEmpire;
     if (this.Empire != null)
     {
         if (!this.IsKnownByEmpirePlayer)
         {
             this.EmpireLabel.Text = GuiEmpire.Colorize(this.Empire, "???");
         }
         else
         {
             this.EmpireLabel.Text = GuiEmpire.Colorize(this.Empire, GuiEmpire.GetFactionSymbolString(this.Empire, this.PlayerEmpire));
         }
     }
     else
     {
         this.EmpireLabel.Text = string.Empty;
         AgePrimitiveLabel empireLabel = this.EmpireLabel;
         empireLabel.Text += 'Ẑ';
     }
 }