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
GUIReforgePopup.cs
Go to the documentation of this file.
1using System;
2using Controller;
5using Terraria;
6
7// Token: 0x02000168 RID: 360
8public class GUIReforgePopup
9{
10 // Token: 0x06000A1D RID: 2589 RVA: 0x00030294 File Offset: 0x0002E494
11 private void SetupBackingSize()
12 {
13 float y = this.CachedTextSize.Y;
15 int num = 32768;
16 int num2 = 28;
17 if (num == 0)
18 {
19 }
20 if (num2 == 0)
21 {
22 }
23 int num3 = 32768;
24 Item item;
25 int stack = item.stack;
26 int type = item.type;
27 string hoverName = item.HoverName;
28 if (num3 == 0)
29 {
30 }
31 }
32
33 // Token: 0x06000A1E RID: 2590 RVA: 0x000302F4 File Offset: 0x0002E4F4
40
41 // Token: 0x06000A1F RID: 2591 RVA: 0x00030310 File Offset: 0x0002E510
52
53 // Token: 0x06000A20 RID: 2592 RVA: 0x0003033C File Offset: 0x0002E53C
54 public void ClosePopup()
55 {
56 if (!this.PopupDisplayed || this.PickingInterceptor != null)
57 {
58 }
59 }
60
61 // Token: 0x06000A21 RID: 2593 RVA: 0x0003035C File Offset: 0x0002E55C
63 {
64 /*
65An exception occurred when decompiling this method (06000A21)
66
67ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean GUIReforgePopup::IsOver(Microsoft.Xna.Framework.Vector2)
68
69 ---> System.Exception: Basic block has to end with unconditional control flow.
70{
71 IL_003F:
72 call:void(ControlAnchor::SetGridItemRegion, ldloc:Rectangle(var_8))
73}
74
75 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
76 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
77 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
78 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
79 --- End of inner exception stack trace ---
80 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
81 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
82*/;
83 }
84
85 // Token: 0x06000A22 RID: 2594 RVA: 0x000303B0 File Offset: 0x0002E5B0
86 private void UpdateText()
87 {
89 int num = this.numLines;
93 }
94
95 // Token: 0x06000A23 RID: 2595 RVA: 0x00030408 File Offset: 0x0002E608
102
103 // Token: 0x06000A24 RID: 2596 RVA: 0x00030424 File Offset: 0x0002E624
105 {
106 this.SetupBackingSize();
108 return rectangle;
109 }
110
111 // Token: 0x06000A25 RID: 2597 RVA: 0x00030438 File Offset: 0x0002E638
112 private void DrawItem()
113 {
114 }
115
116 // Token: 0x06000A26 RID: 2598 RVA: 0x000304F0 File Offset: 0x0002E6F0
117 private void UpdatePrefixes(Item reforgeItem)
118 {
119 int num = this.numLines;
120 bool[] array = this.badPreFixLine;
121 if (reforgeItem.prefix != 0)
122 {
124 if (item != null)
125 {
126 int netID = item.netID;
127 int netID2 = reforgeItem.netID;
128 }
129 int netID3 = reforgeItem.netID;
130 int damage = reforgeItem.damage;
131 if (16473 == 0)
132 {
133 }
134 return;
135 }
136 }
137
138 // Token: 0x06000A27 RID: 2599 RVA: 0x000308E4 File Offset: 0x0002EAE4
139 public void DrawPrefixes()
140 {
141 int num = this.numLines;
142 int num2 = 17136;
143 bool[] array = this.badPreFixLine;
144 if (array != null)
145 {
146 return;
147 }
148 if (array == null)
149 {
150 }
151 string[] array2 = this.toolTipLine;
152 if (num2 == 0)
153 {
154 }
155 if (!true)
156 {
157 }
159 int <LineSpacing>k__BackingField = spriteFont.<LineSpacing>k__BackingField;
160 }
161
162 // Token: 0x06000A28 RID: 2600 RVA: 0x00030980 File Offset: 0x0002EB80
163 public void Draw()
164 {
165 if (!true)
166 {
167 }
168 if (!true)
169 {
170 }
172 if (this.PickingInterceptor != null)
173 {
174 }
176 this._controller.Activate();
177 Item item;
178 this.UpdatePrefixes(item);
179 this.UpdateText();
180 this.SetupBackingSize();
183 float y = this.CachedTextSize.Y;
184 this.DrawPrefixes();
185 int openedFrame = this.OpenedFrame;
186 }
187
188 // Token: 0x06000A29 RID: 2601 RVA: 0x00030B0C File Offset: 0x0002ED0C
190 {
191 }
192
193 // Token: 0x06000A2A RID: 2602 RVA: 0x00030B20 File Offset: 0x0002ED20
194 // Note: this type is marked as 'beforefieldinit'.
196 {
197 }
198
199 // Token: 0x040009F9 RID: 2553
200 private static int reforgeItemNamePos;
201
202 // Token: 0x040009FA RID: 2554
203 private static int reforgeTextPos;
204
205 // Token: 0x040009FB RID: 2555
206 private static int reforgeTextBackingSize;
207
208 // Token: 0x040009FC RID: 2556
209 private static int defaultBackingWidth;
210
211 // Token: 0x040009FD RID: 2557
212 private int OpenedFrame;
213
214 // Token: 0x040009FE RID: 2558
215 public bool PopupDisplayed;
216
217 // Token: 0x040009FF RID: 2559
219
220 // Token: 0x04000A00 RID: 2560
221 private float CachedLayoutSize;
222
223 // Token: 0x04000A01 RID: 2561
224 private float CachedLayoutWrapSize;
225
226 // Token: 0x04000A02 RID: 2562
228
229 // Token: 0x04000A03 RID: 2563
231
232 // Token: 0x04000A04 RID: 2564
233 private int CachedTextLines;
234
235 // Token: 0x04000A05 RID: 2565
237
238 // Token: 0x04000A06 RID: 2566
239 private int numLines;
240
241 // Token: 0x04000A07 RID: 2567
242 private string[] toolTipLine;
243
244 // Token: 0x04000A08 RID: 2568
245 private bool[] badPreFixLine;
246
247 // Token: 0x04000A09 RID: 2569
249}
class f__AnonymousType0<< Count > j__TPar
static void SetGridItemRegion(Rectangle region)
bool IsOver(Vector2 cursorPosition)
GUIControllerReforgePopup _controller
static int reforgeTextPos
void UpdatePrefixes(Item reforgeItem)
Rectangle GetRegion()
static int reforgeItemNamePos
static int reforgeTextBackingSize
GUIInputRegionExclusive PickingInterceptor
static int defaultBackingWidth
byte prefix
Definition Item.cs:2397
static void FlushBatches()
Definition Main.cs:5092