Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
UIItemList.cs
Go to the documentation of this file.
1using System;
2
3public class UIItemList : UIListEx<UIItem>
4{
5 public override void OnInstantiate(RefObjectEx o, UIItem t)
6 {
7 if ((bool)t.text1)
8 {
9 t.text1.text = o.text;
10 }
11 }
12
13 public void AddItem(object obj, string text, Action<UIItem> onInstantiate = null)
14 {
15 Add(new RefObjectEx
16 {
17 obj = obj,
18 text = text,
19 onInstantiate = onInstantiate
20 });
21 }
22}
list. Add(item3)
override void OnInstantiate(RefObjectEx o, UIItem t)
Definition: UIItemList.cs:5
void AddItem(object obj, string text, Action< UIItem > onInstantiate=null)
Definition: UIItemList.cs:13
Definition: UIItem.cs:5
UIText text1
Definition: UIItem.cs:6