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
GUIControllerRubbleMaker.cs
Go to the documentation of this file.
1using System;
3
4// Token: 0x020000A3 RID: 163
6{
7 // Token: 0x060003D8 RID: 984 RVA: 0x0000C928 File Offset: 0x0000AB28
8 public void Activate()
9 {
10 }
11
12 // Token: 0x060003D9 RID: 985 RVA: 0x0000C948 File Offset: 0x0000AB48
14 {
15 }
16
17 // Token: 0x060003DA RID: 986 RVA: 0x0000C958 File Offset: 0x0000AB58
19 {
20 /*
21An exception occurred when decompiling this method (060003DA)
22
23ICSharpCode.Decompiler.DecompilerException: Error decompiling GUIControllerItem GUIControllerRubbleMaker::Navigate(Microsoft.Xna.Framework.Vector2)
24
25 ---> System.Exception: Basic block has to end with unconditional control flow.
26{
27 IL_00F8:
28 stfld:bool(GUIControllerRubbleMaker::filterButton, ldloc:GUIControllerRubbleMaker(this), ldloc:int32[exp:bool](var_23))
29}
30
31 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
32 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
33 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
34 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
35 --- End of inner exception stack trace ---
36 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
37 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
38*/;
39 }
40
41 // Token: 0x060003DB RID: 987 RVA: 0x0000CA64 File Offset: 0x0000AC64
49
50 // Token: 0x060003DC RID: 988 RVA: 0x0000CAB0 File Offset: 0x0000ACB0
58
59 // Token: 0x060003DD RID: 989 RVA: 0x0000CB08 File Offset: 0x0000AD08
61 {
62 bool flag;
64 do
65 {
68 if (!this.wasInFilterGrid)
69 {
71 }
72 this.ClampMaterialGrid();
73 if (this.inGrid)
74 {
75 this.ClampRubbleGrid();
76 }
83 Vector2 firstItemLocation = materialOptions.FirstItemLocation;
84 float x = materialOptions.FirstItemLocation.X;
85 float y = materialOptions.FirstItemLocation.Y;
86 if (instance2 == null)
87 {
88 }
89 float x2 = materialOptions.ExtraElementSpacing.X;
90 int num = this.filterGridRow;
91 int num2 = this.filterGridCol;
92 if (this.inGrid)
93 {
98 float rubbleScale = instance4.RubbleScale;
100 Vector2 firstItemLocation2 = rubbleOptions2.FirstItemLocation;
101 float x3 = rubbleOptions2.FirstItemLocation.X;
102 float y2 = rubbleOptions2.FirstItemLocation.Y;
103 if (instance4 == null)
104 {
105 }
106 float x4 = rubbleOptions2.ExtraElementSpacing.X;
107 int num3 = this.gridRow;
108 int num4 = this.gridCol;
109 float y3 = rubbleOptions2.ExtraElementSpacing.Y;
110 }
111 flag = this.filterButton;
112 instance5 = RubbleMakerUI_Layout.Instance;
113 }
114 while (!flag);
115 Texture_Layout backingDisabled = instance5.MaterialToggle.BackingDisabled;
117 return rectangle2;
118 }
119
120 // Token: 0x060003DE RID: 990 RVA: 0x0000CC7C File Offset: 0x0000AE7C
122 {
123 }
124
125 // Token: 0x040003BE RID: 958
126 private bool wasInFilterGrid;
127
128 // Token: 0x040003BF RID: 959
129 private int filterGridRow;
130
131 // Token: 0x040003C0 RID: 960
132 private int filterGridCol;
133
134 // Token: 0x040003C1 RID: 961
135 private bool inGrid;
136
137 // Token: 0x040003C2 RID: 962
138 private int gridRow;
139
140 // Token: 0x040003C3 RID: 963
141 private int gridCol;
142
143 // Token: 0x040003C4 RID: 964
144 private bool filterButton;
145
146 // Token: 0x040003C5 RID: 965
147 private bool sizeButton;
148}
class f__AnonymousType0<< Count > j__TPar
static void SetMainMenuPageRegion(Rectangle region)
GUIControllerItem Navigate(Vector2 navigationVector)
Vector2 ExtraElementSpacing
static RubbleMakerUI_Layout Instance
ItemGrid_Layout MaterialOptions
ItemGrid_Layout RubbleOptions