terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
Mask.cs
Go to the documentation of this file.
1using System;
3
4namespace UnityEngine.UI
5{
6 // Token: 0x02000053 RID: 83
7 [AddComponentMenu("UI/Mask", 13)]
12 {
13 // Token: 0x170000D5 RID: 213
14 // (get) Token: 0x06000331 RID: 817 RVA: 0x0000AA18 File Offset: 0x00008C18
16 {
17 get
18 {
19 RectTransform component;
20 if (this.m_RectTransform == null)
21 {
22 component = base.GetComponent<RectTransform>();
23 this.m_RectTransform = component;
24 }
25 return component;
26 }
27 }
28
29 // Token: 0x170000D6 RID: 214
30 // (get) Token: 0x06000332 RID: 818 RVA: 0x0000AA3C File Offset: 0x00008C3C
31 // (set) Token: 0x06000333 RID: 819 RVA: 0x0000AA50 File Offset: 0x00008C50
32 public bool showMaskGraphic
33 {
34 get
35 {
36 return this.m_ShowMaskGraphic;
37 }
38 set
39 {
41 Graphic graphic = this.graphic;
43 }
44 }
45
46 // Token: 0x170000D7 RID: 215
47 // (get) Token: 0x06000334 RID: 820 RVA: 0x0000AA74 File Offset: 0x00008C74
49 {
50 get
51 {
52 Graphic component;
53 if (this.m_Graphic == null)
54 {
55 component = base.GetComponent<Graphic>();
56 this.m_Graphic = component;
57 }
58 return component;
59 }
60 }
61
62 // Token: 0x06000335 RID: 821 RVA: 0x0000AA98 File Offset: 0x00008C98
63 protected Mask()
64 {
65 }
66
67 // Token: 0x06000336 RID: 822 RVA: 0x0000AAB4 File Offset: 0x00008CB4
68 public virtual bool MaskEnabled()
69 {
70 Graphic graphic = this.graphic;
71 bool flag;
72 return flag;
73 }
74
75 // Token: 0x06000337 RID: 823 RVA: 0x0000AACC File Offset: 0x00008CCC
76 [Obsolete("Not used anymore.")]
77 public virtual void OnSiblingGraphicEnabledDisabled()
78 {
79 }
80
81 // Token: 0x06000338 RID: 824 RVA: 0x0000AADC File Offset: 0x00008CDC
82 protected override void OnEnable()
83 {
84 base.OnEnable();
85 Graphic graphic = this.graphic;
86 CanvasRenderer canvasRenderer = this.graphic.canvasRenderer;
87 int num = 1;
90 if (this.graphic != null)
91 {
92 if (this.graphic != null)
93 {
94 }
95 return;
96 }
98 }
99
100 // Token: 0x06000339 RID: 825 RVA: 0x0000AB30 File Offset: 0x00008D30
101 protected override void OnDisable()
102 {
103 base.OnDisable();
104 Graphic graphic = this.graphic;
105 Graphic graphic2 = this.graphic;
106 CanvasRenderer canvasRenderer = this.graphic.canvasRenderer;
107 long num = 0L;
110 long num2 = 0L;
112 long num3;
113 if (this.graphic != null)
114 {
115 if (this.graphic != null)
116 {
117 }
118 num3 = 0L;
119 return;
120 }
122 if (num3 == 0L)
123 {
124 }
128 }
129
130 // Token: 0x0600033A RID: 826 RVA: 0x0000ABBC File Offset: 0x00008DBC
131 public virtual bool IsRaycastLocationValid(Vector2 sp, Camera eventCamera)
132 {
133 bool isActiveAndEnabled = base.isActiveAndEnabled;
135 bool flag;
136 return flag;
137 }
138
139 // Token: 0x0600033B RID: 827 RVA: 0x0000ABDC File Offset: 0x00008DDC
154
155 // Token: 0x04000192 RID: 402
158
159 // Token: 0x04000193 RID: 403
161 private bool m_ShowMaskGraphic = true;
162
163 // Token: 0x04000194 RID: 404
166
167 // Token: 0x04000195 RID: 405
170
171 // Token: 0x04000196 RID: 406
174 }
175}
class f__AnonymousType0<< Count > j__TPar
Component GetComponent(Type type)
Definition Component.cs:41
CanvasRenderer canvasRenderer
Definition Graphic.cs:302
static Transform FindRootSortOverrideCanvas(Transform start)
static int GetStencilDepth(Transform transform, Transform stopAfter)
static void NotifyStencilStateChanged(Component mask)
bool m_ShowMaskGraphic
Definition Mask.cs:161
virtual void OnSiblingGraphicEnabledDisabled()
Definition Mask.cs:77
Graphic graphic
Definition Mask.cs:49
Material m_MaskMaterial
Definition Mask.cs:169
Material m_UnmaskMaterial
Definition Mask.cs:173
virtual bool IsRaycastLocationValid(Vector2 sp, Camera eventCamera)
Definition Mask.cs:131
bool showMaskGraphic
Definition Mask.cs:33
RectTransform m_RectTransform
Definition Mask.cs:157
virtual Material GetModifiedMaterial(Material baseMaterial)
Definition Mask.cs:140
RectTransform rectTransform
Definition Mask.cs:16
Graphic m_Graphic
Definition Mask.cs:165
override void OnDisable()
Definition Mask.cs:101
virtual bool MaskEnabled()
Definition Mask.cs:68
override void OnEnable()
Definition Mask.cs:82
static void Remove(Material customMat)