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
GUIReforge.cs
Go to the documentation of this file.
1using System;
5using Terraria;
6using Terraria.UI;
7
8// Token: 0x02000167 RID: 359
9public class GUIReforge
10{
11 // Token: 0x06000A10 RID: 2576 RVA: 0x0002FE58 File Offset: 0x0002E058
18
19 // Token: 0x17000106 RID: 262
20 // (get) Token: 0x06000A11 RID: 2577 RVA: 0x0002FE74 File Offset: 0x0002E074
21 public bool Collapsed
22 {
23 get
24 {
25 if (!true)
26 {
27 }
29 }
30 }
31
32 // Token: 0x06000A12 RID: 2578 RVA: 0x0002FE94 File Offset: 0x0002E094
33 public int ReforgeCost()
34 {
35 int type = this.ReforgeItem.type;
36 Item reforgeItem = this.ReforgeItem;
37 int value = this.ReforgeItem.value;
38 long num = 0L;
39 this.refCost = (int)num;
40 if (num == 0L)
41 {
42 }
43 int myPlayer = Main.myPlayer;
44 int num2 = this.refCost;
45 long num3;
46 if (num != 0L)
47 {
48 num3 = 32752L;
50 }
51 if (num3 == 0L)
52 {
53 }
56 return myPlayer2;
57 }
58
59 // Token: 0x06000A13 RID: 2579 RVA: 0x0002FF0C File Offset: 0x0002E10C
60 public void Reset()
61 {
62 if (!true)
63 {
64 }
65 if (!true)
66 {
67 }
69 }
70
71 // Token: 0x06000A14 RID: 2580 RVA: 0x000021DB File Offset: 0x000003DB
72 private void RefreshItems()
73 {
74 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
75 }
76
77 // Token: 0x17000107 RID: 263
78 // (get) Token: 0x06000A15 RID: 2581 RVA: 0x0002FF28 File Offset: 0x0002E128
79 public bool HasFocus
80 {
81 get
82 {
84 return true;
85 }
86 }
87
88 // Token: 0x06000A16 RID: 2582 RVA: 0x0002FF40 File Offset: 0x0002E140
89 public void DrawReforge()
90 {
91 int type = this.ReforgeItem.type;
92 Item reforgeItem = this.ReforgeItem;
93 }
94
95 // Token: 0x06000A17 RID: 2583 RVA: 0x00030008 File Offset: 0x0002E208
96 public void Draw()
97 {
98 int num = 1;
99 if (num == 0)
100 {
101 }
102 int myPlayer = Main.myPlayer;
103 if (num == 0)
104 {
105 }
106 if (Main.npcShop != 0)
107 {
108 if (num == 0)
109 {
110 }
111 Main.InReforgeMenu = false;
112 int myPlayer2 = Main.myPlayer;
113 long num2 = 0L;
115 return;
116 }
117 int myPlayer3 = Main.myPlayer;
123 int itemCount = draggableItemGrid_Layout.ItemCount;
125 if (rectangle == null)
126 {
127 }
128 int mouseX = Main.mouseX;
129 int mouseY = Main.mouseY;
132 {
133 }
135 long num3;
136 if (guicontrollerReforge != null)
137 {
138 num3 = 0L;
141 }
142 Item item;
143 int type = item.type;
144 Item item2;
145 bool flag = item2.Prefix((int)num3);
149 {
150 }
156 {
157 }
159 }
160
161 // Token: 0x17000108 RID: 264
162 // (get) Token: 0x06000A18 RID: 2584 RVA: 0x00030110 File Offset: 0x0002E310
164 {
165 get
166 {
168 int selectedItem = this._selectedItem;
169 int size = reforgeItems._size;
170 return this._defaultItem;
171 }
172 }
173
174 // Token: 0x06000A19 RID: 2585 RVA: 0x00030138 File Offset: 0x0002E338
175 public float ReforgeItemScale(int index)
176 {
177 /*
178An exception occurred when decompiling this method (06000A19)
179
180ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single GUIReforge::ReforgeItemScale(System.Int32)
181
182 ---> System.Exception: Basic block has to end with unconditional control flow.
183{
184 Block_0:
185 stloc:!0(var_0_05, callgetter:!0(PageControllerLayoutDefinition`1::get_Instance))
186}
187
188 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
189 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
190 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
191 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
192 --- End of inner exception stack trace ---
193 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
194 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
195*/;
196 }
197
198 // Token: 0x06000A1A RID: 2586 RVA: 0x0003014C File Offset: 0x0002E34C
199 public void ReforgeItemOver(int index)
200 {
202 int size = this._reforgeItems._size;
204 bool mouseLeft = Main.mouseLeft;
205 bool mouseLeftRelease = Main.mouseLeftRelease;
206 int selectedItem = this._selectedItem;
208 }
209
210 // Token: 0x06000A1B RID: 2587 RVA: 0x00030194 File Offset: 0x0002E394
211 public void ReforgeItemDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
212 {
213 if (!true)
214 {
215 }
216 Main.inventoryScale = scale;
217 int num = this.cursorOver;
218 if (!true)
219 {
220 }
221 int size = this._reforgeItems._size;
223 int selectedItem = this._selectedItem;
224 int num2 = this.cursorOver;
225 }
226
227 // Token: 0x06000A1C RID: 2588 RVA: 0x00030278 File Offset: 0x0002E478
228 public GUIReforge()
229 {
230 }
231
232 // Token: 0x040009EF RID: 2543
233 private int refCost;
234
235 // Token: 0x040009F0 RID: 2544
237
238 // Token: 0x040009F1 RID: 2545
240
241 // Token: 0x040009F2 RID: 2546
242 private int _selectedItem;
243
244 // Token: 0x040009F3 RID: 2547
246
247 // Token: 0x040009F4 RID: 2548
249
250 // Token: 0x040009F5 RID: 2549
252
253 // Token: 0x040009F6 RID: 2550
255
256 // Token: 0x040009F7 RID: 2551
257 private int cursorOver = 1;
258
259 // Token: 0x040009F8 RID: 2552
260 private float reforgeActionScale;
261}
class f__AnonymousType0<< Count > j__TPar
static DrPlatform.DrPlatformType CurrentPlatform
Definition DrPlatform.cs:26
float reforgeScrollOffset
float reforgeActionScale
void Draw()
Definition GUIReforge.cs:96
void ReforgeItemOver(int index)
int ReforgeCost()
Definition GUIReforge.cs:33
bool Collapsed
Definition GUIReforge.cs:22
int _selectedItem
int reforgeScrollDragging
Vector2 reforgeDragOffset
bool HasFocus
Definition GUIReforge.cs:80
List< Item > _reforgeItems
void DrawReforge()
Definition GUIReforge.cs:89
void RefreshItems()
Definition GUIReforge.cs:72
float ReforgeItemScale(int index)
void ReforgeItemDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
Item ReforgeItem
void Reset()
Definition GUIReforge.cs:60
void LoadPageRegion()
Definition GUIReforge.cs:12
Item _defaultItem
float reforgeScrollMomentum
bool IsCollapsed(GUIPageIcons.Category category)
static InterfaceProfile_Layout Active
bool Prefix(int prefixWeWant)
Definition Item.cs:234
static int myPlayer
Definition Main.cs:2337
static bool mouseLeftRelease
Definition Main.cs:2029
static int npcShop
Definition Main.cs:2547
static bool InGuideCraftMenu
Definition Main.cs:2645
static int mouseY
Definition Main.cs:601
static int mouseX
Definition Main.cs:587
static bool mouseLeft
Definition Main.cs:671
static void FindRecipes(bool canDelayCheck=false)
Definition Recipe.cs:204
static void UpdateTooltipContext(int context, int slot)
Definition ItemSlot.cs:972
static bool ControllerModeLocked