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

Public Member Functions

override void OnInit ()
 
void RefreshSummary ()
 
- 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

UIText textName
 
UIText textExplore
 
UIText textTerritory
 
UIText textPopu
 
UIText textWealth
 
UIText textRestore
 
UIText textProgress
 
- 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 3 of file LayerGlobalMap.cs.

Member Function Documentation

◆ OnInit()

override void LayerGlobalMap.OnInit ( )
inlinevirtual

Reimplemented from Layer.

Definition at line 19 of file LayerGlobalMap.cs.

20 {
22 }
void RefreshSummary()

References RefreshSummary().

◆ RefreshSummary()

void LayerGlobalMap.RefreshSummary ( )
inline

Definition at line 24 of file LayerGlobalMap.cs.

25 {
26 textName.SetText(ELayer.world.Name + Environment.NewLine + "<size=18> (" + ELayer.pc.currentZone.Region.Name + ")</size>");
27 textExplore.SetText("0%");
29 textRestore.SetText("1 (0/20)");
30 textWealth.SetText(ELayer.Home.CountWealth().ToString() ?? "");
31 textPopu.SetText(ELayer.Home.CountMembers().ToString() ?? "");
32 textProgress.SetText("_progress".lang(ELayer.player.stats.days.ToString() ?? "", ELayer.player.stats.sieges.ToString() ?? ""));
33 }
Zone currentZone
Definition: Chara.cs:240
Definition: ELayer.cs:4
static World world
Definition: ELayer.cs:39
static Chara pc
Definition: ELayer.cs:15
static Player player
Definition: ELayer.cs:13
static Faction Home
Definition: ELayer.cs:19
int CountWealth()
Definition: FACTION.cs:213
int CountMembers()
Definition: FACTION.cs:240
int CountTerritories()
Definition: FACTION.cs:227
UIText textTerritory
UIText textExplore
int sieges
Definition: Player.cs:72
int days
Definition: Player.cs:68
Stats stats
Definition: Player.cs:817
virtual string Name
Definition: Spatial.cs:495
void SetText(string s)
Definition: UIText.cs:159
Region Region
Definition: Zone.cs:160

References Faction.CountMembers(), Faction.CountTerritories(), Faction.CountWealth(), Chara.currentZone, Player.Stats.days, ELayer.Home, Spatial.Name, ELayer.pc, ELayer.player, Zone.Region, UIText.SetText(), Player.Stats.sieges, Player.stats, textExplore, textName, textPopu, textProgress, textRestore, textTerritory, textWealth, and ELayer.world.

Referenced by OnInit().

Member Data Documentation

◆ textExplore

UIText LayerGlobalMap.textExplore

Definition at line 7 of file LayerGlobalMap.cs.

Referenced by RefreshSummary().

◆ textName

UIText LayerGlobalMap.textName

Definition at line 5 of file LayerGlobalMap.cs.

Referenced by RefreshSummary().

◆ textPopu

UIText LayerGlobalMap.textPopu

Definition at line 11 of file LayerGlobalMap.cs.

Referenced by RefreshSummary().

◆ textProgress

UIText LayerGlobalMap.textProgress

Definition at line 17 of file LayerGlobalMap.cs.

Referenced by RefreshSummary().

◆ textRestore

UIText LayerGlobalMap.textRestore

Definition at line 15 of file LayerGlobalMap.cs.

Referenced by RefreshSummary().

◆ textTerritory

UIText LayerGlobalMap.textTerritory

Definition at line 9 of file LayerGlobalMap.cs.

Referenced by RefreshSummary().

◆ textWealth

UIText LayerGlobalMap.textWealth

Definition at line 13 of file LayerGlobalMap.cs.

Referenced by RefreshSummary().


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