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
GUIHatRack.cs
Go to the documentation of this file.
1using System;
3using Terraria;
6using Terraria.UI;
7
8// Token: 0x02000144 RID: 324
9public class GUIHatRack
10{
11 // Token: 0x060008C1 RID: 2241 RVA: 0x00024C44 File Offset: 0x00022E44
12 public void LoadPageRegion()
13 {
15 if (!true)
16 {
17 }
19 if (!true)
20 {
21 }
24 }
25
26 // Token: 0x060008C2 RID: 2242 RVA: 0x00024C6C File Offset: 0x00022E6C
27 public float HatScale(int index)
28 {
29 /*
30An exception occurred when decompiling this method (060008C2)
31
32ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single GUIHatRack::HatScale(System.Int32)
33
34 ---> System.Exception: Basic block has to end with unconditional control flow.
35{
36 Block_0:
37 stloc:!0(var_0_05, callgetter:!0(PageControllerLayoutDefinition`1::get_Instance))
38}
39
40 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
41 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
42 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
43 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
44 --- End of inner exception stack trace ---
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 92
46 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
47*/;
48 }
49
50 // Token: 0x060008C3 RID: 2243 RVA: 0x00024C80 File Offset: 0x00022E80
51 public float HatDyeScale(int index)
52 {
53 /*
54An exception occurred when decompiling this method (060008C3)
55
56ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single GUIHatRack::HatDyeScale(System.Int32)
57
58 ---> System.Exception: Basic block has to end with unconditional control flow.
59{
60 Block_0:
61 stloc:!0(var_0_05, callgetter:!0(PageControllerLayoutDefinition`1::get_Instance))
62}
63
64 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
65 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
66 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
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 88
68 --- End of inner exception stack trace ---
69 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
70 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
71*/;
72 }
73
74 // Token: 0x060008C4 RID: 2244 RVA: 0x00024C94 File Offset: 0x00022E94
86
87 // Token: 0x060008C5 RID: 2245 RVA: 0x00024DA8 File Offset: 0x00022FA8
88 public void HatOver(int index)
89 {
90 Item[] items = this.HatRack._items;
91 }
92
93 // Token: 0x060008C6 RID: 2246 RVA: 0x00024DC4 File Offset: 0x00022FC4
94 public void HatDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
95 {
96 int num = this.cursorOver;
97 if (!true)
98 {
99 }
100 if (this.itemOver == 0)
101 {
102 }
104 ItemSlot.SetSelectHighlight(true, scale);
105 }
106
107 // Token: 0x060008C7 RID: 2247 RVA: 0x00024EA8 File Offset: 0x000230A8
108 public void HatDyeOver(int index)
109 {
110 Item[] dyes = this.HatRack._dyes;
111 }
112
113 // Token: 0x060008C8 RID: 2248 RVA: 0x00024EC4 File Offset: 0x000230C4
114 public void HatDyeDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
115 {
116 int num = this.cursorOver;
117 if (!true)
118 {
119 }
120 if (this.itemOver == 0)
121 {
122 }
124 ItemSlot.SetSelectHighlight(true, scale);
125 }
126
127 // Token: 0x060008C9 RID: 2249 RVA: 0x00024FA0 File Offset: 0x000231A0
129 {
130 /*
131An exception occurred when decompiling this method (060008C9)
132
133ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 GUIHatRack::CanBeEquipedAccessory(Terraria.Item)
134
135 ---> System.Exception: Basic block has to end with unconditional control flow.
136{
137 IL_0003:
138 stloc:int32(var_1_0A, callgetter:int32(Main::get_myPlayer))
139 stloc:int32(var_3_12, callgetter:int32(Main::get_myPlayer))
140 stloc:int32(var_5_1B, callgetter:int32(Main::get_myPlayer))
141}
142
143 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
144 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
145 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
146 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
147 --- End of inner exception stack trace ---
148 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
149 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
150*/;
151 }
152
153 // Token: 0x060008CA RID: 2250 RVA: 0x00024FD4 File Offset: 0x000231D4
155 {
156 /*
157An exception occurred when decompiling this method (060008CA)
158
159ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean GUIHatRack::CanBeEquiped(Terraria.Item)
160
161 ---> System.Exception: Basic block has to end with unconditional control flow.
162{
163 Block_0:
164 stloc:int32(var_0_06, ldfld:int32(Item::headSlot, ldloc:Item(checkItem)))
165}
166
167 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
168 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
169 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
170 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
171 --- End of inner exception stack trace ---
172 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
173 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
174*/;
175 }
176
177 // Token: 0x060008CB RID: 2251 RVA: 0x00024FE8 File Offset: 0x000231E8
179 {
180 int headSlot = checkItem.headSlot;
181 return true;
182 }
183
184 // Token: 0x060008CC RID: 2252 RVA: 0x00025008 File Offset: 0x00023208
185 private bool CanBeStored(int context, Item checkItem, int slot)
186 {
187 /*
188An exception occurred when decompiling this method (060008CC)
189
190ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean GUIHatRack::CanBeStored(System.Int32,Terraria.Item,System.Int32)
191
192 ---> System.Exception: Basic block has to end with unconditional control flow.
193{
194 Block_0:
195 stloc:int32(var_0_06, ldfld:int32(Item::headSlot, ldloc:Item(checkItem)))
196 stloc:int32(var_1_0D, ldfld:int32(Item::stack, ldloc:Item(checkItem)))
197 stloc:uint8(var_2_14, ldfld:uint8(Item::dye, ldloc:Item(checkItem)))
198}
199
200 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
201 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
202 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
203 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
204 --- End of inner exception stack trace ---
205 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
206 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
207*/;
208 }
209
210 // Token: 0x060008CD RID: 2253 RVA: 0x0002502C File Offset: 0x0002322C
211 private void DrawHats()
212 {
214 if (!true)
215 {
216 }
217 int num = this.itemDragStartHat;
218 if (num == 0)
219 {
220 }
221 bool mouseLeft = Main.mouseLeft;
222 if (num == 0)
223 {
224 }
225 if (Main.mouseItem != null)
226 {
227 if (num == 0)
228 {
229 }
230 int type = Main.mouseItem.type;
231 if (type != 0)
232 {
235 int num2 = this.itemDragStartHatDye;
236 if (num2 == 0)
237 {
238 }
240 if (num2 == 0)
241 {
242 }
243 if (Main.mouseItem != null)
244 {
245 if (num2 == 0)
246 {
247 }
248 int type2 = Main.mouseItem.type;
249 if (type2 != 0)
250 {
252 return;
253 }
254 }
255 int num3 = this.itemDragStartHatDye;
256 int num4 = this.itemOver;
257 ItemSlot.LeftClick(this.HatRack._dyes, 27, num3);
258 return;
259 }
260 }
261 int num5 = this.itemDragStartHat;
262 int num6 = this.itemOver;
263 ItemSlot.LeftClick(this.HatRack._items, 26, num5);
264 }
265
266 // Token: 0x060008CE RID: 2254 RVA: 0x00025114 File Offset: 0x00023314
268 {
269 /*
270An exception occurred when decompiling this method (060008CE)
271
272ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.Item GUIHatRack::GetSelectedItem()
273
274 ---> System.Exception: Basic block has to end with unconditional control flow.
275{
276 Block_0:
277 stloc:EquipmentItemType(var_0_06, ldfld:EquipmentItemType(GUIHatRack::itemType, ldloc:GUIHatRack(this)))
278 stloc:float32(var_1_0D, ldfld:float32(GUIHatRack::UnequipButtonScale, ldloc:GUIHatRack(this)))
279 stloc:TEHatRack(var_2_14, ldfld:TEHatRack(GUIHatRack::HatRack, ldloc:GUIHatRack(this)))
280}
281
282 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
283 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
284 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
285 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
286 --- End of inner exception stack trace ---
287 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
288 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
289*/;
290 }
291
292 // Token: 0x060008CF RID: 2255 RVA: 0x00025138 File Offset: 0x00023338
293 public void DrawUnequipButton()
294 {
295 if (!true)
296 {
297 }
298 int myPlayer = Main.myPlayer;
300 if (tileEntity != null)
301 {
302 }
303 }
304
305 // Token: 0x170000DD RID: 221
306 // (get) Token: 0x060008D0 RID: 2256 RVA: 0x000252B8 File Offset: 0x000234B8
307 public bool HasFocus
308 {
309 get
310 {
312 return true;
313 }
314 }
315
316 // Token: 0x060008D1 RID: 2257 RVA: 0x000252D0 File Offset: 0x000234D0
317 public void Draw()
318 {
319 int num = 1;
320 if (num == 0)
321 {
322 }
323 if (num == 0)
324 {
325 }
326 int num2 = 255;
328 if (num2 == 0)
329 {
330 }
331 if (num2 == 0)
332 {
333 }
334 int myPlayer = Main.myPlayer;
336 if (tileEntity != null)
337 {
338 }
339 long num3 = 0L;
341 }
342
343 // Token: 0x060008D2 RID: 2258 RVA: 0x00025320 File Offset: 0x00023520
344 public GUIHatRack()
345 {
346 }
347
348 // Token: 0x04000790 RID: 1936
349 private int cursorOver;
350
351 // Token: 0x04000791 RID: 1937
352 private int itemOver;
353
354 // Token: 0x04000792 RID: 1938
355 private int itemDragStartHat;
356
357 // Token: 0x04000793 RID: 1939
359
360 // Token: 0x04000794 RID: 1940
362
363 // Token: 0x04000795 RID: 1941
364 private int itemPieceSelected;
365
366 // Token: 0x04000796 RID: 1942
367 private float UnequipButtonScale = (float)16256;
368
369 // Token: 0x04000797 RID: 1943
371
372 // Token: 0x02000145 RID: 325
373 private enum EquipmentItemType
374 {
375 // Token: 0x04000799 RID: 1945
376 Hat,
377 // Token: 0x0400079A RID: 1946
378 HatDye
379 }
380}
class f__AnonymousType0<< Count > j__TPar
static DrPlatform.DrPlatformType CurrentPlatform
Definition DrPlatform.cs:26
bool HasFocus
int itemDragStartHatDye
void HatOver(int index)
Definition GUIHatRack.cs:88
float HatDyeScale(int index)
Definition GUIHatRack.cs:51
void LoadPageRegion()
Definition GUIHatRack.cs:12
bool CanBeEquiped(Item checkItem)
void HatDyeDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
bool CanBeStored(int context, Item checkItem, int slot)
void HatDyeOver(int index)
float HatScale(int index)
Definition GUIHatRack.cs:27
void HatDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
Definition GUIHatRack.cs:94
int itemDragStartHat
void DrawUnequipButton()
bool CanBeStored(Item checkItem)
int itemPieceSelected
int CanBeEquipedAccessory(Item checkItem)
Item GetSelectedItem()
TEHatRack HatRack
void ItemOver(Item[] inv, int index, GUIHatRack.EquipmentItemType equipmentType, int itemContext, int itemDragStart)
Definition GUIHatRack.cs:75
float UnequipButtonScale
void DrawHats()
void Draw()
GUIHatRack.EquipmentItemType itemType
static int myPlayer
Definition Main.cs:2337
static Item mouseItem
Definition Main.cs:2155
static bool mouseLeft
Definition Main.cs:671
static void FindRecipes(bool canDelayCheck=false)
Definition Recipe.cs:204
static void SetSelectHighlight(bool hasFocus, float highlightScale=-1f)
Definition ItemSlot.cs:702
static void LeftClick(Item inv, int context=0)
Definition ItemSlot.cs:265