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

Public Member Functions

override void OnInit ()
 
void SetArea (Area a)
 
override void OnKill ()
 
void ShowPage ()
 
void AddButton ()
 
- 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

Area area
 
Anime animeButton
 
LayoutGroup layout
 
UIButton moldButton
 
RectTransform transMenu
 
Vector3 offset
 
Vector3 modPos
 
- 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 5 of file LayerArea.cs.

Member Function Documentation

◆ AddButton()

void LayerArea.AddButton ( )
inline

Definition at line 56 of file LayerArea.cs.

57 {
59 }
LayoutGroup layout
Definition: LayerArea.cs:11
UIButton moldButton
Definition: LayerArea.cs:13
Definition: Util.cs:10
static Transform Instantiate(string path, Component parent=null)
Definition: Util.cs:67

References layout, moldButton, and Util.

Referenced by ShowPage().

◆ OnInit()

override void LayerArea.OnInit ( )
inlinevirtual

Reimplemented from Layer.

Definition at line 21 of file LayerArea.cs.

22 {
24 moldButton = layout.CreateMold<UIButton>();
25 }
static void Hide()
Definition: BuildMenu.cs:331

References BuildMenu.Hide(), layout, and moldButton.

◆ OnKill()

override void LayerArea.OnKill ( )
inlinevirtual

Reimplemented from Layer.

Definition at line 33 of file LayerArea.cs.

34 {
36 }
static void Show()
Definition: BuildMenu.cs:323

References BuildMenu.Show().

◆ SetArea()

void LayerArea.SetArea ( Area  a)
inline

Definition at line 27 of file LayerArea.cs.

28 {
29 area = a;
30 ShowPage();
31 }
void ShowPage()
Definition: LayerArea.cs:38
Area area
Definition: LayerArea.cs:7

References area, and ShowPage().

◆ ShowPage()

void LayerArea.ShowPage ( )
inline

Definition at line 38 of file LayerArea.cs.

39 {
40 transMenu.position = Input.mousePosition + offset;
41 layout.DestroyChildren();
42 AddButton();
43 AddButton();
44 AddButton();
45 layout.RebuildLayout(recursive: true);
46 layout.enabled = false;
47 List<UIButton> componentsInDirectChildren = layout.GetComponentsInDirectChildren<UIButton>();
48 for (int i = 0; i < componentsInDirectChildren.Count; i++)
49 {
50 UIButton uIButton = componentsInDirectChildren[i];
51 uIButton.transform.position = uIButton.transform.position + modPos * i;
52 animeButton.Play(uIButton.transform);
53 }
54 }
virtual Tween Play(Transform trans, UnityAction onComplete=null, float duration=-1f, float delay=0f)
Definition: Anime.cs:7
Vector3 modPos
Definition: LayerArea.cs:19
void AddButton()
Definition: LayerArea.cs:56
Vector3 offset
Definition: LayerArea.cs:17
Anime animeButton
Definition: LayerArea.cs:9

References AddButton(), animeButton, layout, modPos, offset, and Anime.Play().

Referenced by SetArea().

Member Data Documentation

◆ animeButton

Anime LayerArea.animeButton

Definition at line 9 of file LayerArea.cs.

Referenced by ShowPage().

◆ area

Area LayerArea.area

Definition at line 7 of file LayerArea.cs.

Referenced by SetArea().

◆ layout

LayoutGroup LayerArea.layout

Definition at line 11 of file LayerArea.cs.

Referenced by AddButton(), OnInit(), and ShowPage().

◆ modPos

Vector3 LayerArea.modPos

Definition at line 19 of file LayerArea.cs.

Referenced by ShowPage().

◆ moldButton

UIButton LayerArea.moldButton

Definition at line 13 of file LayerArea.cs.

Referenced by AddButton(), and OnInit().

◆ offset

Vector3 LayerArea.offset

Definition at line 17 of file LayerArea.cs.

Referenced by ShowPage().

◆ transMenu

RectTransform LayerArea.transMenu

Definition at line 15 of file LayerArea.cs.


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