Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
ListOwner.cs
Go to the documentation of this file.
1public class ListOwner<T1, T2> : ListOwner
2{
3 public virtual void OnClick(T1 a, T2 b)
4 {
5 }
6
7 public virtual void OnInstantiate(T1 a, T2 b)
8 {
9 }
10
11 public virtual void OnList()
12 {
13 }
14}
15public class ListOwner : EClass
16{
17 public Layer layer;
18
19 public Window window;
20
22
24
25 public UIList list;
26
28
30
31 public string textTab;
32
33 public string textHeader;
34
35 public bool main;
36
37 public int index;
38
40 {
41 get
42 {
43 if (!main)
44 {
45 return other;
46 }
47 return this;
48 }
49 }
50
51 public virtual string IdTitle => GetType().Name;
52
53 public virtual string IdHeaderRow => null;
54
55 public virtual string TextTab => textTab.lang();
56
57 public virtual string TextHeader
58 {
59 get
60 {
61 if (!textHeader.IsEmpty())
62 {
63 return textHeader.lang();
64 }
65 return "";
66 }
67 }
68
69 public virtual void List()
70 {
71 }
72
73 public virtual void OnCreate()
74 {
75 }
76
77 public virtual void OnSwitchContent()
78 {
79 List();
81 if (Lang.GetList(IdTitle) != null)
82 {
84 }
85 if (!textHeader.IsEmpty())
86 {
88 }
89 }
90
91 public virtual void OnRefreshMenu()
92 {
95 }
96
97 public void RefreshTab()
98 {
99 tab.button.mainText.SetText(TextTab);
100 }
101
102 public void MoveToOther(object c)
103 {
105 other.List();
106 list.RebuildLayoutTo(layer);
107 SE.Resource();
108 }
109}
Definition: EClass.cs:5
Definition: Lang.cs:6
static string[] GetList(string id)
Definition: Lang.cs:114
Definition: Layer.cs:9
Window.Setting.Tab tab
Definition: ListOwner.cs:29
virtual void List()
Definition: ListOwner.cs:69
virtual void OnList()
Definition: ListOwner.cs:11
ListOwner Main
Definition: ListOwner.cs:40
int index
Definition: ListOwner.cs:37
void MoveToOther(object c)
Definition: ListOwner.cs:102
ListOwner other
Definition: ListOwner.cs:23
virtual void OnInstantiate(T1 a, T2 b)
Definition: ListOwner.cs:7
void RefreshTab()
Definition: ListOwner.cs:97
virtual void OnSwitchContent()
Definition: ListOwner.cs:77
virtual string TextTab
Definition: ListOwner.cs:55
string textHeader
Definition: ListOwner.cs:33
UIList list
Definition: ListOwner.cs:25
Layer layer
Definition: ListOwner.cs:17
string textTab
Definition: ListOwner.cs:31
virtual void OnCreate()
Definition: ListOwner.cs:73
WindowMenu menu
Definition: ListOwner.cs:27
virtual void OnClick(T1 a, T2 b)
Definition: ListOwner.cs:3
virtual string IdHeaderRow
Definition: ListOwner.cs:53
Window window
Definition: ListOwner.cs:19
virtual string IdTitle
Definition: ListOwner.cs:51
bool main
Definition: ListOwner.cs:35
UIMultiList multi
Definition: ListOwner.cs:21
virtual void OnRefreshMenu()
Definition: ListOwner.cs:91
virtual string TextHeader
Definition: ListOwner.cs:58
Definition: UIList.cs:9
void RemoveDynamic(object item)
Definition: UIList.cs:336
void Clear()
Definition: WindowMenu.cs:44
Definition: Window.cs:13
WindowMenu menuRight
Definition: Window.cs:709
void SetCaption(string text)
Definition: Window.cs:1289
WindowMenu menuLeft
Definition: Window.cs:700
void SetTitles(string langList, string idHeaderRow=null)
Definition: Window.cs:1262