Definition at line 4 of file UIButtonList.cs.
◆ AddButton()
void UIButtonList.AddButton |
( |
object |
obj, |
|
|
string |
text, |
|
|
Action |
onClick, |
|
|
Action< UIButton > |
onInstantiate = null |
|
) |
| |
|
inline |
Definition at line 11 of file UIButtonList.cs.
12 {
14 {
15 obj = obj,
16 text = text,
17 onClick = onClick,
18 onInstantiate = onInstantiate
19 });
20 }
References Add().
Referenced by Dialog._Confetti(), Dialog.AddButton(), LayerNewZone.Embark(), Dialog.Gift(), Dialog.InputName(), Dialog.Ok(), LayerGacha.PlayGacha(), Dialog.Recipe(), Dialog.TryWarn(), and Dialog.YesNo().
◆ OnInstantiate()
override void UIButtonList.OnInstantiate |
( |
RefObjectEx |
o, |
|
|
UIButton |
t |
|
) |
| |
|
inline |
Definition at line 6 of file UIButtonList.cs.
7 {
8 t.mainText.text = o.text;
9 }
◆ Select()
new void UIButtonList.Select |
( |
object |
obj, |
|
|
bool |
invoke = false |
|
) |
| |
|
inline |
Definition at line 22 of file UIButtonList.cs.
23 {
24 for (int i = 0; i < items.Count; i++)
25 {
26 RefObject refObject = (RefObject)items[i];
27 if (obj.Equals(refObject.obj))
28 {
29 base.Select(i, invoke);
30 return;
31 }
32 }
33 Debug.Log(obj?.ToString() + obj.GetType());
34 }
References Debug.
The documentation for this class was generated from the following file: