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
GUISafeRegionEdit.cs
Go to the documentation of this file.
1using System;
2using UnityEngine;
3
4// Token: 0x0200027E RID: 638
5public class GUISafeRegionEdit
6{
7 // Token: 0x06000E6C RID: 3692 RVA: 0x000467E4 File Offset: 0x000449E4
9 {
11 }
12
13 // Token: 0x06000E6D RID: 3693 RVA: 0x00046804 File Offset: 0x00044A04
14 public void UpdateCursor(global::Cursor cursor)
15 {
17 if (inputLayer == null)
18 {
19 float x = cursor.Position.x;
20 float y = cursor.Position.y;
21 if (inputLayer == null)
22 {
23 }
25 float x2 = cursor.Position.x;
29 return;
30 }
31 }
32
33 // Token: 0x06000E6E RID: 3694 RVA: 0x00046918 File Offset: 0x00044B18
34 public void DrawBacking()
35 {
36 int screenHeight = XNAUnityRunner.ScreenHeight;
37 int screenWidth = XNAUnityRunner.ScreenWidth;
38 if (!this.LeftPressed)
39 {
40 }
41 if (!this.TopPressed)
42 {
43 }
44 if (!this.BottomPressed)
45 {
46 }
47 if (!this.RightPressed)
48 {
49 }
50 if (this.LeftPressed)
51 {
52 }
53 if (this.TopPressed)
54 {
55 }
56 if (this.BottomPressed)
57 {
58 }
59 bool rightPressed = this.RightPressed;
60 if (rightPressed)
61 {
62 }
63 if (!rightPressed)
64 {
65 }
66 }
67
68 // Token: 0x06000E6F RID: 3695 RVA: 0x00046984 File Offset: 0x00044B84
69 public void UpdateEdit()
70 {
71 if (!true)
72 {
73 }
74 if (!true)
75 {
76 }
78 }
79
80 // Token: 0x06000E70 RID: 3696 RVA: 0x000469A0 File Offset: 0x00044BA0
81 public void Draw()
82 {
83 bool leftPressed = this.LeftPressed;
84 bool rightPressed = this.RightPressed;
85 bool topPressed = this.TopPressed;
86 bool bottomPressed = this.BottomPressed;
87 bool leftPressed2 = this.LeftPressed;
88 bool rightPressed2 = this.RightPressed;
89 bool topPressed2 = this.TopPressed;
90 bool bottomPressed2 = this.BottomPressed;
91 }
92
93 // Token: 0x06000E71 RID: 3697 RVA: 0x000469EC File Offset: 0x00044BEC
94 private bool UpdateCursorDragging(Rect safeArea)
95 {
96 /*
97An exception occurred when decompiling this method (06000E71)
98
99ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean GUISafeRegionEdit::UpdateCursorDragging(UnityEngine.Rect)
100
101 ---> System.Exception: Basic block has to end with unconditional control flow.
102{
103 IL_016A:
104 stloc:int32(var_59_172, callgetter:int32(XNAUnityRunner::get_ScreenWidth))
105 callsetter:float32(Rect::set_xMin, ldloc:Rect[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Rect&](safeArea), ldloc:float32(var_47_132))
106 stloc:int32(var_61_184, callgetter:int32(XNAUnityRunner::get_ScreenWidth))
107 stloc:int32(var_63_18E, callgetter:int32(XNAUnityRunner::get_ScreenWidth))
108 callsetter:float32(Rect::set_xMax, ldloc:Rect[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Rect&](safeArea), ldloc:float32(var_47_132))
109 stloc:int32(var_65_1A0, callgetter:int32(XNAUnityRunner::get_ScreenHeight))
110 callsetter:float32(Rect::set_yMin, ldloc:Rect[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Rect&](safeArea), ldloc:float32(var_47_132))
111 stloc:int32(var_67_1B2, callgetter:int32(XNAUnityRunner::get_ScreenHeight))
112 stloc:int32(var_69_1BC, callgetter:int32(XNAUnityRunner::get_ScreenHeight))
113 callsetter:float32(Rect::set_yMax, ldloc:Rect[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Rect&](safeArea), ldloc:float32(var_47_132))
114}
115
116 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
117 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
118 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
119 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
120 --- End of inner exception stack trace ---
121 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
122 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
123*/;
124 }
125
126 // Token: 0x04001A53 RID: 6739
128
129 // Token: 0x04001A54 RID: 6740
130 private float leftInitialOffset;
131
132 // Token: 0x04001A55 RID: 6741
133 private float rightInitialOffset;
134
135 // Token: 0x04001A56 RID: 6742
136 private float topInitialOffset;
137
138 // Token: 0x04001A57 RID: 6743
139 private float bottomInitialOffset;
140
141 // Token: 0x04001A58 RID: 6744
142 private float leftScale;
143
144 // Token: 0x04001A59 RID: 6745
145 private float rightScale;
146
147 // Token: 0x04001A5A RID: 6746
148 private float topScale;
149
150 // Token: 0x04001A5B RID: 6747
151 private float bottomScale;
152
153 // Token: 0x04001A5C RID: 6748
154 private float finishScale;
155
156 // Token: 0x04001A5D RID: 6749
157 private float resetScale;
158
159 // Token: 0x04001A5E RID: 6750
160 private bool LeftPressed;
161
162 // Token: 0x04001A5F RID: 6751
163 private bool RightPressed;
164
165 // Token: 0x04001A60 RID: 6752
166 private bool TopPressed;
167
168 // Token: 0x04001A61 RID: 6753
169 private bool BottomPressed;
170}
class f__AnonymousType0<< Count > j__TPar
bool UpdateCursorDragging(Rect safeArea)
CursorInputLayer _inputLayer
void UpdateCursor(global::Cursor cursor)
static int ScreenWidth
static int ScreenHeight