9 public override void OnSwitchContent(
int idTab)
17 List<RankedZone> ranks =
EClass.game.spatials.ranks.GetList();
18 UIDynamicList list = this.listRanking;
20 BaseList list2 = list;
22 callback.onClick = delegate(
RankedZone a, UIItem b)
25 callback.onRedraw = delegate(
RankedZone a, UIItem b,
int i)
27 b.text1.text = ((a.z.visitCount > 0) ? a.Name :
"?????");
28 b.text2.text =
string.Format(
"{0:#,0}", a.Value);
29 b.text3.text = (a.rank.ToString() ??
"");
30 b.text4.text = a.GetFactionName();
31 b.image1.sprite = (a.GetSprite() ?? b.image1.sprite);
32 b.image1.SetNativeSize();
33 b.text3.color = this.colors[(a.rank <= 3) ? 0 : ((a.rank <= 10) ? 1 : ((a.rank <= 100) ? 2 : 3))];
34 b.image2.SetActive(a.z.IsPCFaction);
36 callback.onList = delegate(UIList.SortMode m)
43 callback.onRefresh =
null;
44 list2.callbacks = callback;
49 if (rankedZone.z ==
EClass._zone)
51 num = list.objects.IndexOf(rankedZone);
56 list.dsv.scrollByItemIndex(num);
59 this.RebuildLayout(
true);
63 public UIDynamicList listRanking;
66 public Color[] colors;