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
RawImage.cs
Go to the documentation of this file.
1using System;
3
4namespace UnityEngine.UI
5{
6 // Token: 0x0200005C RID: 92
8 [AddComponentMenu("UI/Raw Image", 12)]
9 public class RawImage : MaskableGraphic
10 {
11 // Token: 0x0600036E RID: 878 RVA: 0x0000B410 File Offset: 0x00009610
12 protected RawImage()
13 {
14 }
15
16 // Token: 0x170000E3 RID: 227
17 // (get) Token: 0x0600036F RID: 879 RVA: 0x0000B424 File Offset: 0x00009624
18 public override Texture mainTexture
19 {
20 get
21 {
23 return texture;
24 }
25 }
26
27 // Token: 0x170000E4 RID: 228
28 // (get) Token: 0x06000370 RID: 880 RVA: 0x0000B43C File Offset: 0x0000963C
29 // (set) Token: 0x06000371 RID: 881 RVA: 0x0000B450 File Offset: 0x00009650
31 {
32 get
33 {
34 return this.m_Texture;
35 }
36 set
37 {
39 if (!true)
40 {
41 }
42 bool flag = texture == value;
43 }
44 }
45
46 // Token: 0x170000E5 RID: 229
47 // (get) Token: 0x06000372 RID: 882 RVA: 0x0000B478 File Offset: 0x00009678
48 // (set) Token: 0x06000373 RID: 883 RVA: 0x0000B4B4 File Offset: 0x000096B4
49 public Rect uvRect
50 {
51 get
52 {
53 /*
54An exception occurred when decompiling this method (06000372)
55
56ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Rect UnityEngine.UI.RawImage::get_uvRect()
57
58 ---> System.Exception: Basic block has to end with unconditional control flow.
59{
60 Block_0:
61 stloc:float32(var_0_0B, ldfld:float32(Rect::m_XMin, ldfld:Rect[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Rect&](RawImage::m_UVRect, ldloc:RawImage(this))))
62 stloc:float32(var_1_17, ldfld:float32(Rect::m_YMin, ldfld:Rect[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Rect&](RawImage::m_UVRect, ldloc:RawImage(this))))
63 stloc:float32(var_2_23, ldfld:float32(Rect::m_Width, ldfld:Rect[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Rect&](RawImage::m_UVRect, ldloc:RawImage(this))))
64 stloc:float32(var_3_2F, ldfld:float32(Rect::m_Height, ldfld:Rect[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Rect&](RawImage::m_UVRect, ldloc:RawImage(this))))
65}
66
67 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
68 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
69 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
70 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
71 --- End of inner exception stack trace ---
72 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
73 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
74*/;
75 }
76 set
77 {
78 float xmin = this.m_UVRect.m_XMin;
79 float ymin = this.m_UVRect.m_YMin;
80 float width = this.m_UVRect.m_Width;
81 float height = this.m_UVRect.m_Height;
82 }
83 }
84
85 // Token: 0x06000374 RID: 884 RVA: 0x0000B4F8 File Offset: 0x000096F8
86 public override void SetNativeSize()
87 {
88 if (!true)
89 {
90 }
91 }
92
93 // Token: 0x06000375 RID: 885 RVA: 0x0000B530 File Offset: 0x00009730
94 protected override void OnPopulateMesh(VertexHelper vh)
95 {
96 vh.Clear();
97 Rect pixelAdjustedRect = base.GetPixelAdjustedRect();
98 float x = pixelAdjustedRect.x;
99 float y = pixelAdjustedRect.y;
100 float x2 = pixelAdjustedRect.x;
101 float width = pixelAdjustedRect.width;
102 float y2 = pixelAdjustedRect.y;
103 float height = pixelAdjustedRect.height;
104 }
105
106 // Token: 0x06000376 RID: 886 RVA: 0x0000B5D4 File Offset: 0x000097D4
107 protected override void OnDidApplyAnimationProperties()
108 {
109 base.SetRaycastDirty();
110 }
111
112 // Token: 0x040001AD RID: 429
114 [FormerlySerializedAs("m_Tex")]
116
117 // Token: 0x040001AE RID: 430
119 private Rect m_UVRect;
120 }
121}
class f__AnonymousType0<< Count > j__TPar
override void OnPopulateMesh(VertexHelper vh)
Definition RawImage.cs:94
override Texture mainTexture
Definition RawImage.cs:19
override void OnDidApplyAnimationProperties()
Definition RawImage.cs:107
override void SetNativeSize()
Definition RawImage.cs:86
float m_XMin
Definition Rect.cs:522
float m_Height
Definition Rect.cs:534
float m_YMin
Definition Rect.cs:526
float m_Width
Definition Rect.cs:530