Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
LayerHire Class Reference
Inheritance diagram for LayerHire:
ELayer Layer IUISkin

Public Member Functions

override void OnAfterInit ()
 
void Refresh ()
 
override void OnKill ()
 
- Public Member Functions inherited from ELayer
override void OnBeforeAddLayer ()
 
void InitInspector ()
 
sealed override void Init ()
 
override void OnAfterAddLayer ()
 
void TryShowHelp ()
 
void AddLayerToUI (string id)
 
void TryShowHint (string _langHint=null)
 
void TalkHomeMemeber (string id)
 
void TalkMaid (string id)
 
override void OnRightClick ()
 
- Public Member Functions inherited from Layer
virtual string GetTextHeader (Window window)
 
virtual bool HeaderIsListOf (int id)
 
virtual void Init ()
 
virtual void OnInit ()
 
virtual void OnAfterInit ()
 
virtual void ApplySkin ()
 
void ShowScreenLock (string id)
 
void UpdateInput ()
 
virtual void OnUpdateInput ()
 
virtual void OnRightClick ()
 
virtual bool OnBack ()
 
virtual void OnChangeLayer ()
 
virtual void OnCreate ()
 
void _AddLayer (string id)
 
Layer AddLayer (string id)
 
AddLayer< T > ()
 
AddLayer< T > (string id)
 
AddLayerDontCloseOthers< T > ()
 
Layer AddLayerDontCloseOthers (Layer l)
 
GetOrAddLayer< T > ()
 
virtual void OnBeforeAddLayer ()
 
virtual void OnAfterAddLayer ()
 
Layer AddLayer (Layer l)
 
void ToggleLayer (string id)
 
ToggleLayer< T > (string id=null)
 
void WaitAndClose ()
 
void OnClickClose ()
 
virtual void Close ()
 
void CloseLayers ()
 
void RemoveLayers (bool removeImportant=false)
 
bool RemoveLayer< T > ()
 
void RemoveLayer (Layer l)
 
virtual void OnKill ()
 
Layer SetOnKill (Action action)
 
void DisableClose ()
 
void Delay (float duration=0.05f)
 
Layer SetDelay (float d)
 
Layer GetLayer (string id)
 
GetLayer< T > (bool fromTop=false)
 
Layer GetTopLayer ()
 
void SwitchContent (int idWindow, int i)
 
virtual void OnSwitchContent (Window window)
 
Layer SetTitles (string langList, string idHeaderRow=null)
 
bool IsBlockWidgetClick ()
 
bool IsHideHud ()
 
bool IsAllowGeneralInput ()
 
bool IsUseBlur ()
 
bool IsPointerOnLayer ()
 
void ApplySkin ()
 

Public Attributes

UIList list
 
- Public Attributes inherited from Layer
Option option
 
UnityEvent onKill
 
Anime animeIn
 
Anime animeOut
 
bool closeOthers
 
bool defaultActionMode = true
 
Button screenLock
 
Layer parent
 
string idLayer
 
List< Layerlayers = new List<Layer>()
 
Vector2 lastParentPos
 
List< Windowwindows = new List<Window>()
 
string langHint
 

Additional Inherited Members

- Static Public Member Functions inherited from ELayer
static int rnd (int a)
 
- Static Public Member Functions inherited from Layer
static T Create< T > ()
 
static T Create< T > (string path)
 
static Layer Create (string path)
 
- Static Public Attributes inherited from Layer
static int skipInput
 
static bool closeOnRightClick
 
static bool rightClicked
 
static bool cancelKeyDown
 
static bool ignoreSounds
 
static Transform blurStopInstance
 
static string[] searchPath = new string[3] { "Layer", "Layer/Dialog", "Layer/LayerHome" }
 
- Protected Member Functions inherited from ELayer
sealed override void _Close ()
 
sealed override void Kill ()
 
- Protected Member Functions inherited from Layer
virtual void Awake ()
 
virtual void _Close ()
 
virtual void Kill ()
 
- Protected Attributes inherited from Layer
RectTransform _rect
 
bool isDestroyed
 
- Properties inherited from ELayer
static Core core [get]
 
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static FactionBranch Branch [get]
 
static Faction Home [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static CoreConfig config [get]
 
static GameSetting setting [get]
 
static ColorProfile Colors [get]
 
static SourceManager sources [get]
 
static World world [get]
 
static SoundManager Sound [get]
 
static CoreDebug debug [get]
 
bool IsFloat [get]
 
virtual string IdHelp [get]
 
- Properties inherited from Layer
Layer TopLayer [get]
 
string uid [get]
 
virtual RectTransform rectLayers [get]
 
virtual bool blockWidgetClick [get]
 

Detailed Description

Definition at line 1 of file LayerHire.cs.

Member Function Documentation

◆ OnAfterInit()

override void LayerHire.OnAfterInit ( )
inlinevirtual

Reimplemented from Layer.

Definition at line 5 of file LayerHire.cs.

6 {
7 Refresh();
8 }
void Refresh()
Definition: LayerHire.cs:10

References Refresh().

◆ OnKill()

override void LayerHire.OnKill ( )
inlinevirtual

Reimplemented from Layer.

Definition at line 50 of file LayerHire.cs.

51 {
53 }
Definition: ELayer.cs:4
static FactionBranch Branch
Definition: ELayer.cs:17
void ClearNewRecruits()

References ELayer.Branch, and FactionBranch.ClearNewRecruits().

◆ Refresh()

void LayerHire.Refresh ( )
inline

Definition at line 10 of file LayerHire.cs.

11 {
12 list.Clear();
13 list.callbacks = new UIList.Callback<HireInfo, ButtonChara>
14 {
15 onClick = delegate
16 {
17 },
18 onInstantiate = delegate(HireInfo a, ButtonChara b)
19 {
20 Chara chara = a.chara;
21 b.SetChara(chara, ButtonChara.Mode.Hire);
22 CalcGold.Hire(chara);
23 b.item.text2.text = a.Days.ToString() ?? "";
24 b.item.button1.onClick.AddListener(delegate
25 {
26 a.isNew = false;
27 Refresh();
29 });
30 b.item.button2.onClick.AddListener(delegate
31 {
32 a.isNew = false;
33 a.chara.ShowDialog("_chara", "4-1").onKill.AddListener(Refresh);
34 });
35 b.item.image1.SetActive(a.isNew);
36 },
37 onRefresh = null
38 };
40 {
41 if (!item.chara.IsHomeMember() && !item.chara.currentZone.IsPlayerFaction)
42 {
43 list.Add(item);
44 }
45 }
46 list.Refresh();
47 this.RebuildLayout(recursive: true);
48 }
new UIItem item
Definition: ButtonChara.cs:29
void SetChara(Chara c, Mode m)
Definition: ButtonChara.cs:35
static int Hire(Chara c)
Definition: CalcGold.cs:8
Definition: Chara.cs:10
void ShowDialog()
Definition: Chara.cs:6368
static Faction Home
Definition: ELayer.cs:19
static UI ui
Definition: ELayer.cs:21
List< HireInfo > listReserve
Definition: FACTION.cs:136
Chara chara
Definition: HireInfo.cs:6
int Days
Definition: HireInfo.cs:29
bool isNew
Definition: HireInfo.cs:9
UIList list
Definition: LayerHire.cs:3
Layer AddLayerDontCloseOthers(Layer l)
Definition: Layer.cs:357
UIButton button1
Definition: UIItem.cs:18
Image image1
Definition: UIItem.cs:14
UIButton button2
Definition: UIItem.cs:20
Definition: UIList.cs:9
override void Clear()
Definition: UIList.cs:349
override void Add(object item)
Definition: UIList.cs:302
virtual void Refresh(bool highlightLast=false)
Definition: UIList.cs:424

References UIList.Add(), Layer.AddLayerDontCloseOthers(), UIItem.button1, UIItem.button2, HireInfo.chara, UIList.Clear(), HireInfo.Days, CalcGold.Hire(), ELayer.Home, UIItem.image1, HireInfo.isNew, ButtonChara.item, item, list, Faction.listReserve, Refresh(), UIList.Refresh(), ButtonChara.SetChara(), Chara.ShowDialog(), and ELayer.ui.

Referenced by OnAfterInit(), and Refresh().

Member Data Documentation

◆ list

UIList LayerHire.list

Definition at line 3 of file LayerHire.cs.

Referenced by Refresh().


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