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

Public Member Functions

override void OnInit ()
 
void Show (ModPackage p)
 
- 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)
 
T AddLayer< T > ()
 
T AddLayer< T > (string id)
 
T AddLayerDontCloseOthers< T > ()
 
T AddLayerDontCloseOthers< T > (string path)
 
Layer AddLayerDontCloseOthers (Layer l)
 
T GetOrAddLayer< T > ()
 
virtual void OnBeforeAddLayer ()
 
virtual void OnAfterAddLayer ()
 
Layer AddLayer (Layer l)
 
void ToggleLayer (string id)
 
T 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)
 
T 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 ()
 

Static Public Member Functions

static void Open (ModPackage p)
 
- 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)
 

Public Attributes

UINote note
 
UIButton buttonReset
 
UIButton buttonFile
 
ModPackage current
 
- 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< Layer > layers = new List<Layer>()
 
Vector2 lastParentPos
 
List< Window > windows = new List<Window>()
 
string langHint
 

Additional Inherited Members

- 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 LayerModConfig.cs.

Member Function Documentation

◆ OnInit()

override void LayerModConfig.OnInit ( )
inlinevirtual

Reimplemented from Layer.

Definition at line 18 of file LayerModConfig.cs.

19 {
20 buttonReset = windows[0].AddBottomButton("resetConfigTab".lang("mod".lang()), delegate
21 {
22 Dialog.YesNo("dialogResetConfigTab".lang(windows[0].textCaption.text), delegate
23 {
24 try
25 {
26 current.onResetConfig?.Invoke();
27 }
28 catch (Exception ex)
29 {
30 ModUtil.LogModError(ex.ToString(), current);
31 }
33 });
34 });
35 buttonFile = windows[0].AddBottomButton("mod_info", delegate
36 {
38 });
39 }
Definition: Dialog.cs:7
static Dialog YesNo(string langDetail, Action actionYes, Action actionNo=null, string langYes="yes", string langNo="no")
Definition: Dialog.cs:252
void Show(ModPackage p)
UIButton buttonReset
UIButton buttonFile
ModPackage current
List< Window > windows
Definition: Layer.cs:116
string configPath
Definition: ModPackage.cs:23
Definition: Util.cs:10
static void ShowExplorer(string itemPath, bool selectFirstFile=false)
Definition: Util.cs:228

References buttonReset, current, Show(), Layer.windows, and Dialog.YesNo().

◆ Open()

static void LayerModConfig.Open ( ModPackage  p)
inlinestatic

Definition at line 13 of file LayerModConfig.cs.

14 {
15 ELayer.ui.AddLayerDontCloseOthers<LayerModConfig>("LayerMod/LayerModConfig").Show(p);
16 }
Definition: ELayer.cs:4
static UI ui
Definition: ELayer.cs:21

References Show(), and ELayer.ui.

Referenced by LayerMod.SetModRow().

◆ Show()

void LayerModConfig.Show ( ModPackage  p)
inline

Definition at line 41 of file LayerModConfig.cs.

42 {
43 current = p;
44 windows[0].SetCaption(p.title.IsEmpty(p.dirInfo.Name));
45 buttonReset.SetActive(p.onResetConfig != null);
46 buttonFile.SetActive(!p.configPath.IsEmpty());
47 note.Clear();
48 windows[0].RebuildLayout();
49 note.RebuildLayoutTo<Layer>();
50 try
51 {
53 }
54 catch (Exception ex)
55 {
56 ModUtil.LogModError(ex.ToString(), p);
57 }
58 note.Build();
59 }
Definition: Layer.cs:9
Action onResetConfig
Definition: ModPackage.cs:21
Action< UINote > onBuildConfig
Definition: ModPackage.cs:19
void Clear()
Definition: UINote.cs:35
void Build()
Definition: UINote.cs:49

References UINote.Build(), UINote.Clear(), ModPackage.configPath, ModPackage.onBuildConfig, and ModPackage.onResetConfig.

Referenced by OnInit(), and Open().

Member Data Documentation

◆ buttonFile

UIButton LayerModConfig.buttonFile

Definition at line 9 of file LayerModConfig.cs.

◆ buttonReset

UIButton LayerModConfig.buttonReset

Definition at line 7 of file LayerModConfig.cs.

Referenced by OnInit().

◆ current

ModPackage LayerModConfig.current

Definition at line 11 of file LayerModConfig.cs.

Referenced by OnInit().

◆ note

UINote LayerModConfig.note

Definition at line 5 of file LayerModConfig.cs.


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