Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
ListOwner< T1, T2 > Class Template Reference
Inheritance diagram for ListOwner< T1, T2 >:
EClass

Public Member Functions

virtual void OnClick (T1 a, T2 b)
 
virtual void OnInstantiate (T1 a, T2 b)
 
virtual void OnList ()
 
virtual void List ()
 
virtual void OnCreate ()
 
virtual void OnSwitchContent ()
 
virtual void OnRefreshMenu ()
 
void RefreshTab ()
 
void MoveToOther (object c)
 

Public Attributes

Layer layer
 
Window window
 
UIMultiList multi
 
ListOwner other
 
UIList list
 
WindowMenu menu
 
Window.Setting.Tab tab
 
string textTab
 
string textHeader
 
bool main
 
int index
 

Properties

ListOwner Main [get]
 
virtual string IdTitle [get]
 
virtual string IdHeaderRow [get]
 
virtual string TextTab [get]
 
virtual string TextHeader [get]
 
- Properties inherited from EClass
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Faction Wilds [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static SoundManager Sound [get]
 
static CoreDebug debug [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from EClass
static int rnd (int a)
 
static int curve (int a, int start, int step, int rate=75)
 
static int rndHalf (int a)
 
static float rndf (float a)
 
static int rndSqrt (int a)
 
static void Wait (float a, Card c)
 
static void Wait (float a, Point p)
 
static int Bigger (int a, int b)
 
static int Smaller (int a, int b)
 
- Static Public Attributes inherited from EClass
static Core core
 

Detailed Description

Definition at line 1 of file ListOwner.cs.

Member Function Documentation

◆ List()

virtual void ListOwner< T1, T2 >.List ( )
inlinevirtual

Reimplemented in BaseListPeople, and LayerEditPlaylist.ListBGM.

Definition at line 69 of file ListOwner.cs.

70 {
71 }

Referenced by ListOwner< T1, T2 >.MoveToOther(), and ListOwner< T1, T2 >.OnSwitchContent().

◆ MoveToOther()

void ListOwner< T1, T2 >.MoveToOther ( object  c)
inline

Definition at line 102 of file ListOwner.cs.

103 {
105 other.List();
106 list.RebuildLayoutTo(layer);
107 SE.Resource();
108 }
virtual void List()
Definition: ListOwner.cs:69
ListOwner other
Definition: ListOwner.cs:23
UIList list
Definition: ListOwner.cs:25
Layer layer
Definition: ListOwner.cs:17
void RemoveDynamic(object item)
Definition: UIList.cs:336

References ListOwner< T1, T2 >.layer, ListOwner< T1, T2 >.list, ListOwner< T1, T2 >.List(), ListOwner< T1, T2 >.other, and UIList.RemoveDynamic().

◆ OnClick()

virtual void ListOwner< T1, T2 >.OnClick ( T1  a,
T2  b 
)
inlinevirtual

Definition at line 3 of file ListOwner.cs.

4 {
5 }

◆ OnCreate()

virtual void ListOwner< T1, T2 >.OnCreate ( )
inlinevirtual

Reimplemented in ListPeopleBuySlave.

Definition at line 73 of file ListOwner.cs.

74 {
75 }

Referenced by UIMultiList.AddOwner().

◆ OnInstantiate()

virtual void ListOwner< T1, T2 >.OnInstantiate ( T1  a,
T2  b 
)
inlinevirtual

Definition at line 7 of file ListOwner.cs.

8 {
9 }

◆ OnList()

virtual void ListOwner< T1, T2 >.OnList ( )
inlinevirtual

◆ OnRefreshMenu()

virtual void ListOwner< T1, T2 >.OnRefreshMenu ( )
inlinevirtual

Reimplemented in BaseListPeople, ListPeopleBed, and ListPeopleEmbark.

Definition at line 91 of file ListOwner.cs.

92 {
95 }
Window window
Definition: ListOwner.cs:19
void Clear()
Definition: WindowMenu.cs:44
WindowMenu menuRight
Definition: Window.cs:709
WindowMenu menuLeft
Definition: Window.cs:700

References WindowMenu.Clear(), Window.menuLeft, Window.menuRight, and ListOwner< T1, T2 >.window.

Referenced by ListOwner< T1, T2 >.OnSwitchContent().

◆ OnSwitchContent()

virtual void ListOwner< T1, T2 >.OnSwitchContent ( )
inlinevirtual

Definition at line 77 of file ListOwner.cs.

78 {
79 List();
81 if (Lang.GetList(IdTitle) != null)
82 {
84 }
85 if (!textHeader.IsEmpty())
86 {
88 }
89 }
Definition: Lang.cs:6
static string[] GetList(string id)
Definition: Lang.cs:114
string textHeader
Definition: ListOwner.cs:33
virtual string IdHeaderRow
Definition: ListOwner.cs:53
virtual string IdTitle
Definition: ListOwner.cs:51
virtual void OnRefreshMenu()
Definition: ListOwner.cs:91
virtual string TextHeader
Definition: ListOwner.cs:58
void SetCaption(string text)
Definition: Window.cs:1289
void SetTitles(string langList, string idHeaderRow=null)
Definition: Window.cs:1262

References Lang.GetList(), ListOwner< T1, T2 >.IdHeaderRow, ListOwner< T1, T2 >.IdTitle, ListOwner< T1, T2 >.List(), ListOwner< T1, T2 >.OnRefreshMenu(), Window.SetCaption(), Window.SetTitles(), ListOwner< T1, T2 >.textHeader, ListOwner< T1, T2 >.TextHeader, and ListOwner< T1, T2 >.window.

Referenced by LayerEditPlaylist.Activate(), and UIMultiList.Refresh().

◆ RefreshTab()

void ListOwner< T1, T2 >.RefreshTab ( )
inline

Definition at line 97 of file ListOwner.cs.

98 {
99 tab.button.mainText.SetText(TextTab);
100 }
Window.Setting.Tab tab
Definition: ListOwner.cs:29
virtual string TextTab
Definition: ListOwner.cs:55

References ListOwner< T1, T2 >.tab, and ListOwner< T1, T2 >.TextTab.

Referenced by BaseListPeople.OnClick().

Member Data Documentation

◆ index

int ListOwner< T1, T2 >.index

Definition at line 37 of file ListOwner.cs.

◆ layer

Layer ListOwner< T1, T2 >.layer

Definition at line 17 of file ListOwner.cs.

Referenced by ListOwner< T1, T2 >.MoveToOther().

◆ list

UIList ListOwner< T1, T2 >.list

Definition at line 25 of file ListOwner.cs.

Referenced by ListOwner< T1, T2 >.MoveToOther().

◆ main

bool ListOwner< T1, T2 >.main

Definition at line 35 of file ListOwner.cs.

◆ menu

WindowMenu ListOwner< T1, T2 >.menu

Definition at line 27 of file ListOwner.cs.

◆ multi

UIMultiList ListOwner< T1, T2 >.multi

Definition at line 21 of file ListOwner.cs.

◆ other

ListOwner ListOwner< T1, T2 >.other

Definition at line 23 of file ListOwner.cs.

Referenced by ListOwner< T1, T2 >.MoveToOther().

◆ tab

Definition at line 29 of file ListOwner.cs.

Referenced by ListOwner< T1, T2 >.RefreshTab().

◆ textHeader

string ListOwner< T1, T2 >.textHeader

Definition at line 33 of file ListOwner.cs.

Referenced by ListOwner< T1, T2 >.OnSwitchContent().

◆ textTab

string ListOwner< T1, T2 >.textTab

Definition at line 31 of file ListOwner.cs.

◆ window

Property Documentation

◆ IdHeaderRow

virtual string ListOwner< T1, T2 >.IdHeaderRow
get

Definition at line 53 of file ListOwner.cs.

Referenced by ListOwner< T1, T2 >.OnSwitchContent().

◆ IdTitle

virtual string ListOwner< T1, T2 >.IdTitle
get

Definition at line 51 of file ListOwner.cs.

Referenced by ListOwner< T1, T2 >.OnSwitchContent().

◆ Main

ListOwner ListOwner< T1, T2 >.Main
get

Definition at line 39 of file ListOwner.cs.

40 {
41 get
42 {
43 if (!main)
44 {
45 return other;
46 }
47 return this;
48 }
49 }
bool main
Definition: ListOwner.cs:35

◆ TextHeader

virtual string ListOwner< T1, T2 >.TextHeader
get

Definition at line 57 of file ListOwner.cs.

58 {
59 get
60 {
61 if (!textHeader.IsEmpty())
62 {
63 return textHeader.lang();
64 }
65 return "";
66 }
67 }

Referenced by ListOwner< T1, T2 >.OnSwitchContent().

◆ TextTab

virtual string ListOwner< T1, T2 >.TextTab
get

Definition at line 55 of file ListOwner.cs.

Referenced by UIMultiList.AddOwner(), and ListOwner< T1, T2 >.RefreshTab().


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