Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
UIMultiList Class Reference
Inheritance diagram for UIMultiList:

Public Member Functions

void Clear ()
 
void AddOwner (int i, ListOwner o)
 
void Build (UIList.SortMode m=UIList.SortMode.ByNone)
 
void Refresh ()
 

Public Attributes

List< ListOwnerowners = new List<ListOwner>()
 
Layer layer
 
Window[] windows
 
UIList[] lists
 
UIHeader[] headers
 
bool Double
 
bool addTab
 

Detailed Description

Definition at line 4 of file UIMultiList.cs.

Member Function Documentation

◆ AddOwner()

void UIMultiList.AddOwner ( int  i,
ListOwner  o 
)
inline

Definition at line 25 of file UIMultiList.cs.

26 {
27 o.index = owners.Count;
28 owners.Add(o);
29 o.layer = layer;
30 o.window = windows[i];
31 o.list = lists[i];
32 o.multi = this;
33 o.main = i == 0;
34 if (!Double && addTab)
35 {
36 o.tab = o.window.AddTab(o.TextTab);
37 }
38 o.OnCreate();
39 }
virtual string TextTab
Definition: ListOwner.cs:55
virtual void OnCreate()
Definition: ListOwner.cs:73
Window window
Definition: ListOwner.cs:19
Layer layer
Definition: UIMultiList.cs:8
Window[] windows
Definition: UIMultiList.cs:10
List< ListOwner > owners
Definition: UIMultiList.cs:6
UIList[] lists
Definition: UIMultiList.cs:12
Setting.Tab AddTab(string idLang, UIContent content=null, Action action=null, Sprite sprite=null, string langTooltip=null)
Definition: Window.cs:1443

References Window.AddTab(), addTab, Double, layer, lists, ListOwner< T1, T2 >.OnCreate(), owners, ListOwner< T1, T2 >.TextTab, ListOwner< T1, T2 >.window, and windows.

Referenced by LayerPeople.Create(), LayerPeople.Create< T >(), LayerPeople.CreateBed(), LayerPeople.CreateReserve(), LayerPeople.CreateSelect(), LayerPeople.OnInit(), and LayerEditPlaylist.Refresh().

◆ Build()

void UIMultiList.Build ( UIList::SortMode  m = UIList::SortMode::ByNone)
inline

Definition at line 41 of file UIMultiList.cs.

42 {
43 foreach (ListOwner owner in owners)
44 {
45 owner.list.sortMode = m;
46 }
47 if (Double)
48 {
49 owners[0].other = owners[1];
50 owners[1].other = owners[0];
51 }
52 }

References Double, and owners.

Referenced by LayerPeople.OnInit(), and LayerEditPlaylist.Refresh().

◆ Clear()

void UIMultiList.Clear ( )
inline

Definition at line 20 of file UIMultiList.cs.

21 {
22 owners.Clear();
23 }

References owners.

Referenced by LayerEditPlaylist.Refresh().

◆ Refresh()

void UIMultiList.Refresh ( )
inline

Definition at line 54 of file UIMultiList.cs.

55 {
56 foreach (ListOwner owner in owners)
57 {
58 owner.OnSwitchContent();
59 }
60 }
virtual void OnSwitchContent()
Definition: ListOwner.cs:77

References ListOwner< T1, T2 >.OnSwitchContent(), and owners.

Referenced by LayerEditPlaylist.TogglePL().

Member Data Documentation

◆ addTab

bool UIMultiList.addTab

Definition at line 18 of file UIMultiList.cs.

Referenced by AddOwner().

◆ Double

bool UIMultiList.Double

Definition at line 16 of file UIMultiList.cs.

Referenced by AddOwner(), Build(), and LayerPeople.OnSwitchContent().

◆ headers

UIHeader [] UIMultiList.headers

Definition at line 14 of file UIMultiList.cs.

◆ layer

Layer UIMultiList.layer

Definition at line 8 of file UIMultiList.cs.

Referenced by AddOwner().

◆ lists

UIList [] UIMultiList.lists

Definition at line 12 of file UIMultiList.cs.

Referenced by AddOwner().

◆ owners

◆ windows

Window [] UIMultiList.windows

Definition at line 10 of file UIMultiList.cs.

Referenced by AddOwner().


The documentation for this class was generated from the following file: