Elin Modding Docs Doc
Loading...
Searching...
No Matches
LayerInfo.cs
1using System;
2using UnityEngine;
3
4// Token: 0x0200055A RID: 1370
5public class LayerInfo : ELayer
6{
7 // Token: 0x06002536 RID: 9526 RVA: 0x000D3B7D File Offset: 0x000D1D7D
8 public override void OnAfterInit()
9 {
10 base.OnAfterInit();
11 TooltipManager.Instance.HideTooltips(true);
12 }
13
14 // Token: 0x06002537 RID: 9527 RVA: 0x000D3B90 File Offset: 0x000D1D90
15 public void SetElement(Element e)
16 {
17 this.windows[0].SetCaption(e.Name);
18 this.info.SetElement(e);
19 }
20
21 // Token: 0x06002538 RID: 9528 RVA: 0x000D3BB5 File Offset: 0x000D1DB5
22 public void Set(object o, bool _examine = false)
23 {
24 if (o is Thing)
25 {
26 this.SetThing(o as Thing, _examine);
27 }
28 }
29
30 // Token: 0x06002539 RID: 9529 RVA: 0x000D3BCC File Offset: 0x000D1DCC
31 public void SetThing(Thing t, bool _examine = false)
32 {
33 this.examine = _examine;
34 this.windows[0].SetCaption(t.NameSimple.ToTitleCase(false));
35 this.info.SetThing(t);
36 }
37
38 // Token: 0x0600253A RID: 9530 RVA: 0x000D3BFE File Offset: 0x000D1DFE
39 public void SetBlock(Cell cell)
40 {
41 this.windows[0].SetCaption(cell.GetBlockName());
42 this.info.SetBlock(cell);
43 }
44
45 // Token: 0x0600253B RID: 9531 RVA: 0x000D3C23 File Offset: 0x000D1E23
46 public void SetFloor(Cell cell)
47 {
48 this.windows[0].SetCaption(cell.GetFloorName());
49 this.info.SetFloor(cell);
50 }
51
52 // Token: 0x0600253C RID: 9532 RVA: 0x000D3C48 File Offset: 0x000D1E48
53 public void SetLiquid(Cell cell)
54 {
55 this.windows[0].SetCaption(cell.GetLiquidName());
56 this.info.SetLiquid(cell);
57 }
58
59 // Token: 0x0600253D RID: 9533 RVA: 0x000D3C70 File Offset: 0x000D1E70
60 public void SetZone(Zone z)
61 {
62 this.note.Clear();
63 this.note.AddHeader(z.Name, null);
64 this.note.AddText(z.source.GetDetail(), FontColor.DontChange);
65 this.note.Build();
66 }
67
68 // Token: 0x0600253E RID: 9534 RVA: 0x000D3CBE File Offset: 0x000D1EBE
69 public void SetObj(Cell cell)
70 {
71 this.windows[0].SetCaption(cell.sourceObj.GetName());
72 this.info.SetObj(cell);
73 }
74
75 // Token: 0x0600253F RID: 9535 RVA: 0x000D3CE8 File Offset: 0x000D1EE8
76 public override void OnKill()
77 {
78 base.OnKill();
79 TweenUtil.Tween(0.2f, delegate()
80 {
81 UIButton.TryShowTip<UIButton>(null, true, false);
82 }, null);
83 }
84
85 // Token: 0x06002540 RID: 9536 RVA: 0x000D3D1C File Offset: 0x000D1F1C
86 public override void OnUpdateInput()
87 {
88 base.OnUpdateInput();
89 if (this.examine && ELayer.core.config.input.altExamine)
90 {
91 if (!Input.GetKey(EInput.keys.examine.key))
92 {
93 this.Close();
94 return;
95 }
96 }
97 else if (Input.GetKeyDown(EInput.keys.examine.key))
98 {
99 this.Close();
100 }
101 }
102
103 // Token: 0x040014CF RID: 5327
104 public UICardInfo info;
105
106 // Token: 0x040014D0 RID: 5328
107 public UINote note;
108
109 // Token: 0x040014D1 RID: 5329
110 public bool examine;
111}
Definition Cell.cs:10
Definition Thing.cs:10
Definition Zone.cs:14