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
MaskableGraphic.cs
Go to the documentation of this file.
1using System;
4
5namespace UnityEngine.UI
6{
7 // Token: 0x02000054 RID: 84
9 {
10 // Token: 0x170000D8 RID: 216
11 // (get) Token: 0x0600033C RID: 828 RVA: 0x0000AC78 File Offset: 0x00008E78
12 // (set) Token: 0x0600033D RID: 829 RVA: 0x0000AC8C File Offset: 0x00008E8C
14 {
15 get
16 {
17 return this.m_OnCullStateChanged;
18 }
19 set
20 {
22 }
23 }
24
25 // Token: 0x170000D9 RID: 217
26 // (get) Token: 0x0600033E RID: 830 RVA: 0x0000ACA0 File Offset: 0x00008EA0
27 // (set) Token: 0x0600033F RID: 831 RVA: 0x0000ACB4 File Offset: 0x00008EB4
28 public bool maskable
29 {
30 get
31 {
32 return this.m_Maskable;
33 }
34 set
35 {
36 bool maskable = this.m_Maskable;
37 }
38 }
39
40 // Token: 0x170000DA RID: 218
41 // (get) Token: 0x06000340 RID: 832 RVA: 0x0000ACD0 File Offset: 0x00008ED0
42 // (set) Token: 0x06000341 RID: 833 RVA: 0x0000ACE4 File Offset: 0x00008EE4
43 public bool isMaskingGraphic
44 {
45 get
46 {
47 return this.m_IsMaskingGraphic;
48 }
49 set
50 {
52 }
53 }
54
55 // Token: 0x06000342 RID: 834 RVA: 0x0000ACF8 File Offset: 0x00008EF8
75
76 // Token: 0x06000343 RID: 835 RVA: 0x0000AD58 File Offset: 0x00008F58
77 public virtual void Cull(Rect clipRect, bool validRect)
78 {
80 }
81
82 // Token: 0x06000344 RID: 836 RVA: 0x0000AD74 File Offset: 0x00008F74
83 private void UpdateCull(bool cull)
84 {
85 bool cull2 = base.canvasRenderer.cull;
87 UISystemProfilerApi.AddMarker("MaskableGraphic.cullingChanged", this);
89 }
90
91 // Token: 0x06000345 RID: 837 RVA: 0x0000ADAC File Offset: 0x00008FAC
92 public virtual void SetClipRect(Rect clipRect, bool validRect)
93 {
94 CanvasRenderer canvasRenderer = base.canvasRenderer;
95 }
96
97 // Token: 0x06000346 RID: 838 RVA: 0x0000ADC8 File Offset: 0x00008FC8
99 {
100 CanvasRenderer canvasRenderer = base.canvasRenderer;
101 }
102
103 // Token: 0x06000347 RID: 839 RVA: 0x0000ADDC File Offset: 0x00008FDC
104 protected override void OnEnable()
105 {
106 base.OnEnable();
108 this.UpdateClipParent();
109 if (this.m_IsMaskingGraphic)
110 {
112 return;
113 }
114 }
115
116 // Token: 0x06000348 RID: 840 RVA: 0x0000AE0C File Offset: 0x0000900C
117 protected override void OnDisable()
118 {
119 base.OnDisable();
120 this.UpdateClipParent();
122 if (this.m_IsMaskingGraphic)
123 {
125 return;
126 }
127 }
128
129 // Token: 0x06000349 RID: 841 RVA: 0x0000AE40 File Offset: 0x00009040
130 protected override void OnTransformParentChanged()
131 {
132 base.OnTransformParentChanged();
133 bool isActiveAndEnabled = base.isActiveAndEnabled;
135 this.UpdateClipParent();
136 }
137
138 // Token: 0x0600034A RID: 842 RVA: 0x0000AE68 File Offset: 0x00009068
140 [Obsolete("Not used anymore.", true)]
141 public virtual void ParentMaskStateChanged()
142 {
143 }
144
145 // Token: 0x0600034B RID: 843 RVA: 0x0000AE78 File Offset: 0x00009078
146 protected override void OnCanvasHierarchyChanged()
147 {
148 base.OnCanvasHierarchyChanged();
149 bool isActiveAndEnabled = base.isActiveAndEnabled;
151 this.UpdateClipParent();
152 }
153
154 // Token: 0x170000DB RID: 219
155 // (get) Token: 0x0600034C RID: 844 RVA: 0x0000AEA0 File Offset: 0x000090A0
157 {
158 get
159 {
160 /*
161An exception occurred when decompiling this method (0600034C)
162
163ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Rect UnityEngine.UI.MaskableGraphic::get_rootCanvasRect()
164
165 ---> System.Exception: Basic block has to end with unconditional control flow.
166{
167 Block_0:
168 stloc:RectTransform(var_0_06, callgetter:RectTransform(Graphic::get_rectTransform, ldloc:MaskableGraphic[exp:Graphic](this)))
169 stloc:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](var_1_0D, ldfld:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](MaskableGraphic::m_Corners, ldloc:MaskableGraphic(this)))
170 call:void(RectTransform::GetWorldCorners, ldloc:RectTransform(var_0_06), ldloc:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](var_1_0D))
171 stloc:bool(var_2_20, call:bool(Object::op_Implicit, callgetter:Canvas[exp:Object](Graphic::get_canvas, ldloc:MaskableGraphic[exp:Graphic](this))))
172 stloc:Matrix4x4(var_3_36, callgetter:Matrix4x4(Transform::get_worldToLocalMatrix, callgetter:Transform(Component::get_transform, callgetter:Canvas[exp:Component](Canvas::get_rootCanvas, callgetter:Canvas(Graphic::get_canvas, ldloc:MaskableGraphic[exp:Graphic](this))))))
173 stloc:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](var_5_40, ldfld:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](MaskableGraphic::m_Corners, ldloc:MaskableGraphic(this)))
174 stloc:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](var_7_48, ldfld:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](MaskableGraphic::m_Corners, ldloc:MaskableGraphic(this)))
175}
176
177 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
178 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
179 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
180 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
181 --- End of inner exception stack trace ---
182 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
183 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
184*/;
185 }
186 }
187
188 // Token: 0x0600034D RID: 845 RVA: 0x0000AEFC File Offset: 0x000090FC
189 private void UpdateClipParent()
190 {
191 if (this.m_Maskable)
192 {
194 return;
195 }
196 long num = 0L;
199 this.m_ParentMask.RemoveClippable(this);
200 long num2 = 0L;
201 this.UpdateCull(num2 != 0L);
202 this.m_ParentMask = num;
203 }
204
205 // Token: 0x0600034E RID: 846 RVA: 0x0000AF48 File Offset: 0x00009148
206 public virtual void RecalculateClipping()
207 {
208 this.UpdateClipParent();
209 }
210
211 // Token: 0x0600034F RID: 847 RVA: 0x0000AF5C File Offset: 0x0000915C
212 public virtual void RecalculateMasking()
213 {
215 if (!true)
216 {
217 }
220 }
221
222 // Token: 0x06000350 RID: 848 RVA: 0x0000AF80 File Offset: 0x00009180
223 protected MaskableGraphic()
224 {
225 if (!true)
226 {
227 }
228 base..ctor();
229 }
230
231 // Token: 0x06000351 RID: 849 RVA: 0x0000AFAC File Offset: 0x000091AC
232 GameObject IClippable.get_gameObject()
233 {
234 return base.gameObject;
235 }
236
237 // Token: 0x04000197 RID: 407
239 protected bool m_ShouldRecalculateStencil = true;
240
241 // Token: 0x04000198 RID: 408
244
245 // Token: 0x04000199 RID: 409
248
249 // Token: 0x0400019A RID: 410
251 private bool m_Maskable = true;
252
253 // Token: 0x0400019B RID: 411
254 private bool m_IsMaskingGraphic;
255
256 // Token: 0x0400019C RID: 412
257 [Obsolete("Not used anymore.", true)]
260 protected bool m_IncludeForMasking;
261
262 // Token: 0x0400019D RID: 413
265
266 // Token: 0x0400019E RID: 414
268 [Obsolete("Not used anymore", true)]
270 protected bool m_ShouldRecalculate = true;
271
272 // Token: 0x0400019F RID: 415
274 protected int m_StencilValue;
275
276 // Token: 0x040001A0 RID: 416
278
279 // Token: 0x02000055 RID: 85
280 [Serializable]
282 {
283 // Token: 0x06000352 RID: 850 RVA: 0x0000AFC0 File Offset: 0x000091C0
285 {
286 }
287 }
288 }
289}
class f__AnonymousType0<< Count > j__TPar
static void AddMarker(string name, Object obj)
CanvasRenderer canvasRenderer
Definition Graphic.cs:302
virtual Material material
Definition Graphic.cs:337
static RectMask2D GetRectMaskForClippable(IClippable clippable)
static Transform FindRootSortOverrideCanvas(Transform start)
static int GetStencilDepth(Transform transform, Transform stopAfter)
static void NotifyStencilStateChanged(Component mask)
virtual Material GetModifiedMaterial(Material baseMaterial)
MaskableGraphic.CullStateChangedEvent onCullStateChanged
MaskableGraphic.CullStateChangedEvent m_OnCullStateChanged
virtual void SetClipSoftness(Vector2 clipSoftness)
virtual void SetClipRect(Rect clipRect, bool validRect)
virtual void Cull(Rect clipRect, bool validRect)
void RemoveClippable(IClippable clippable)
static void Remove(Material customMat)