Elin Modding Docs Doc
Loading...
Searching...
No Matches
LayerMapList.cs
1using System;
2
3// Token: 0x0200059C RID: 1436
4public class LayerMapList : ELayer
5{
6 // Token: 0x06002766 RID: 10086 RVA: 0x000DF498 File Offset: 0x000DD698
7 public override void OnInit()
8 {
9 this.RefreshList();
10 }
11
12 // Token: 0x06002767 RID: 10087 RVA: 0x000DF4A0 File Offset: 0x000DD6A0
13 public void RefreshList()
14 {
15 this.list.sortMode = ELayer.player.pref.sortResearch;
16 BaseList baseList = this.list;
17 UIList.Callback<Zone, ItemGeneral> callback = new UIList.Callback<Zone, ItemGeneral>();
18 callback.onInstantiate = delegate(Zone a, ItemGeneral b)
19 {
20 b.SetMainText(a.Name, null, true);
21 b.Build();
22 };
23 callback.onList = delegate(UIList.SortMode m)
24 {
25 foreach (Zone zone in ELayer.game.spatials.Zones)
26 {
27 if (zone.isKnown)
28 {
29 this.list.Add(zone);
30 }
31 }
32 };
33 baseList.callbacks = callback;
34 this.list.List(false);
35 }
36
37 // Token: 0x040015E3 RID: 5603
38 public UIList list;
39}
Definition Zone.cs:14