2using System.Collections.Generic;
108 public List<ReportData>
reports =
new List<ReportData>();
133 textContentLv.text = branch.DangerLV +
" " + (
"(" + branch.ContentLV +
")").TagSize(12);
142 textDev.text = (EMono._zone.development / 10).ToString() ??
"";
143 textLand.text = EMono._map.bounds.Width * EMono._map.bounds.Height / 100 +
" ㎢";
145 textCivility.text = civility +
" " + (
"(" +
Lang.
GetList(
"civility")[Mathf.Clamp(civility / 20, 0, 4)] +
")").TagSize(12);
148 textElec.
SetText(
"elecLv".lang(electricity2.ToString() ??
"", (electricity.ToString() ??
"").TagColor((electricity <= electricity2) ?
FontColor.Good :
FontColor.Bad)));
149 if (electricity > electricity2)
155 textSoil.
SetText(
"soilLv".lang(maxSoil.ToString() ??
"", ((maxSoil - soilCost).ToString() ??
"").TagColor((soilCost <= maxSoil) ?
FontColor.Good :
FontColor.Bad)));
156 if (soilCost > maxSoil)
166 barTemper.fillAmount = 0.5f + (float)
branch.
temper * 0.01f * 0.5f;
195 for (
int j = 0; j < array.Length; j++)
197 string text = array[j].Replace(Environment.NewLine,
"");
213 note2.
AddHeader(
"HeaderTopic",
"rank_income".lang());
249 int happiness =
item.GetHappiness();
254 else if (happiness >= 30)
264 int avg = ((list.Count != 0) ? (num / list.Count) : 0);
265 string s =
"(" + num2.ToString().TagColor(
FontColor.Good) +
"/" + num3.ToString().TagColor(
FontColor.Default) +
"/" + num4.ToString().TagColor(
FontColor.Bad) +
")";
266 return (((list.Count == 0) ?
" - " : avg.ToString()) +
"%").TagColorGoodBad(() => list.Count == 0 || avg >= 50) +
" " + s.TagSize(13);
282 if (
item.IsCurrency &&
item.IsAvailable)
337 onShowTooltip = onShowTooltip
WorkSummary GetWorkSummary()
FactionMemberType memberType
List< Hobby > ListWorks(bool useMemberType=true)
string GetText(TextFormat format)
static FactionBranch Branch
HappinessManager happiness
int CountMembers(FactionMemberType type, bool onlyAlive=false)
ResearchManager researches
string GetHearthHint(int a)
HomeResourceManager resources
void SetTaxTooltip(UINote n)
int GetTotalTax(bool evasion)
int GetEfficiency(Chara c)
List< BaseHomeResource > list
override void WriteNote(UINote n)
void SetMainText(string lang, Sprite sprite=null, bool disableMask=true)
UIButton AddSubButton(Sprite sprite, Action action, string lang=null, Action< UITooltip > onTooltip=null)
void SetResource(BaseHomeResource _r)
static string[] GetList(string id)
string GetRankText(Zone z)
string GetTextTemper(int _temper=-99999)
List< ResearchPlan > plans
List< ResearchPlan > newPlans
static SkinColorProfile CurrentColors
Action< UITooltip > onShowTooltip
void AddReport(string text, ReportData.ReportType type=ReportData.ReportType.Default, Action onClick=null, Action< UITooltip > onShowTooltip=null)
UIButton buttonHappinessLivestock
string GetTextHappiness(List< Chara > list)
UIButton buttonHappinessResident
List< ReportData > reports
override void Add(object item)
UIItem AddHeaderTopic(string text, Sprite sprite=null)
UIItem AddHeader(string text, Sprite sprite=null)
UIItem AddTopic(string id, string text, string value=null)
UIItem AddText(string text, FontColor color=FontColor.DontChange)
void Space(int sizeY=0, int sizeX=1)
void SetColor(FontColor c)
void RefreshElectricity()
int GetElectricity(bool cost=false)