Elin Modding Docs Doc
Loading...
Searching...
No Matches
UIMultiList.cs
1using System;
2using System.Collections.Generic;
3using UnityEngine;
4
5// Token: 0x020005E6 RID: 1510
6public class UIMultiList : MonoBehaviour
7{
8 // Token: 0x0600299A RID: 10650 RVA: 0x000EB001 File Offset: 0x000E9201
9 public void Clear()
10 {
11 this.owners.Clear();
12 }
13
14 // Token: 0x0600299B RID: 10651 RVA: 0x000EB010 File Offset: 0x000E9210
15 public void AddOwner(int i, ListOwner o)
16 {
17 o.index = this.owners.Count;
18 this.owners.Add(o);
19 o.layer = this.layer;
20 o.window = this.windows[i];
21 o.list = this.lists[i];
22 o.multi = this;
23 o.main = (i == 0);
24 if (!this.Double && this.addTab)
25 {
26 o.window.AddTab(o.TextTab, null, null, null, null);
27 }
28 o.OnCreate();
29 }
30
31 // Token: 0x0600299C RID: 10652 RVA: 0x000EB0A0 File Offset: 0x000E92A0
32 public void Build(UIList.SortMode m = UIList.SortMode.ByNone)
33 {
34 foreach (ListOwner listOwner in this.owners)
35 {
36 listOwner.list.sortMode = m;
37 }
38 if (this.Double)
39 {
40 this.owners[0].other = this.owners[1];
41 this.owners[1].other = this.owners[0];
42 }
43 }
44
45 // Token: 0x0600299D RID: 10653 RVA: 0x000EB138 File Offset: 0x000E9338
46 public void Refresh()
47 {
48 foreach (ListOwner listOwner in this.owners)
49 {
50 listOwner.OnSwitchContent();
51 }
52 }
53
54 // Token: 0x0400177A RID: 6010
55 public List<ListOwner> owners = new List<ListOwner>();
56
57 // Token: 0x0400177B RID: 6011
58 public Layer layer;
59
60 // Token: 0x0400177C RID: 6012
61 public Window[] windows;
62
63 // Token: 0x0400177D RID: 6013
64 public UIList[] lists;
65
66 // Token: 0x0400177E RID: 6014
67 public UIHeader[] headers;
68
69 // Token: 0x0400177F RID: 6015
70 public bool Double;
71
72 // Token: 0x04001780 RID: 6016
73 public bool addTab;
74}