Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
UIMultiList.cs
Go to the documentation of this file.
1
using
System.Collections.Generic;
2
using
UnityEngine;
3
4
public
class
UIMultiList
: MonoBehaviour
5
{
6
public
List<ListOwner>
owners
=
new
List<ListOwner>();
7
8
public
Layer
layer
;
9
10
public
Window
[]
windows
;
11
12
public
UIList
[]
lists
;
13
14
public
UIHeader
[]
headers
;
15
16
public
bool
Double
;
17
18
public
bool
addTab
;
19
20
public
void
Clear
()
21
{
22
owners
.Clear();
23
}
24
25
public
void
AddOwner
(
int
i,
ListOwner
o)
26
{
27
o.index =
owners
.Count;
28
owners
.Add(o);
29
o.layer =
layer
;
30
o.window =
windows
[i];
31
o.list =
lists
[i];
32
o.multi =
this
;
33
o.main = i == 0;
34
if
(!
Double
&&
addTab
)
35
{
36
o.tab = o.
window
.
AddTab
(o.
TextTab
);
37
}
38
o.
OnCreate
();
39
}
40
41
public
void
Build
(
UIList
.
SortMode
m =
UIList
.
SortMode
.ByNone)
42
{
43
foreach
(
ListOwner
owner
in
owners
)
44
{
45
owner.list.sortMode = m;
46
}
47
if
(
Double
)
48
{
49
owners
[0].other =
owners
[1];
50
owners
[1].other =
owners
[0];
51
}
52
}
53
54
public
void
Refresh
()
55
{
56
foreach
(
ListOwner
owner
in
owners
)
57
{
58
owner.
OnSwitchContent
();
59
}
60
}
61
}
Layer
Definition:
Layer.cs:9
ListOwner
Definition:
ListOwner.cs:2
ListOwner.OnSwitchContent
virtual void OnSwitchContent()
Definition:
ListOwner.cs:77
ListOwner.TextTab
virtual string TextTab
Definition:
ListOwner.cs:55
ListOwner.OnCreate
virtual void OnCreate()
Definition:
ListOwner.cs:73
ListOwner.window
Window window
Definition:
ListOwner.cs:19
UIHeader
Definition:
UIHeader.cs:4
UIList
Definition:
UIList.cs:9
UIList.SortMode
SortMode
Definition:
UIList.cs:27
UIMultiList
Definition:
UIMultiList.cs:5
UIMultiList.addTab
bool addTab
Definition:
UIMultiList.cs:18
UIMultiList.AddOwner
void AddOwner(int i, ListOwner o)
Definition:
UIMultiList.cs:25
UIMultiList.Clear
void Clear()
Definition:
UIMultiList.cs:20
UIMultiList.layer
Layer layer
Definition:
UIMultiList.cs:8
UIMultiList.windows
Window[] windows
Definition:
UIMultiList.cs:10
UIMultiList.Double
bool Double
Definition:
UIMultiList.cs:16
UIMultiList.owners
List< ListOwner > owners
Definition:
UIMultiList.cs:6
UIMultiList.headers
UIHeader[] headers
Definition:
UIMultiList.cs:14
UIMultiList.Refresh
void Refresh()
Definition:
UIMultiList.cs:54
UIMultiList.lists
UIList[] lists
Definition:
UIMultiList.cs:12
UIMultiList.Build
void Build(UIList.SortMode m=UIList.SortMode.ByNone)
Definition:
UIMultiList.cs:41
Window
Definition:
Window.cs:13
Window.AddTab
Setting.Tab AddTab(string idLang, UIContent content=null, Action action=null, Sprite sprite=null, string langTooltip=null)
Definition:
Window.cs:1443
Elin
UIMultiList.cs
Generated by
1.9.6