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

Public Member Functions

override void OnAfterInit ()
 
void SetElement (Element e)
 
void Set (object o, bool _examine=false)
 
void Resize ()
 
void SetThing (Thing t, bool _examine=false)
 
void SetBlock (Cell cell)
 
void SetFloor (Cell cell)
 
void SetLiquid (Cell cell)
 
void SetZone (Zone z)
 
void SetObj (Cell cell)
 
override void OnKill ()
 
override void OnUpdateInput ()
 
- 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

UICardInfo info
 
UINote note
 
bool examine
 
Vector2 size
 
Vector2 padding
 
- 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 LayerInfo.cs.

Member Function Documentation

◆ OnAfterInit()

override void LayerInfo.OnAfterInit ( )
inlinevirtual

Reimplemented from Layer.

Definition at line 15 of file LayerInfo.cs.

16 {
17 base.OnAfterInit();
18 TooltipManager.Instance.HideTooltips(immediate: true);
19 }
static TooltipManager Instance
void HideTooltips(bool immediate=false)

References TooltipManager.HideTooltips(), and TooltipManager.Instance.

◆ OnKill()

override void LayerInfo.OnKill ( )
inlinevirtual

Reimplemented from Layer.

Definition at line 85 of file LayerInfo.cs.

86 {
87 base.OnKill();
88 TweenUtil.Tween(0.2f, delegate
89 {
90 UIButton.TryShowTip<UIButton>(null, highlight: true, ignoreWhenRightClick: false);
91 });
92 }
static void TryShowTip(Transform root=null, bool highlight=true, bool ignoreWhenRightClick=true)
Definition: UIButton.cs:778

References UIButton.TryShowTip().

◆ OnUpdateInput()

override void LayerInfo.OnUpdateInput ( )
inlinevirtual

Reimplemented from Layer.

Definition at line 94 of file LayerInfo.cs.

95 {
96 base.OnUpdateInput();
98 {
99 if (!Input.GetKey(EInput.keys.examine.key))
100 {
101 Close();
102 }
103 }
104 else if (Input.GetKeyDown(EInput.keys.examine.key))
105 {
106 Close();
107 }
108 }
InputSetting input
Definition: CoreConfig.cs:602
CoreConfig config
Definition: Core.cs:70
KeyCode key
Definition: EInput.cs:14
Definition: EInput.cs:8
static KeyMapManager keys
Definition: EInput.cs:367
Definition: ELayer.cs:4
static Core core
Definition: ELayer.cs:7
bool examine
Definition: LayerInfo.cs:9
virtual void Close()
Definition: Layer.cs:463

References CoreConfig.InputSetting.altExamine, Layer.Close(), Core.config, ELayer.core, examine, EInput.KeyMapManager.examine, CoreConfig.input, EInput.KeyMap.key, and EInput.keys.

◆ Resize()

void LayerInfo.Resize ( )
inline

Definition at line 35 of file LayerInfo.cs.

36 {
37 windows[0].Rect().sizeDelta = new Vector2(Mathf.Max(info.Rect().sizeDelta.x + padding.x, size.x), size.y);
38 }
Vector2 size
Definition: LayerInfo.cs:11
UICardInfo info
Definition: LayerInfo.cs:5
Vector2 padding
Definition: LayerInfo.cs:13
List< Window > windows
Definition: Layer.cs:116

References info, padding, size, and Layer.windows.

Referenced by SetBlock(), SetFloor(), SetLiquid(), SetObj(), SetThing(), and SetZone().

◆ Set()

void LayerInfo.Set ( object  o,
bool  _examine = false 
)
inline

Definition at line 27 of file LayerInfo.cs.

28 {
29 if (o is Thing)
30 {
31 SetThing(o as Thing, _examine);
32 }
33 }
void SetThing(Thing t, bool _examine=false)
Definition: LayerInfo.cs:40
Definition: Thing.cs:8

References SetThing().

◆ SetBlock()

void LayerInfo.SetBlock ( Cell  cell)
inline

Definition at line 48 of file LayerInfo.cs.

49 {
50 windows[0].SetCaption(cell.GetBlockName());
51 info.SetBlock(cell);
52 Resize();
53 }
string GetBlockName()
Definition: Cell.cs:1585
void Resize()
Definition: LayerInfo.cs:35
void SetBlock(Cell cell)
Definition: UICardInfo.cs:64

References Cell.GetBlockName(), info, Resize(), UICardInfo.SetBlock(), and Layer.windows.

◆ SetElement()

void LayerInfo.SetElement ( Element  e)
inline

Definition at line 21 of file LayerInfo.cs.

22 {
23 windows[0].SetCaption(e.Name);
25 }
virtual string Name
Definition: ELEMENT.cs:294
void SetElement(Element e)
Definition: UICardInfo.cs:34

References info, Element.Name, UICardInfo.SetElement(), and Layer.windows.

◆ SetFloor()

void LayerInfo.SetFloor ( Cell  cell)
inline

Definition at line 55 of file LayerInfo.cs.

56 {
57 windows[0].SetCaption(cell.GetFloorName());
58 info.SetFloor(cell);
59 Resize();
60 }
string GetFloorName()
Definition: Cell.cs:1590
void SetFloor(Cell cell)
Definition: UICardInfo.cs:74

References Cell.GetFloorName(), info, Resize(), UICardInfo.SetFloor(), and Layer.windows.

◆ SetLiquid()

void LayerInfo.SetLiquid ( Cell  cell)
inline

Definition at line 62 of file LayerInfo.cs.

63 {
64 windows[0].SetCaption(cell.GetLiquidName());
65 info.SetLiquid(cell);
66 Resize();
67 }
string GetLiquidName()
Definition: Cell.cs:1644
void SetLiquid(Cell cell)
Definition: UICardInfo.cs:84

References Cell.GetLiquidName(), info, Resize(), UICardInfo.SetLiquid(), and Layer.windows.

◆ SetObj()

void LayerInfo.SetObj ( Cell  cell)
inline

Definition at line 78 of file LayerInfo.cs.

79 {
80 windows[0].SetCaption(cell.sourceObj.GetName());
81 info.SetObj(cell);
82 Resize();
83 }
SourceObj.Row sourceObj
Definition: Cell.cs:1072
string GetName(int id)
Definition: SourceObj.cs:149
void SetObj(Cell cell)
Definition: UICardInfo.cs:94

References SourceObj.GetName(), info, Resize(), UICardInfo.SetObj(), Cell.sourceObj, and Layer.windows.

◆ SetThing()

void LayerInfo.SetThing ( Thing  t,
bool  _examine = false 
)
inline

Definition at line 40 of file LayerInfo.cs.

41 {
42 examine = _examine;
43 windows[0].SetCaption(t.NameSimple.ToTitleCase());
44 info.SetThing(t);
45 Resize();
46 }
string NameSimple
Definition: Card.cs:2015
void SetThing(Thing t)
Definition: UICardInfo.cs:39

References examine, info, Card.NameSimple, Resize(), UICardInfo.SetThing(), and Layer.windows.

Referenced by Set().

◆ SetZone()

void LayerInfo.SetZone ( Zone  z)
inline

Definition at line 69 of file LayerInfo.cs.

70 {
71 note.Clear();
73 note.AddText(z.source.GetDetail());
74 note.Build();
75 Resize();
76 }
UINote note
Definition: LayerInfo.cs:7
virtual string Name
Definition: Spatial.cs:495
SourceZone.Row source
Definition: Spatial.cs:441
void Clear()
Definition: UINote.cs:35
UIItem AddHeader(string text, Sprite sprite=null)
Definition: UINote.cs:79
UIItem AddText(string text, FontColor color=FontColor.DontChange)
Definition: UINote.cs:113
void Build()
Definition: UINote.cs:49

References UINote.AddHeader(), UINote.AddText(), UINote.Build(), UINote.Clear(), Spatial.Name, note, Resize(), and Spatial.source.

Member Data Documentation

◆ examine

bool LayerInfo.examine

Definition at line 9 of file LayerInfo.cs.

Referenced by OnUpdateInput(), and SetThing().

◆ info

UICardInfo LayerInfo.info

Definition at line 5 of file LayerInfo.cs.

Referenced by Resize(), SetBlock(), SetElement(), SetFloor(), SetLiquid(), SetObj(), and SetThing().

◆ note

UINote LayerInfo.note

Definition at line 7 of file LayerInfo.cs.

Referenced by SetZone().

◆ padding

Vector2 LayerInfo.padding

Definition at line 13 of file LayerInfo.cs.

Referenced by Resize().

◆ size

Vector2 LayerInfo.size

Definition at line 11 of file LayerInfo.cs.

Referenced by Resize().


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