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
GUIMana.cs
Go to the documentation of this file.
1using System;
2using Controller;
6using Terraria;
7using UnityEngine;
8
9// Token: 0x02000155 RID: 341
10public class GUIMana
11{
12 // Token: 0x06000950 RID: 2384 RVA: 0x00028BCC File Offset: 0x00026DCC
13 public GUIMana()
14 {
15 }
16
17 // Token: 0x170000E7 RID: 231
18 // (get) Token: 0x06000951 RID: 2385 RVA: 0x00028C0C File Offset: 0x00026E0C
20 {
21 get
22 {
23 /*
24An exception occurred when decompiling this method (06000951)
25
26ICSharpCode.Decompiler.DecompilerException: Error decompiling ItemGrid_Layout GUIMana::get_ManaGrid()
27
28 ---> System.Exception: Basic block has to end with unconditional control flow.
29{
30 Block_0:
31 stloc:bool(var_1_07, callgetter:bool(ControllerActionManager::get_AnyControllerConnected))
32}
33
34 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
35 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
36 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
37 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
38 --- End of inner exception stack trace ---
39 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
40 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
41*/;
42 }
43 }
44
45 // Token: 0x170000E8 RID: 232
46 // (get) Token: 0x06000952 RID: 2386 RVA: 0x00028C20 File Offset: 0x00026E20
48 {
49 get
50 {
51 /*
52An exception occurred when decompiling this method (06000952)
53
54ICSharpCode.Decompiler.DecompilerException: Error decompiling String_Layout GUIMana::get_ManaTitle()
55
56 ---> System.Exception: Basic block has to end with unconditional control flow.
57{
58 Block_0:
59 stloc:bool(var_1_07, callgetter:bool(ControllerActionManager::get_AnyControllerConnected))
60}
61
62 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
63 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
64 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
65 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
66 --- End of inner exception stack trace ---
67 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
68 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
69*/;
70 }
71 }
72
73 // Token: 0x170000E9 RID: 233
74 // (get) Token: 0x06000953 RID: 2387 RVA: 0x00028C34 File Offset: 0x00026E34
76 {
77 get
78 {
79 /*
80An exception occurred when decompiling this method (06000953)
81
82ICSharpCode.Decompiler.DecompilerException: Error decompiling String_Layout GUIMana::get_ManaValue()
83
84 ---> System.Exception: Basic block has to end with unconditional control flow.
85{
86 Block_0:
87 stloc:bool(var_1_07, callgetter:bool(ControllerActionManager::get_AnyControllerConnected))
88}
89
90 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
91 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
92 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
93 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
94 --- End of inner exception stack trace ---
95 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
96 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
97*/;
98 }
99 }
100
101 // Token: 0x06000954 RID: 2388 RVA: 0x00028C48 File Offset: 0x00026E48
103 {
106 if (!true)
107 {
108 }
111 bool flag = this.LayoutCache.Dirty(itemGrid_Layout);
112 float x = this.lastAnchorPoint.X;
113 float y = this.lastAnchorPoint.Y;
114 int num = this.starCount;
116 this.lastStarCount = num;
119 int num2 = this.starCount;
120 if (num == 0)
121 {
122 }
127 int width = this.StarsRegion.Width;
128 return starsRegion;
129 }
130
131 // Token: 0x06000955 RID: 2389 RVA: 0x00028CFC File Offset: 0x00026EFC
133 {
134 }
135
136 // Token: 0x06000956 RID: 2390 RVA: 0x00028D0C File Offset: 0x00026F0C
138 {
139 }
140
141 // Token: 0x06000957 RID: 2391 RVA: 0x000021DB File Offset: 0x000003DB
142 private float StarScale(int index)
143 {
144 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
145 }
146
147 // Token: 0x06000958 RID: 2392 RVA: 0x00028D1C File Offset: 0x00026F1C
148 private void StarOver(int index)
149 {
150 if (!true)
151 {
152 }
153 bool mouseLeft = Main.mouseLeft;
154 if (!true)
155 {
156 }
157 bool mouseLeftRelease = Main.mouseLeftRelease;
158 if (!true)
159 {
160 }
161 int mouseX = Main.mouseX;
162 int mouseY = Main.mouseY;
168 }
169
170 // Token: 0x06000959 RID: 2393 RVA: 0x00028D7C File Offset: 0x00026F7C
171 private void StarDraw(ItemGrid_Layout gridLayout, int index, Microsoft.Xna.Framework.Vector2 position, float scale)
172 {
173 int num = this.starCount;
174 if (gridLayout.ItemLineCount == 0)
175 {
176 }
177 }
178
179 // Token: 0x0600095A RID: 2394 RVA: 0x00028F88 File Offset: 0x00027188
180 public void Draw()
181 {
182 int myPlayer = Main.myPlayer;
183 int myPlayer2 = Main.myPlayer;
184 int lastValue = this.LastValue;
185 int myPlayer3 = Main.myPlayer;
186 float timeSinceChange = this.TimeSinceChange;
187 float deltaTime = Time.deltaTime;
188 }
189
190 // Token: 0x040008F8 RID: 2296
191 private int starMana;
192
193 // Token: 0x040008F9 RID: 2297
194 private int starCount;
195
196 // Token: 0x040008FA RID: 2298
197 private int lastStarCount;
198
199 // Token: 0x040008FB RID: 2299
201
202 // Token: 0x040008FC RID: 2300
204
205 // Token: 0x040008FD RID: 2301
207
208 // Token: 0x040008FE RID: 2302
210
211 // Token: 0x040008FF RID: 2303
213
214 // Token: 0x04000900 RID: 2304
216
217 // Token: 0x04000901 RID: 2305
219
220 // Token: 0x04000902 RID: 2306
222
223 // Token: 0x04000903 RID: 2307
225
226 // Token: 0x04000904 RID: 2308
228
229 // Token: 0x04000905 RID: 2309
231
232 // Token: 0x04000906 RID: 2310
234
235 // Token: 0x04000907 RID: 2311
237
238 // Token: 0x04000908 RID: 2312
239 private float TimeSinceChange;
240
241 // Token: 0x04000909 RID: 2313
242 private int LastValue;
243}
class f__AnonymousType0<< Count > j__TPar
bool Dirty(ItemGrid_Layout layout)
static Rectangle Right_Root
void StarDraw(ItemGrid_Layout gridLayout, int index, Microsoft.Xna.Framework.Vector2 position, float scale)
Definition GUIMana.cs:171
void RestoreForTouchButton(ItemGrid_Layout grid)
Definition GUIMana.cs:137
Microsoft.Xna.Framework.Vector2 manaBackingSingleOffset
Definition GUIMana.cs:209
Microsoft.Xna.Framework.Vector2 lastAnchorPoint
Definition GUIMana.cs:206
Microsoft.Xna.Framework.Vector2 manaBackingLeftBarOffset
Definition GUIMana.cs:221
Rectangle StarsRegion
Definition GUIMana.cs:203
Microsoft.Xna.Framework.Vector2 manaBackingMidBarOffset
Definition GUIMana.cs:224
Microsoft.Xna.Framework.Vector2 manaBackingBottomOffset
Definition GUIMana.cs:215
Microsoft.Xna.Framework.Vector2 manaBackingTopOffset
Definition GUIMana.cs:212
float StarScale(int index)
Definition GUIMana.cs:142
void AdjustForTouchReturn(ItemGrid_Layout grid)
Definition GUIMana.cs:132
void Draw()
Definition GUIMana.cs:180
int starMana
Definition GUIMana.cs:191
CachedGridLayoutSettings LayoutCache
Definition GUIMana.cs:200
ItemGrid_Layout ManaGrid
Definition GUIMana.cs:20
Microsoft.Xna.Framework.Vector2 manaBackingRightBarOffset
Definition GUIMana.cs:227
Rectangle GetManaRegion()
Definition GUIMana.cs:102
GUIItemGrid.DrawItemHandler starDraw
Definition GUIMana.cs:236
int starCount
Definition GUIMana.cs:194
float TimeSinceChange
Definition GUIMana.cs:239
GUIMana()
Definition GUIMana.cs:13
String_Layout ManaTitle
Definition GUIMana.cs:48
int LastValue
Definition GUIMana.cs:242
String_Layout ManaValue
Definition GUIMana.cs:76
Microsoft.Xna.Framework.Vector2 manaBackingMidOffset
Definition GUIMana.cs:218
int lastStarCount
Definition GUIMana.cs:197
GUIItemGrid.GetItemScaleHandler starScale
Definition GUIMana.cs:233
GUIItemGrid.CursorOver starOver
Definition GUIMana.cs:230
void StarOver(int index)
Definition GUIMana.cs:148
static int myPlayer
Definition Main.cs:2337
static bool mouseLeftRelease
Definition Main.cs:2029
static int mouseY
Definition Main.cs:601
static int mouseX
Definition Main.cs:587
static bool mouseLeft
Definition Main.cs:671
static float deltaTime
Definition Time.cs:14