9 public override void OnSwitchContent(
int idTab)
17 this.RefreshFactions(idTab == 4);
20 this.textHeader.SetText(componentInParent.GetTextHeader(componentInParent.windows[0]));
24 public void RefreshFactions(
bool religion)
26 UIList uilist = this.listFaction;
34 this.info.SetReligion(a);
39 b.SetMainText(a.Name,
this.spriteFaith,
true);
40 b.SetSubText(a.TextType, 260, FontColor.Default, TextAnchor.MiddleRight);
41 a.SetTextRelation(b.button1.subText);
43 b.button1.refStr = a.id;
46 using (Dictionary<string, Religion>.ValueCollection.Enumerator enumerator =
EClass.game.religions.dictAll.Values.GetEnumerator())
48 while (enumerator.MoveNext())
50 Religion religion2 = enumerator.Current;
51 if (!religion2.IsMinorGod)
53 uilist.Add(religion2);
63 this.info.SetFaction(a);
68 b.SetMainText(a.name,
this.spriteFaction,
true);
69 b.SetSubText(a.TextType, 260, FontColor.Default, TextAnchor.MiddleRight);
70 a.relation.SetTextHostility(b.button1.subText);
72 b.button1.refStr = a.id;
80 uilist.Refresh(
false);
84 public void RefreshZones()
86 UIList uilist = this.listFaction;
88 BaseList baseList = uilist;
96 this.info.SetZone(a as
Zone);
101 b.SetMainText(a.Name,
null,
true);
104 baseList.callbacks = callback;
107 if (spatial is
Zone && spatial.parent ==
EClass.pc.currentZone.Region && spatial.mainFaction ==
EClass.pc.faction)
112 uilist.Refresh(
false);
113 if (uilist.items.Count == 0)
120 public UIList listFaction;
126 public Sprite spriteFaction;
129 public Sprite spriteFaith;
132 public UIText textHeader;