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

Public Member Functions

void SetLog (NumLog log)
 

Public Attributes

UIText textTitle
 
UIText textCurrent
 
UIText textLastDay
 
UIText textLastMonth
 
UIText textLastYear
 
LayoutGroup layout
 

Additional Inherited Members

- Static Public Member Functions inherited from EMono
static int rnd (int a)
 
- Static Public Attributes inherited from EMono
static Core core
 
- Properties inherited from EMono
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 Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SoundManager Sound [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static CoreDebug debug [get]
 

Detailed Description

Definition at line 5 of file ItemNumLog.cs.

Member Function Documentation

◆ SetLog()

void ItemNumLog.SetLog ( NumLog  log)
inline

Definition at line 19 of file ItemNumLog.cs.

20 {
21 textTitle.text = log.Name;
22 textCurrent.text = log.Value.ToString() ?? "";
23 textLastDay.text = log.lastDay.ToString() ?? "";
24 textLastMonth.text = log.lastMonth.ToString() ?? "";
25 textLastYear.text = log.lastYear.ToString() ?? "";
26 if (!layout)
27 {
28 return;
29 }
30 UIItem mold = layout.CreateMold<UIItem>();
31 List<Gross.Mod> mods = log.gross.GetMods();
32 Action<string> action = delegate(string a)
33 {
34 Util.Instantiate(mold, layout).text1.text = a;
35 };
36 if (mods.Count == 0)
37 {
38 action(Lang.Get("noMod"));
39 return;
40 }
41 foreach (Gross.Mod item in mods)
42 {
43 _ = item;
44 action("");
45 }
46 }
Definition: Gross.cs:6
virtual List< Mod > GetMods()
Definition: Gross.cs:20
LayoutGroup layout
Definition: ItemNumLog.cs:17
Definition: Lang.cs:6
static string Get(string id)
Definition: Lang.cs:91
int lastDay
Definition: NumLog.cs:10
virtual int Value
Definition: NumLog.cs:19
virtual string Name
Definition: NumLog.cs:16
int lastMonth
Definition: NumLog.cs:31
virtual Gross gross
Definition: NumLog.cs:14
int lastYear
Definition: NumLog.cs:43
Definition: UIItem.cs:5
Definition: Util.cs:10
static Transform Instantiate(string path, Component parent=null)
Definition: Util.cs:67

References Lang.Get(), Gross.GetMods(), NumLog.gross, item, NumLog.lastDay, NumLog.lastMonth, NumLog.lastYear, layout, NumLog.Name, Util, and NumLog.Value.

Referenced by ContentStatistics.OnSwitchContent().

Member Data Documentation

◆ layout

LayoutGroup ItemNumLog.layout

Definition at line 17 of file ItemNumLog.cs.

Referenced by SetLog().

◆ textCurrent

UIText ItemNumLog.textCurrent

Definition at line 9 of file ItemNumLog.cs.

◆ textLastDay

UIText ItemNumLog.textLastDay

Definition at line 11 of file ItemNumLog.cs.

◆ textLastMonth

UIText ItemNumLog.textLastMonth

Definition at line 13 of file ItemNumLog.cs.

◆ textLastYear

UIText ItemNumLog.textLastYear

Definition at line 15 of file ItemNumLog.cs.

◆ textTitle

UIText ItemNumLog.textTitle

Definition at line 7 of file ItemNumLog.cs.


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