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
GUIBuilderAccToggles.cs
Go to the documentation of this file.
1using System;
3using Controller;
6using Terraria;
8using Terraria.UI;
9
10// Token: 0x02000126 RID: 294
12{
13 // Token: 0x06000796 RID: 1942 RVA: 0x0001C964 File Offset: 0x0001AB64
15 {
16 /*
17An exception occurred when decompiling this method (06000796)
18
19ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Rectangle GUIBuilderAccToggles::GetRegion()
20
21 ---> System.Exception: Basic block has to end with unconditional control flow.
22{
23 Block_0:
24 stloc:BuilderAccToggles_Layout(var_1_07, callgetter:BuilderAccToggles_Layout(BuilderAccToggles_Layout::get_Instance))
25 stloc:ItemGrid_Layout(var_2_0E, callgetter:ItemGrid_Layout(BuilderAccToggles_Layout::get_ToggleOptionsGrid, ldloc:BuilderAccToggles_Layout(var_1_07)))
26 stloc:bool(var_4_16, callgetter:bool(RightSideHUDAnchorUpdator::get_UseCollpasedCoinsAmmo))
27 stloc:float32(var_5_23, ldfld:float32(Vector2::X, ldfld:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](ItemGrid_Layout::FirstItemLocation, ldloc:ItemGrid_Layout(var_2_0E))))
28 stfld:float32(Vector2::X, ldfld:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](ItemGrid_Layout::FirstItemLocation, ldloc:ItemGrid_Layout(var_2_0E)), ldloc:float32(var_5_23))
29 stloc:class [mscorlib]System.Collections.Generic.List`1<int32>(var_6_38, ldfld:class [mscorlib]System.Collections.Generic.List`1<int32>(GUIBuilderAccToggles::items, ldloc:GUIBuilderAccToggles(this)))
30 stloc:float32(var_7_45, ldfld:float32(Vector2::X, ldfld:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](GUIBuilderAccToggles::toggleSize, ldloc:GUIBuilderAccToggles(this))))
31 stloc:float32(var_8_52, ldfld:float32(Vector2::Y, ldfld:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](GUIBuilderAccToggles::toggleSize, ldloc:GUIBuilderAccToggles(this))))
32 stloc:int32(var_9_5B, ldfld:int32(List`1::_size, ldloc:class [mscorlib]System.Collections.Generic.List`1<int32>[exp:List`1](var_6_38)))
33 stloc:float32(var_11_68, ldfld:float32(Vector2::X, ldfld:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](BuilderAccToggles_Layout::BackingTLOffset, ldloc:BuilderAccToggles_Layout(var_1_07))))
34 stloc:float32(var_12_75, ldfld:float32(Vector2::Y, ldfld:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](BuilderAccToggles_Layout::BackingTLOffset, ldloc:BuilderAccToggles_Layout(var_1_07))))
35 stloc:float32(var_13_82, ldfld:float32(Vector2::X, ldfld:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](BuilderAccToggles_Layout::BackingBROffset, ldloc:BuilderAccToggles_Layout(var_1_07))))
36 stloc:float32(var_14_8F, ldfld:float32(Vector2::Y, ldfld:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](BuilderAccToggles_Layout::BackingBROffset, ldloc:BuilderAccToggles_Layout(var_1_07))))
37 stloc:bool(var_16_99, callgetter:bool(RightSideHUDAnchorUpdator::get_UseCollpasedCoinsAmmo))
38 stloc:float32(var_17_A6, ldfld:float32(Vector2::X, ldfld:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](ItemGrid_Layout::FirstItemLocation, ldloc:ItemGrid_Layout(var_2_0E))))
39 stfld:float32(Vector2::X, ldfld:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](ItemGrid_Layout::FirstItemLocation, ldloc:ItemGrid_Layout(var_2_0E)), ldloc:float32(var_17_A6))
40}
41
42 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
43 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
44 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
45 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
46 --- End of inner exception stack trace ---
47 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
48 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
49*/;
50 }
51
52 // Token: 0x06000797 RID: 1943 RVA: 0x0001CA28 File Offset: 0x0001AC28
54 {
55 /*
56An exception occurred when decompiling this method (06000797)
57
58ICSharpCode.Decompiler.DecompilerException: Error decompiling TransactionButton_Layout GUIBuilderAccToggles::SetupLayout()
59
60 ---> System.Exception: Basic block has to end with unconditional control flow.
61{
62 Block_0:
63 stloc:BuilderAccToggles_Layout(var_2_07, callgetter:BuilderAccToggles_Layout(BuilderAccToggles_Layout::get_Instance))
64 stloc:bool(var_4_0F, callgetter:bool(RightSideHUDAnchorUpdator::get_UseCollpasedCoinsAmmo))
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
77 // Token: 0x06000798 RID: 1944 RVA: 0x0001CA48 File Offset: 0x0001AC48
79 {
81 float x = layout.Location.X;
83 }
84
85 // Token: 0x06000799 RID: 1945 RVA: 0x0001CA78 File Offset: 0x0001AC78
108
109 // Token: 0x170000CF RID: 207
110 // (get) Token: 0x0600079A RID: 1946 RVA: 0x0001CD00 File Offset: 0x0001AF00
111 public int ItemCount
112 {
113 get
114 {
115 if (this.Enabled)
116 {
117 return this.items._size;
118 }
119 }
120 }
121
122 // Token: 0x0600079B RID: 1947 RVA: 0x000021DB File Offset: 0x000003DB
123 private void RefreshList(Player plr)
124 {
125 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
126 }
127
128 // Token: 0x0600079C RID: 1948 RVA: 0x0001CD24 File Offset: 0x0001AF24
129 private float ItemScale(int index)
130 {
131 /*
132An exception occurred when decompiling this method (0600079C)
133
134ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single GUIBuilderAccToggles::ItemScale(System.Int32)
135
136 ---> System.Exception: Basic block has to end with unconditional control flow.
137{
138 Block_0:
139 stloc:float32(var_1_0C, ldfld:float32(BuilderAccToggles_Layout::ToggleScale, callgetter:BuilderAccToggles_Layout(BuilderAccToggles_Layout::get_Instance)))
140}
141
142 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
143 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
144 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
145 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
146 --- End of inner exception stack trace ---
147 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
148 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
149*/;
150 }
151
152 // Token: 0x0600079D RID: 1949 RVA: 0x0001CD40 File Offset: 0x0001AF40
153 private void ItemOver(int index)
154 {
156 if (!true)
157 {
158 }
160 }
161
162 // Token: 0x0600079E RID: 1950 RVA: 0x0001CD60 File Offset: 0x0001AF60
163 private void ItemDraw(ItemGrid_Layout gridLayout, int z, Vector2 position, float scale)
164 {
165 int num = 1;
167 float x = this.toggleSize.X;
168 float y = this.toggleSize.Y;
169 int num2 = 32640;
170 if (num == 0)
171 {
172 }
173 int myPlayer = Main.myPlayer;
174 List<int> list = this.items;
176 if (num == 0)
177 {
178 }
179 if (num2 == 0)
180 {
181 }
182 int myPlayer2 = Main.myPlayer;
183 if (num2 == 0)
184 {
185 }
186 int num3 = this.hoverItem;
187 if (num3 == 0)
188 {
189 }
190 bool mouseLeft = Main.mouseLeft;
191 if (num3 == 0)
192 {
193 }
194 bool mouseLeftRelease = Main.mouseLeftRelease;
195 if (num3 == 0)
196 {
197 }
198 int myPlayer3 = Main.myPlayer;
199 int myPlayer4 = Main.myPlayer;
200 int myPlayer5 = Main.myPlayer;
201 if (num2 == 0)
202 {
203 }
204 string text;
213 if (toggleEntry3 == null)
214 {
215 }
216 int myPlayer6 = Main.myPlayer;
218 }
219
220 // Token: 0x0600079F RID: 1951 RVA: 0x0001D034 File Offset: 0x0001B234
221 public void Close()
222 {
223 if (!this.Enabled || this.pickingInterceptor != null)
224 {
225 }
226 }
227
228 // Token: 0x060007A0 RID: 1952 RVA: 0x0001D054 File Offset: 0x0001B254
245
246 // Token: 0x060007A1 RID: 1953 RVA: 0x0001D0C4 File Offset: 0x0001B2C4
248 {
249 }
250
251 // Token: 0x04000614 RID: 1556
252 public bool Enabled;
253
254 // Token: 0x04000615 RID: 1557
255 private float toggleButtonScale;
256
257 // Token: 0x04000616 RID: 1558
258 private int blockReplaceIcons;
259
260 // Token: 0x04000617 RID: 1559
261 private int torchGodIcons;
262
263 // Token: 0x04000618 RID: 1560
264 private int totalDrawnIcons;
265
266 // Token: 0x04000619 RID: 1561
267 private int hoverItem;
268
269 // Token: 0x0400061A RID: 1562
271
272 // Token: 0x0400061B RID: 1563
274
275 // Token: 0x0400061C RID: 1564
277
278 // Token: 0x0400061D RID: 1565
279 private float TimeSinceChanged = (float)17096;
280
281 // Token: 0x0400061E RID: 1566
282 private string TooltipString;
283}
class f__AnonymousType0<< Count > j__TPar
static BuilderAccToggles_Layout Instance
TransactionButton_Layout ToggleEntry
static Rectangle PageContentRegion
static Rectangle PageGroupRegion
bool IsOverBuilderTools(Vector2 position)
void ItemDraw(ItemGrid_Layout gridLayout, int z, Vector2 position, float scale)
TransactionButton_Layout SetupLayout()
GUIInputRegionExclusive pickingInterceptor
void FinaliseLayout(TransactionButton_Layout layout)
static Rectangle GetRegion(TransactionButton_Layout layout)
GUIPageIconGrouping GetCategoryGrouping(GUIPageIcons.Category category, bool includeOptions=true)
static InterfaceProfile_Layout Active
static string GetTextValue(string key)
Definition Language.cs:54
static int myPlayer
Definition Main.cs:2337
static bool mouseLeftRelease
Definition Main.cs:2029
static bool mouseLeft
Definition Main.cs:671
static void UpdateTooltipContext(int context, int slot)
Definition ItemSlot.cs:972