Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
UIListEx.cs
Go to the documentation of this file.
1
using
System;
2
using
UnityEngine;
3
4
public
class
UIListEx
<T> :
UIList
where T : Component
5
{
6
public
class
RefObjectEx
:
RefObject
7
{
8
public
Action
onClick
;
9
10
public
Action<T>
onInstantiate
;
11
12
public
string
text
;
13
}
14
15
public
T
mold
;
16
17
public
override
void
Refresh
(
bool
highlightLast =
false
)
18
{
19
if
(
callbacks
==
null
)
20
{
21
callbacks
=
new
Callback<RefObjectEx, T>
22
{
23
onClick = delegate(
RefObjectEx
a, T b)
24
{
25
if
(a.
onClick
!=
null
)
26
{
27
a.
onClick
();
28
}
29
},
30
onInstantiate = delegate(
RefObjectEx
a, T b)
31
{
32
OnInstantiate
(a, b);
33
if
(a.
onInstantiate
!=
null
)
34
{
35
a.
onInstantiate
(b);
36
}
37
},
38
mold
=
mold
39
};
40
}
41
base.Refresh();
42
}
43
44
public
virtual
void
OnInstantiate
(
RefObjectEx
o, T t)
45
{
46
}
47
}
BaseList.callbacks
UIList.ICallback callbacks
Definition:
BaseList.cs:13
UIListEx.RefObjectEx
Definition:
UIListEx.cs:7
UIListEx.RefObjectEx.onClick
Action onClick
Definition:
UIListEx.cs:8
UIListEx.RefObjectEx.onInstantiate
Action< T > onInstantiate
Definition:
UIListEx.cs:10
UIListEx.RefObjectEx.text
string text
Definition:
UIListEx.cs:12
UIListEx
Definition:
UIListEx.cs:5
UIListEx.Refresh
override void Refresh(bool highlightLast=false)
Definition:
UIListEx.cs:17
UIListEx.OnInstantiate
virtual void OnInstantiate(RefObjectEx o, T t)
Definition:
UIListEx.cs:44
UIListEx.mold
T mold
Definition:
UIListEx.cs:15
UIList.Callback
Definition:
UIList.cs:53
UIList.RefObject
Definition:
UIList.cs:11
UIList
Definition:
UIList.cs:9
Elin
Plugins.UI
UIListEx.cs
Generated by
1.9.6