Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
UIButtonList Class Reference
Inheritance diagram for UIButtonList:
UIListEx< UIButton >

Public Member Functions

override void OnInstantiate (RefObjectEx o, UIButton t)
 
void AddButton (object obj, string text, Action onClick, Action< UIButton > onInstantiate=null)
 
new void Select (object obj, bool invoke=false)
 
- Public Member Functions inherited from UIListEx< UIButton >
override void Refresh (bool highlightLast=false)
 
virtual void OnInstantiate (RefObjectEx o, T t)
 

Additional Inherited Members

- Public Attributes inherited from UIListEx< UIButton >
mold
 

Detailed Description

Definition at line 4 of file UIButtonList.cs.

Member Function Documentation

◆ AddButton()

void UIButtonList.AddButton ( object  obj,
string  text,
Action  onClick,
Action< UIButton onInstantiate = null 
)
inline

Definition at line 11 of file UIButtonList.cs.

12 {
13 Add(new RefObjectEx
14 {
15 obj = obj,
16 text = text,
17 onClick = onClick,
18 onInstantiate = onInstantiate
19 });
20 }
list. Add(item3)

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: