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
ItemSlot.cs
Go to the documentation of this file.
1using System;
10using UnityEngine;
11
12namespace Terraria.UI
13{
14 // Token: 0x020006D2 RID: 1746
15 public class ItemSlot
16 {
17 // Token: 0x06003A7E RID: 14974 RVA: 0x0023068C File Offset: 0x0022E88C
18 static ItemSlot()
19 {
20 }
21
22 // Token: 0x1700074F RID: 1871
23 // (get) Token: 0x06003A7F RID: 14975 RVA: 0x002307AC File Offset: 0x0022E9AC
24 public static bool AltInUse
25 {
26 get
27 {
28 global::Cursor cursor;
29 if (cursor != null)
30 {
31 bool key = KeyboardInput.GetKey(KeyCode.LeftAlt);
32 return true;
33 }
34 return KeyboardInput.GetKey(KeyCode.RightAlt);
35 }
36 }
37
38 // Token: 0x17000750 RID: 1872
39 // (get) Token: 0x06003A80 RID: 14976 RVA: 0x002307D8 File Offset: 0x0022E9D8
40 public static bool ShiftInUse
41 {
42 get
43 {
44 global::Cursor cursor;
45 if (cursor != null)
46 {
47 bool key = KeyboardInput.GetKey(KeyCode.LeftShift);
48 return true;
49 }
50 return KeyboardInput.GetKey(KeyCode.RightShift);
51 }
52 }
53
54 // Token: 0x17000751 RID: 1873
55 // (get) Token: 0x06003A81 RID: 14977 RVA: 0x00230804 File Offset: 0x0022EA04
56 public static bool ControlInUse
57 {
58 get
59 {
60 global::Cursor cursor;
61 if (cursor != null)
62 {
63 bool key = KeyboardInput.GetKey(KeyCode.LeftControl);
64 return true;
65 }
66 return KeyboardInput.GetKey(KeyCode.RightControl);
67 }
68 }
69
70 // Token: 0x17000752 RID: 1874
71 // (get) Token: 0x06003A82 RID: 14978 RVA: 0x00230830 File Offset: 0x0022EA30
72 public static bool NotUsingGamepad
73 {
74 get
75 {
76 if (!true)
77 {
78 }
80 }
81 }
82
83 // Token: 0x14000046 RID: 70
84 // (add) Token: 0x06003A83 RID: 14979 RVA: 0x00230848 File Offset: 0x0022EA48
85 // (remove) Token: 0x06003A84 RID: 14980 RVA: 0x00230864 File Offset: 0x0022EA64
87 {
89 add
90 {
91 if (!true)
92 {
93 }
95 if (@delegate != null)
96 {
97 }
98 }
100 remove
101 {
102 if (!true)
103 {
104 }
106 if (@delegate != null)
107 {
108 }
109 }
110 }
111
112 // Token: 0x06003A85 RID: 14981 RVA: 0x00230880 File Offset: 0x0022EA80
114 {
115 if (!true)
116 {
117 }
118 if (true)
119 {
120 return;
121 }
122 }
123
124 // Token: 0x06003A86 RID: 14982 RVA: 0x00230894 File Offset: 0x0022EA94
125 public static void SetGlow(int index, float hue, bool chest)
126 {
127 if (!true)
128 {
129 }
130 }
131
132 // Token: 0x06003A87 RID: 14983 RVA: 0x002308AC File Offset: 0x0022EAAC
133 public static void UpdateInterface()
134 {
135 int num = 1;
136 if (num == 0)
137 {
138 }
139 bool playerInventory = Main.playerInventory;
140 if (num == 0)
141 {
142 }
143 int myPlayer = Main.myPlayer;
144 }
145
146 // Token: 0x06003A88 RID: 14984 RVA: 0x002308F4 File Offset: 0x0022EAF4
147 public static void Handle(Item inv, int context = 0)
148 {
149 if (!true)
150 {
151 }
152 Recipe.FindRecipes(false);
153 }
154
155 // Token: 0x06003A89 RID: 14985 RVA: 0x00230910 File Offset: 0x0022EB10
156 public static void Handle(Item[] inv, int context = 0, int slot = 0)
157 {
158 if (!true)
159 {
160 }
161 ItemSlot.OverrideHover(inv, context, slot);
162 ItemSlot.LeftClick(inv, context, slot);
163 bool flag = ItemSlot.RightClick(inv, context, slot);
164 if (!true)
165 {
166 }
167 bool mouseLeftRelease = Main.mouseLeftRelease;
168 if (!true)
169 {
170 }
171 bool mouseLeft = Main.mouseLeft;
172 Recipe.FindRecipes(false);
173 ItemSlot.MouseHover(inv, context, slot);
174 }
175
176 // Token: 0x06003A8A RID: 14986 RVA: 0x00230960 File Offset: 0x0022EB60
177 public static void OverrideHover(Item inv, int context = 0)
178 {
179 if (!true)
180 {
181 }
182 }
183
184 // Token: 0x06003A8B RID: 14987 RVA: 0x00230978 File Offset: 0x0022EB78
185 public static bool isEquipLocked(int type)
186 {
187 }
188
189 // Token: 0x06003A8C RID: 14988 RVA: 0x00230988 File Offset: 0x0022EB88
190 public static void OverrideHover(Item[] inv, int context = 0, int slot = 0)
191 {
192 int num = 1;
193 if (num == 0)
194 {
195 }
198 if (num == 0)
199 {
200 }
203 if (num == 0)
204 {
205 }
207 if (num == 0)
208 {
209 }
211 if (num == 0)
212 {
213 }
215 }
216
217 // Token: 0x06003A8D RID: 14989 RVA: 0x00230B28 File Offset: 0x0022ED28
218 private static bool OverrideLeftClick(Item[] inv, int context = 0, int slot = 0)
219 {
220 int num = 1;
221 if (num == 0)
222 {
223 }
224 if (num == 0)
225 {
226 }
228 if (num == 0)
229 {
230 }
232 int cursorOverride = Main.cursorOverride;
233 if (!true)
234 {
235 }
236 bool flag;
237 return flag;
238 }
239
240 // Token: 0x06003A8E RID: 14990 RVA: 0x00230C70 File Offset: 0x0022EE70
241 public static bool IsMouseItem(Item[] slots, int index)
242 {
243 /*
244An exception occurred when decompiling this method (06003A8E)
245
246ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.UI.ItemSlot::IsMouseItem(Terraria.Item[],System.Int32)
247
248 ---> System.Exception: Basic block has to end with unconditional control flow.
249{
250 IL_003B:
251 stloc:int32(var_8_43, callgetter:int32(Main::get_mouseItemSourceIndex))
252}
253
254 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
255 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
256 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
257 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
258 --- End of inner exception stack trace ---
259 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
260 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
261*/;
262 }
263
264 // Token: 0x06003A8F RID: 14991 RVA: 0x00230CC4 File Offset: 0x0022EEC4
265 public static void LeftClick(Item inv, int context = 0)
266 {
267 if (!true)
268 {
269 }
270 }
271
272 // Token: 0x06003A90 RID: 14992 RVA: 0x00230CDC File Offset: 0x0022EEDC
273 public static void LeftClick(Item[] inv, int context = 0, int slot = 0)
274 {
275 if (!true)
276 {
277 }
278 int myPlayer = Main.myPlayer;
279 bool flag = ItemSlot.OverrideLeftClick(inv, context, slot);
280 bool flag2 = ItemSlot.LeftClick_SellOrTrash(inv, context, slot);
281 Item mouseItem = Main.mouseItem;
282 }
283
284 // Token: 0x06003A91 RID: 14993 RVA: 0x002316C4 File Offset: 0x0022F8C4
285 private static bool DisableTrashing()
286 {
288 if (!true)
289 {
290 }
291 if (!true)
292 {
293 return;
294 }
295 }
296
297 // Token: 0x06003A92 RID: 14994 RVA: 0x002316E0 File Offset: 0x0022F8E0
298 private static bool LeftClick_SellOrTrash(Item[] inv, int context, int slot)
299 {
300 if (!true)
301 {
302 }
306 return ItemSlot.ControlInUse;
307 }
308
309 // Token: 0x06003A93 RID: 14995 RVA: 0x00231744 File Offset: 0x0022F944
310 private static void SellOrTrash(Item[] inv, int context, int slot)
311 {
312 int num = 1;
313 if (num == 0)
314 {
315 }
316 int myPlayer = Main.myPlayer;
317 if (num == 0)
318 {
319 }
320 int npcShop = Main.npcShop;
321 if (num == 0)
322 {
323 if (num == 0)
324 {
325 }
326 int npcShop2 = Main.npcShop;
327 if (num == 0)
328 {
329 }
330 return;
331 }
332 }
333
334 // Token: 0x06003A94 RID: 14996 RVA: 0x002317B4 File Offset: 0x0022F9B4
335 private static string GetOverrideInstructions(Item[] inv, int context, int slot)
336 {
337 int whoAmI;
338 do
339 {
340 if (!true)
341 {
342 }
343 int myPlayer = Main.myPlayer;
345 if (tileEntity != null)
346 {
347 }
348 int npcShop = Main.npcShop;
349 int npcShop2 = Main.npcShop;
350 if (inv == null)
351 {
352 }
353 int myPlayer2 = Main.myPlayer;
354 Microsoft.Xna.Framework.Vector2 position = inv.position;
357 if (inv == null)
358 {
359 }
360 whoAmI = inv.whoAmI;
361 if (whoAmI == 0)
362 {
363 }
364 int myPlayer3 = Main.myPlayer;
367 }
368 while (whoAmI == 0);
369 return "";
370 }
371
372 // Token: 0x06003A95 RID: 14997 RVA: 0x00231858 File Offset: 0x0022FA58
373 private static void UpdateChestOnServer(int context, int slot)
374 {
375 int num = 1;
376 if (num == 0)
377 {
378 }
380 if (num == 0)
381 {
382 }
383 int myPlayer = Main.myPlayer;
384 if (num == 0)
385 {
386 }
387 int myPlayer2 = Main.myPlayer;
388 if (num == 0)
389 {
390 }
391 int myPlayer3 = Main.myPlayer;
392 }
393
394 // Token: 0x06003A96 RID: 14998 RVA: 0x0023189C File Offset: 0x0022FA9C
395 private static void PlaceItem(Item[] inv, Item item, int context = 0, int slot = -1, int keepStack = 0)
396 {
397 if (keepStack != 0)
398 {
399 return;
400 }
401 Microsoft.Xna.Framework.Vector2 position = item.position;
402 }
403
404 // Token: 0x06003A97 RID: 14999 RVA: 0x0023191C File Offset: 0x0022FB1C
405 public static int PickItemMovementAction(Item[] inv, int context, int slot, Item checkItem, bool backwardCheck = false, int initialSlot = -1)
406 {
407 for (;;)
408 {
409 if (!true)
410 {
411 }
412 int myPlayer = Main.myPlayer;
413 Item mouseItem = Main.mouseItem;
415 if (!true)
416 {
417 }
418 if (Main.mouseItem != null)
419 {
420 if (!true)
421 {
422 }
423 if (Main.mouseItem.type == 0)
424 {
425 }
426 if (Main.mouseItemSource != null)
427 {
428 break;
429 }
430 }
431 }
432 int mouseItemSourceContext = Main.mouseItemSourceContext;
434 Item[] mouseItemSource = Main.mouseItemSource;
436 int mouseItemSourceIndex = Main.mouseItemSourceIndex;
438 {
440 }
441 throw new ArrayTypeMismatchException();
442 }
443
444 // Token: 0x06003A98 RID: 15000 RVA: 0x00231A9C File Offset: 0x0022FC9C
445 public static void RightClick(Item inv, int context = 0)
446 {
447 if (!true)
448 {
449 }
450 }
451
452 // Token: 0x06003A99 RID: 15001 RVA: 0x00231AB4 File Offset: 0x0022FCB4
453 public static bool RightClick(Item[] inv, int context = 0, int slot = 0)
454 {
455 if (!true)
456 {
457 }
458 int myPlayer = Main.myPlayer;
459 if (inv == null)
460 {
461 }
462 bool mouseRight = Main.mouseRight;
463 if (inv == null)
464 {
465 }
466 bool mouseRightRelease = Main.mouseRightRelease;
467 if (inv == null)
468 {
469 }
470 bool flag;
471 return flag;
472 }
473
474 // Token: 0x06003A9A RID: 15002 RVA: 0x00231C1C File Offset: 0x0022FE1C
475 public static void TakeOne(Item[] inv, int context, int slot)
476 {
477 int num = 1;
478 if (num == 0)
479 {
480 }
481 Item mouseItem = Main.mouseItem;
482 if (num == 0)
483 {
484 }
485 int type = Main.mouseItem.type;
486 if (type == 0)
487 {
488 if (type == 0)
489 {
490 }
492 if (Main.mouseItem.maxStack == 0)
493 {
494 }
495 int type2 = Main.mouseItem.type;
496 if (type2 == 0)
497 {
498 return;
499 }
500 }
501 }
502
503 // Token: 0x06003A9B RID: 15003 RVA: 0x00231C9C File Offset: 0x0022FE9C
504 public static void PickupItemIntoMouse(Item[] inv, int context, int slot, Player player)
505 {
506 if (!true)
507 {
508 }
509 Item mouseItem = Main.mouseItem;
510 if (mouseItem.type == 0)
511 {
512 Main.mouseItem = mouseItem.Clone();
514 int type = Main.mouseItem.type;
515 mouseItem2.SetDefaults(type);
518 return;
519 }
521 int stack = mouseItem5.stack;
523 }
524
525 // Token: 0x06003A9C RID: 15004 RVA: 0x00231DC0 File Offset: 0x0022FFC0
526 public static void RefreshStackSplitCooldown()
527 {
528 if (!true)
529 {
530 }
531 int stackSplit = Main.stackSplit;
532 if (stackSplit != 0)
533 {
534 int stackDelay = Main.stackDelay;
535 return;
536 }
537 Main.stackSplit = 30;
538 }
539
540 // Token: 0x06003A9D RID: 15005 RVA: 0x00231DF0 File Offset: 0x0022FFF0
541 private static bool TryOpenContainer(Item item, Player player)
542 {
543 /*
544An exception occurred when decompiling this method (06003A9D)
545
546ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.UI.ItemSlot::TryOpenContainer(Terraria.Item,Terraria.Player)
547
548 ---> System.Exception: Basic block has to end with unconditional control flow.
549{
550 IL_000B:
551 stloc:int64(var_0_0C, ldc.i4:int64(0))
552 call:void(Item::SetDefaults, ldloc:Item(item), ldloc:int64[exp:int32](var_0_0C))
553 callsetter:int32(Main::set_stackSplit, ldc.i4:int32(30))
554 callsetter:bool(Main::set_mouseRightRelease, ldc.i4:bool(0))
555 stloc:int64(var_3_24, ldc.i4:int64(0))
556 call:void(Recipe::FindRecipes, ldloc:int64[exp:bool](var_3_24))
557}
558
559 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
560 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
561 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
562 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
563 --- End of inner exception stack trace ---
564 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
565 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
566*/;
567 }
568
569 // Token: 0x06003A9E RID: 15006 RVA: 0x00231E7C File Offset: 0x0023007C
570 private static bool SwapVanityEquip(Item[] inv, int context, int slot, Player player)
571 {
572 /*
573An exception occurred when decompiling this method (06003A9E)
574
575ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.UI.ItemSlot::SwapVanityEquip(Terraria.Item[],System.Int32,System.Int32,Terraria.Player)
576
577 ---> System.Exception: Basic block has to end with unconditional control flow.
578{
579 IL_001F:
580 brtrue(IL_001F, ldloc:class Terraria.Item[][exp:bool](inv))
581}
582
583 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
584 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
585 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
586 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
587 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
588 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
589 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
590 --- End of inner exception stack trace ---
591 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
592 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
593*/;
594 }
595
596 // Token: 0x06003A9F RID: 15007 RVA: 0x00231EAC File Offset: 0x002300AC
597 private static bool TryPickupDyeToCursor(int context, Item[] inv, int slot, Player player)
598 {
599 if (!true)
600 {
601 }
603 if (Main.mouseItem.maxStack == 0)
604 {
605 }
606 int type = Main.mouseItem.type;
607 if (type == 0)
608 {
609 }
610 bool isAir = Main.mouseItem.IsAir;
611 if (type == 0)
612 {
613 }
614 int type2 = Main.mouseItem.type;
615 bool isAir2 = Main.mouseItem.IsAir;
616 bool isAir3 = Main.mouseItem.IsAir;
617 if (type2 == 0)
618 {
619 }
620 Item item;
622 Item mouseItem = Main.mouseItem;
623 int stack2 = mouseItem.stack;
625 if (stack2 == 0)
626 {
627 }
628 bool netClient = Main.NetClient;
629 if (stack2 == 0)
630 {
631 }
632 int myPlayer = Main.myPlayer;
633 if (type2 == 0)
634 {
635 }
637 int myPlayer2 = Main.myPlayer;
638 if (type2 == 0)
639 {
640 return;
641 }
642 }
643
644 // Token: 0x06003AA0 RID: 15008 RVA: 0x00231F98 File Offset: 0x00230198
645 private static bool TryItemSwap(Item item)
646 {
647 if (5323 == 0)
648 {
649 }
651 return false;
652 }
653
654 // Token: 0x06003AA1 RID: 15009 RVA: 0x00232040 File Offset: 0x00230240
655 public static void AfterItemSwap(int oldType, int newType)
656 {
657 Main.stackSplit = 30;
659 Recipe.FindRecipes(false);
660 }
661
662 // Token: 0x06003AA2 RID: 15010 RVA: 0x00232074 File Offset: 0x00230274
663 private static void HandleShopSlot(Item[] inv, int slot, bool rightClickIsValid, bool leftClickIsValid)
664 {
665 int num = 1;
666 if (num == 0)
667 {
668 }
669 int cursorOverride = Main.cursorOverride;
670 if (num == 0)
671 {
672 }
673 int npcShop = Main.npcShop;
674 bool mouseRight = Main.mouseRight;
675 }
676
677 // Token: 0x06003AA3 RID: 15011 RVA: 0x002321D0 File Offset: 0x002303D0
678 public static void Draw(SpriteBatch spriteBatch, Item inv, int context, Microsoft.Xna.Framework.Vector2 position)
679 {
680 if (!true)
681 {
682 }
683 }
684
685 // Token: 0x06003AA4 RID: 15012 RVA: 0x002321E0 File Offset: 0x002303E0
686 public static void Draw(SpriteBatch spriteBatch, Item inv, int context, Microsoft.Xna.Framework.Vector2 position, Microsoft.Xna.Framework.Graphics.Color lightColor)
687 {
688 if (!true)
689 {
690 }
691 }
692
693 // Token: 0x06003AA5 RID: 15013 RVA: 0x002321F8 File Offset: 0x002303F8
694 public static void SetCursorHighlight(bool hasFocus)
695 {
696 if (!true)
697 {
698 }
699 }
700
701 // Token: 0x06003AA6 RID: 15014 RVA: 0x00232208 File Offset: 0x00230408
702 public static void SetSelectHighlight(bool hasFocus, float highlightScale = -1f)
703 {
704 if (!true)
705 {
706 }
707 }
708
709 // Token: 0x06003AA7 RID: 15015 RVA: 0x00232218 File Offset: 0x00230418
710 public static void SetOverridenScale(float highlightScale)
711 {
712 if (!true)
713 {
714 }
715 }
716
717 // Token: 0x06003AA8 RID: 15016 RVA: 0x00232228 File Offset: 0x00230428
718 public static void Draw(SpriteBatch spriteBatch, Item[] inv, int context, int slot, Microsoft.Xna.Framework.Vector2 position)
719 {
720 if (!true)
721 {
722 }
723 }
724
725 // Token: 0x06003AA9 RID: 15017 RVA: 0x00232238 File Offset: 0x00230438
726 public static void Draw(SpriteBatch spriteBatch, Item[] inv, int context, int slot, Microsoft.Xna.Framework.Vector2 position, Microsoft.Xna.Framework.Graphics.Color lightColor)
727 {
728 if (!true)
729 {
730 }
731 }
732
733 // Token: 0x06003AAA RID: 15018 RVA: 0x00232248 File Offset: 0x00230448
734 public static void Draw(SpriteBatch spriteBatch, Item[] inv, int context, int slot, Microsoft.Xna.Framework.Vector2 position, Microsoft.Xna.Framework.Graphics.Color lightColor, Microsoft.Xna.Framework.Graphics.Color backColor)
735 {
736 int num = 1;
737 if (num == 0)
738 {
739 }
740 int myPlayer = Main.myPlayer;
741 float inventoryScale = Main.inventoryScale;
742 if (num == 0)
743 {
744 }
747 int num2;
748 if (context != 0)
749 {
750 if (context == 0)
751 {
752 }
753 if (17279 == 0)
754 {
755 }
756 num2 = 2000;
757 if (num2 == 0)
758 {
759 }
760 return;
761 }
762 if (context == 0)
763 {
764 if (num2 == 0)
765 {
766 }
767 if (num2 == 0)
768 {
769 }
770 return;
771 }
772 }
773
774 // Token: 0x06003AAB RID: 15019 RVA: 0x002326B0 File Offset: 0x002308B0
776 {
777 int num = 1;
778 if (num == 0)
779 {
780 }
781 if (num == 0)
782 {
783 }
786 if (localPlayer == null)
787 {
788 }
789 if (localPlayer == null)
790 {
791 return;
792 }
793 }
794
795 // Token: 0x06003AAC RID: 15020 RVA: 0x002326E0 File Offset: 0x002308E0
797 {
798 /*
799An exception occurred when decompiling this method (06003AAC)
800
801ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Graphics.Color Terraria.UI.ItemSlot::GetHighlightColorByLoadout(System.Int32,System.Int32)
802
803 ---> System.Exception: Basic block has to end with unconditional control flow.
804{
805 IL_0003:
806 stloc:int32(var_1_0F, ldfld:int32(Player::CurrentLoadoutIndex, callgetter:Player(Main::get_LocalPlayer)))
807}
808
809 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
810 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
811 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
812 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
813 --- End of inner exception stack trace ---
814 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
815 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
816*/;
817 }
818
819 // Token: 0x06003AAD RID: 15021 RVA: 0x002326FC File Offset: 0x002308FC
820 public static void RecordLoadoutChange()
821 {
822 if (!true)
823 {
824 }
825 }
826
827 // Token: 0x06003AAE RID: 15022 RVA: 0x0023270C File Offset: 0x0023090C
828 public static bool TryGetSlotColor(int loadoutIndex, int context, [Out] Microsoft.Xna.Framework.Graphics.Color color)
829 {
830 /*
831An exception occurred when decompiling this method (06003AAE)
832
833ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.UI.ItemSlot::TryGetSlotColor(System.Int32,System.Int32,Microsoft.Xna.Framework.Graphics.Color)
834
835 ---> System.Exception: Basic block has to end with unconditional control flow.
836{
837 Block_0:
838 stloc:int32(var_0_01, ldc.i4:int32(1))
839 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](context), ldloc:int32(var_0_01))
840}
841
842 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
843 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
844 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
845 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
846 --- End of inner exception stack trace ---
847 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
848 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
849*/;
850 }
851
852 // Token: 0x06003AAF RID: 15023 RVA: 0x00232728 File Offset: 0x00230928
853 public static bool TryGetHighlightedSlotColor(int loadoutIndex, int context, [Out] Microsoft.Xna.Framework.Graphics.Color color)
854 {
855 /*
856An exception occurred when decompiling this method (06003AAF)
857
858ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.UI.ItemSlot::TryGetHighlightedSlotColor(System.Int32,System.Int32,Microsoft.Xna.Framework.Graphics.Color)
859
860 ---> System.Exception: Basic block has to end with unconditional control flow.
861{
862 Block_0:
863 stloc:int32(var_0_01, ldc.i4:int32(1))
864 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](context), ldloc:int32(var_0_01))
865}
866
867 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
868 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
869 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
870 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
871 --- End of inner exception stack trace ---
872 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
873 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
874*/;
875 }
876
877 // Token: 0x06003AB0 RID: 15024 RVA: 0x000021DB File Offset: 0x000003DB
878 public static float ShiftHueByLoadout(float hue, int loadoutIndex)
879 {
880 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
881 }
882
883 // Token: 0x06003AB1 RID: 15025 RVA: 0x00232744 File Offset: 0x00230944
885 {
886 /*
887An exception occurred when decompiling this method (06003AB1)
888
889ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Graphics.Color Terraria.UI.ItemSlot::GetLoadoutColor(System.Int32)
890
891 ---> System.Exception: Basic block has to end with unconditional control flow.
892{
893 IL_0000:
894 brtrue(IL_0000, ldc.i4:bool(1))
895}
896
897 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
898 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
899 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
900 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
901 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
902 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
903 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
904 --- End of inner exception stack trace ---
905 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
906 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
907*/;
908 }
909
910 // Token: 0x06003AB2 RID: 15026 RVA: 0x00232754 File Offset: 0x00230954
912 {
913 /*
914An exception occurred when decompiling this method (06003AB2)
915
916ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Terraria.UI.ItemSlot::DrawItemIcon(Terraria.Item,System.Int32,Microsoft.Xna.Framework.Graphics.SpriteBatch,Microsoft.Xna.Framework.Vector2,System.Single,System.Single,Microsoft.Xna.Framework.Graphics.Color)
917
918 ---> System.Exception: Basic block has to end with unconditional control flow.
919{
920 IL_0032:
921 brtrue(IL_0000, ldloc:int32[exp:bool](var_8_1D))
922}
923
924 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
925 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
926 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
927 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
928 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
929 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
930 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
931 --- End of inner exception stack trace ---
932 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
933 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
934*/;
935 }
936
937 // Token: 0x06003AB3 RID: 15027 RVA: 0x00232798 File Offset: 0x00230998
939 {
940 if (16256 == 0)
941 {
942 }
943 int width = frame.Width;
944 }
945
946 // Token: 0x06003AB4 RID: 15028 RVA: 0x002327B8 File Offset: 0x002309B8
947 public static void MouseHover(int context = 0)
948 {
949 if (!true)
950 {
951 }
952 }
953
954 // Token: 0x06003AB5 RID: 15029 RVA: 0x002327D0 File Offset: 0x002309D0
955 public static void MouseHover(Item inv, int context = 0)
956 {
957 if (!true)
958 {
959 }
960 }
961
962 // Token: 0x06003AB6 RID: 15030 RVA: 0x002327E8 File Offset: 0x002309E8
964 {
965 global::Cursor cursor;
966 if (cursor != null)
967 {
968 }
969 }
970
971 // Token: 0x06003AB7 RID: 15031 RVA: 0x002327F8 File Offset: 0x002309F8
972 public static void UpdateTooltipContext(int context, int slot)
973 {
974 global::Cursor cursor;
975 if (cursor != null)
976 {
977 }
978 }
979
980 // Token: 0x06003AB8 RID: 15032 RVA: 0x00232808 File Offset: 0x00230A08
981 public static void MouseHover(Item[] inv, int context = 0, int slot = 0)
982 {
983 int num = 1;
984 if (num == 0)
985 {
986 }
987 if (num == 0)
988 {
989 }
990 string text2;
991 string text3;
992 string text = text2 + " (" + text3 + ")";
993 Item item;
994 item.tooltipContext = context;
995 int num2 = 1;
996 item.wornArmor = num2 != 0;
997 }
998
999 // Token: 0x06003AB9 RID: 15033 RVA: 0x00232898 File Offset: 0x00230A98
1000 public static void SwapEquip(Item inv, int context = 0)
1001 {
1002 if (!true)
1003 {
1004 }
1005 }
1006
1007 // Token: 0x06003ABA RID: 15034 RVA: 0x002328B0 File Offset: 0x00230AB0
1008 public static bool SwapEquip(Item[] inv, int context, int slot)
1009 {
1010 int myPlayer;
1011 Item item2;
1012 int mountType3;
1013 int buffType2;
1014 for (;;)
1015 {
1016 if (!true)
1017 {
1018 }
1019 myPlayer = Main.myPlayer;
1020 if (myPlayer != 0)
1021 {
1022 if (myPlayer == 0)
1023 {
1024 }
1025 Item item;
1026 if (item != null && item == null)
1027 {
1028 goto IL_00F5;
1029 }
1030 if (myPlayer == 0)
1031 {
1032 goto IL_00DE;
1033 }
1034 if (myPlayer == 0)
1035 {
1036 }
1037 }
1038 if (myPlayer == 0)
1039 {
1040 }
1041 if (myPlayer != 0)
1042 {
1043 break;
1044 }
1045 int mountType = item2.mountType;
1046 int num;
1047 if (num == 0)
1048 {
1049 int mountType2 = item2.mountType;
1050 }
1051 if (num == 0)
1052 {
1053 goto IL_00A3;
1054 }
1055 if (num == 0)
1056 {
1057 mountType3 = item2.mountType;
1058 }
1059 if (mountType3 != 0)
1060 {
1061 goto Block_9;
1062 }
1063 int buffType = item2.buffType;
1064 if (num == 0)
1065 {
1066 buffType2 = item2.buffType;
1067 }
1068 if (num != 0)
1069 {
1070 goto Block_11;
1071 }
1072 }
1073 if (myPlayer == 0)
1074 {
1075 }
1076 if (item2 != null && item2 == null)
1077 {
1078 goto IL_00F5;
1079 }
1080 if (myPlayer != 0)
1081 {
1082 if (myPlayer == 0)
1083 {
1084 }
1085 int num = 2;
1086 return false;
1087 }
1088 goto IL_00DE;
1089 Block_9:
1090 if (mountType3 == 0)
1091 {
1092 }
1093 return false;
1094 Block_11:
1095 if (buffType2 == 0)
1096 {
1097 }
1098 Item item3;
1099 if (item3 != null && item3 == null)
1100 {
1101 goto IL_00F5;
1102 }
1103 IL_00A3:
1104 Item item4;
1105 if (item4 != null && item4 == null)
1106 {
1107 goto IL_00F5;
1108 }
1109 int buffType3;
1110 if (2 == 0)
1111 {
1113 }
1114 if (buffType3 == 0 || buffType3 == 0)
1115 {
1116 }
1117 if (buffType3 == 0)
1118 {
1119 }
1120 Item item5 = ItemSlot.ArmorSwap(item4, false);
1121 if (item5 != null && item5 == null)
1122 {
1123 goto IL_00F5;
1124 }
1125 bool accessory = item4.accessory;
1126 IL_00DE:
1127 Recipe.FindRecipes(false);
1128 bool netClient = Main.NetClient;
1129 IL_00F5:
1130 throw new ArrayTypeMismatchException();
1131 }
1132
1133 // Token: 0x06003ABB RID: 15035 RVA: 0x002329B8 File Offset: 0x00230BB8
1134 public static bool Equippable(Item inv, int context = 0)
1135 {
1136 if (!true)
1137 {
1138 }
1139 bool flag;
1140 return flag;
1141 }
1142
1143 // Token: 0x06003ABC RID: 15036 RVA: 0x002329D0 File Offset: 0x00230BD0
1144 public static bool Equippable(Item[] inv, int context, int slot)
1145 {
1146 /*
1147An exception occurred when decompiling this method (06003ABC)
1148
1149ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.UI.ItemSlot::Equippable(Terraria.Item[],System.Int32,System.Int32)
1150
1151 ---> System.Exception: Basic block has to end with unconditional control flow.
1152{
1153 IL_0003:
1154 stloc:int32(var_1_0A, callgetter:int32(Main::get_myPlayer))
1155}
1156
1157 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
1158 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
1159 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
1160 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
1161 --- End of inner exception stack trace ---
1162 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
1163 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
1164*/;
1165 }
1166
1167 // Token: 0x06003ABD RID: 15037 RVA: 0x002329EC File Offset: 0x00230BEC
1168 public static bool IsMiscEquipment(Item item)
1169 {
1170 /*
1171An exception occurred when decompiling this method (06003ABD)
1172
1173ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.UI.ItemSlot::IsMiscEquipment(Terraria.Item)
1174
1175 ---> System.Exception: Basic block has to end with unconditional control flow.
1176{
1177 Block_0:
1178 brtrue(IL_0000, ldloc:int32[exp:bool](var_0_01))
1179}
1180
1181 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
1182 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
1183 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
1184 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
1185 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
1186 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
1187 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
1188 --- End of inner exception stack trace ---
1189 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
1190 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
1191*/;
1192 }
1193
1194 // Token: 0x06003ABE RID: 15038 RVA: 0x00232A04 File Offset: 0x00230C04
1195 public static bool AccCheck(Item[] itemCollection, Item item, int slot)
1196 {
1197 if (!true)
1198 {
1199 return;
1200 }
1201 }
1202
1203 // Token: 0x06003ABF RID: 15039 RVA: 0x00232A1C File Offset: 0x00230C1C
1204 private static Item DyeSwap(Item item, [Out] bool success)
1205 {
1206 int num = 1;
1207 if (num != 0)
1208 {
1209 if (num == 0)
1210 {
1211 }
1212 int myPlayer = Main.myPlayer;
1213 if (num == 0)
1214 {
1215 }
1216 if (num == 0)
1217 {
1218 }
1219 if (num == 0)
1220 {
1221 }
1222 int num2 = 9;
1223 if (num == 0)
1224 {
1225 }
1226 Item item2;
1227 if (item2 == null || item2 != null)
1228 {
1229 if (num2 == 0)
1230 {
1231 }
1232 Recipe.FindRecipes(false);
1233 }
1234 }
1235 throw new ArrayTypeMismatchException();
1236 }
1237
1238 // Token: 0x06003AC0 RID: 15040 RVA: 0x00232A68 File Offset: 0x00230C68
1239 private static Item ArmorSwap(Item item, [Out] bool success)
1240 {
1241 int num = 1;
1242 if (num != 0)
1243 {
1244 if (num == 0)
1245 {
1246 }
1247 int myPlayer = Main.myPlayer;
1248 int num2 = 10;
1249 Item item2;
1250 if (item2 != null && item2 == null)
1251 {
1252 goto IL_0054;
1253 }
1254 if (num2 == 0)
1255 {
1256 }
1257 Recipe.FindRecipes(false);
1258 }
1259 bool flag;
1260 while (!flag)
1261 {
1262 }
1263 if (flag)
1264 {
1265 }
1266 if (!flag)
1267 {
1268 }
1269 if (!flag)
1270 {
1271 }
1272 if (!flag)
1273 {
1274 }
1275 if (!flag)
1276 {
1277 }
1278 if (!flag)
1279 {
1280 }
1281 Item item3;
1282 if (item3 == null || item3 != null)
1283 {
1284 }
1285 IL_0054:
1286 throw new ArrayTypeMismatchException();
1287 }
1288
1289 // Token: 0x06003AC1 RID: 15041 RVA: 0x00232AD0 File Offset: 0x00230CD0
1290 private static Item EquipSwap(Item item, Item[] inv, int slot, [Out] bool success)
1291 {
1292 if (!true)
1293 {
1294 }
1295 int myPlayer = Main.myPlayer;
1296 Item item2;
1297 if (item2 == null || item2 != null)
1298 {
1299 int num = 1;
1300 Recipe.FindRecipes(false);
1301 slot.m_value = num;
1302 }
1303 throw new ArrayTypeMismatchException();
1304 }
1305
1306 // Token: 0x06003AC2 RID: 15042 RVA: 0x00232B08 File Offset: 0x00230D08
1307 public static void DrawMoney(SpriteBatch sb, string text, float shopx, float shopy, int[] coinsArray, bool horizontal = false, [Optional] SpriteBatch textSb)
1308 {
1309 int num = 1;
1310 if (num == 0)
1311 {
1312 }
1313 if (num == 0)
1314 {
1315 }
1316 if (255 == 0)
1317 {
1318 }
1319 if (!true)
1320 {
1321 }
1322 int num2 = 16968;
1323 if (!false)
1324 {
1325 }
1326 if (num2 == 0)
1327 {
1328 }
1329 int num3 = 16948;
1330 if (num3 == 0)
1331 {
1332 }
1333 if (num3 != 0)
1334 {
1335 return;
1336 }
1337 }
1338
1339 // Token: 0x06003AC3 RID: 15043 RVA: 0x00232B6C File Offset: 0x00230D6C
1340 public static void DrawCost(SpriteBatch sb, float shopx, float shopy, long cost, [Optional] SpriteBatch textSb)
1341 {
1342 int[] array = Utils.CoinsSplit(cost);
1343 }
1344
1345 // Token: 0x06003AC4 RID: 15044 RVA: 0x00232B80 File Offset: 0x00230D80
1347 {
1348 int num = 1;
1349 if (num == 0)
1350 {
1351 }
1352 int myPlayer = Main.myPlayer;
1353 if (num == 0)
1354 {
1355 }
1356 int npcShop = Main.npcShop;
1357 if (!true)
1358 {
1359 }
1361 if (-1073741824 == 0)
1362 {
1363 }
1364 int npcShop2 = Main.npcShop;
1365 }
1366
1367 // Token: 0x06003AC5 RID: 15045 RVA: 0x00232BF8 File Offset: 0x00230DF8
1368 public static void DrawSavings(SpriteBatch sb, float shopx, float shopy, bool horizontal = false, [Optional] SpriteBatch textSb)
1369 {
1370 if (!true)
1371 {
1372 }
1373 if (Main.myPlayer == 0)
1374 {
1375 }
1376 }
1377
1378 // Token: 0x06003AC6 RID: 15046 RVA: 0x00232C40 File Offset: 0x00230E40
1380 {
1381 if (16256 == 0)
1382 {
1383 }
1384 }
1385
1386 // Token: 0x06003AC7 RID: 15047 RVA: 0x00232C54 File Offset: 0x00230E54
1387 public static void GetItemLight(Microsoft.Xna.Framework.Graphics.Color currentColor, int type, bool outInTheWorld = false)
1388 {
1389 if (16256 == 0)
1390 {
1391 }
1392 }
1393
1394 // Token: 0x06003AC8 RID: 15048 RVA: 0x00232C68 File Offset: 0x00230E68
1395 public static void GetItemLight(Microsoft.Xna.Framework.Graphics.Color currentColor, float scale, Item item, bool outInTheWorld = false)
1396 {
1397 if (!true)
1398 {
1399 }
1400 }
1401
1402 // Token: 0x06003AC9 RID: 15049 RVA: 0x00232C78 File Offset: 0x00230E78
1404 {
1405 /*
1406An exception occurred when decompiling this method (06003AC9)
1407
1408ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Graphics.Color Terraria.UI.ItemSlot::GetItemLight(Microsoft.Xna.Framework.Graphics.Color,System.Single,System.Int32,System.Boolean)
1409
1410 ---> System.Exception: Basic block has to end with unconditional control flow.
1411{
1412 IL_0083:
1413 stloc:uint8(var_9_89, ldfld:uint8(Color::R, ldloc:Color[exp:valuetype Microsoft.Xna.Framework.Graphics.Color&](currentColor)))
1414 stloc:uint8(var_10_91, ldfld:uint8(Color::G, ldloc:Color[exp:valuetype Microsoft.Xna.Framework.Graphics.Color&](currentColor)))
1415 stloc:uint8(var_11_99, ldfld:uint8(Color::B, ldloc:Color[exp:valuetype Microsoft.Xna.Framework.Graphics.Color&](currentColor)))
1416 stfld:uint8(Color::R, ldloc:Color[exp:valuetype Microsoft.Xna.Framework.Graphics.Color&](currentColor), ldloc:int32[exp:uint8](var_8_7D))
1417 stfld:uint8(Color::G, ldloc:Color[exp:valuetype Microsoft.Xna.Framework.Graphics.Color&](currentColor), ldloc:int32[exp:uint8](var_7_5A))
1418 stfld:uint8(Color::B, ldloc:Color[exp:valuetype Microsoft.Xna.Framework.Graphics.Color&](currentColor), ldloc:int32[exp:uint8](var_8_7D))
1419 stfld:uint8(Color::A, ldloc:Color[exp:valuetype Microsoft.Xna.Framework.Graphics.Color&](currentColor), ldloc:int32[exp:uint8](var_8_7D))
1420}
1421
1422 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
1423 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
1424 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
1425 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
1426 --- End of inner exception stack trace ---
1427 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
1428 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
1429*/;
1430 }
1431
1432 // Token: 0x06003ACA RID: 15050 RVA: 0x00232D40 File Offset: 0x00230F40
1433 public static void DrawRadialCircular(SpriteBatch sb, Microsoft.Xna.Framework.Vector2 position, Player.SelectionRadial radial, Item[] items)
1434 {
1435 if (!true)
1436 {
1437 }
1440 }
1441
1442 // Token: 0x06003ACB RID: 15051 RVA: 0x00232DBC File Offset: 0x00230FBC
1444 {
1445 if (!true)
1446 {
1447 }
1450 }
1451
1452 // Token: 0x06003ACC RID: 15052 RVA: 0x00232E6C File Offset: 0x0023106C
1453 public static void DrawRadialDpad(SpriteBatch sb, Microsoft.Xna.Framework.Vector2 position)
1454 {
1455 int num = 1;
1456 if (num == 0)
1457 {
1458 }
1460 if (num == 0)
1461 {
1462 }
1463 int num2 = 1;
1464 if (num2 == 0)
1465 {
1466 }
1467 if (num2 == 0)
1468 {
1469 }
1470 int myPlayer = Main.myPlayer;
1471 if (num2 == 0)
1472 {
1473 }
1474 if (50047 == 0)
1475 {
1476 }
1477 float inventoryScale = Main.inventoryScale;
1479 }
1480
1481 // Token: 0x06003ACD RID: 15053 RVA: 0x00232EC8 File Offset: 0x002310C8
1482 public static bool IsABuildingItem(Item item)
1483 {
1484 }
1485
1486 // Token: 0x06003ACE RID: 15054 RVA: 0x00232ED8 File Offset: 0x002310D8
1487 public static void SelectEquipPage(Item item)
1488 {
1489 int num = 1;
1490 if (num == 0)
1491 {
1492 }
1493 bool isAir = item.IsAir;
1494 if (num == 0)
1495 {
1496 }
1497 if (item.mountType == 0)
1498 {
1499 }
1500 }
1501
1502 // Token: 0x06003ACF RID: 15055 RVA: 0x00232F54 File Offset: 0x00231154
1503 public ItemSlot()
1504 {
1505 }
1506
1507 // Token: 0x04007A74 RID: 31348
1509
1510 // Token: 0x04007A75 RID: 31349
1511 public static bool ShiftForcedOn;
1512
1513 // Token: 0x04007A76 RID: 31350
1514 public static float[] inventoryGlowHue;
1515
1516 // Token: 0x04007A77 RID: 31351
1517 public static int[] inventoryGlowTime;
1518
1519 // Token: 0x04007A78 RID: 31352
1520 private static float[] inventoryGlowHueChest;
1521
1522 // Token: 0x04007A79 RID: 31353
1523 private static int[] inventoryGlowTimeChest;
1524
1525 // Token: 0x04007A7A RID: 31354
1526 private static int _customCurrencyForSavings;
1527
1528 // Token: 0x04007A7B RID: 31355
1529 private static int additionalThrowVelocity;
1530
1531 // Token: 0x04007A7C RID: 31356
1532 public static bool DuplicationMode;
1533
1534 // Token: 0x04007A7D RID: 31357
1535 private static int dyeSlotCount;
1536
1537 // Token: 0x04007A7E RID: 31358
1538 private static int accSlotToSwapTo;
1539
1540 // Token: 0x04007A7F RID: 31359
1541 public static float CircularRadialOpacity;
1542
1543 // Token: 0x04007A80 RID: 31360
1544 public static float QuicksRadialOpacity;
1545
1546 // Token: 0x04007A81 RID: 31361
1547 private static Item[] singleSlotArray;
1548
1549 // Token: 0x04007A82 RID: 31362
1550 private static bool[] canFavoriteAt;
1551
1552 // Token: 0x04007A83 RID: 31363
1553 private static bool[] canShareAt;
1554
1555 // Token: 0x04007A84 RID: 31364
1558
1559 // Token: 0x04007A85 RID: 31365
1560 public static bool forceClearGlowsOnChest;
1561
1562 // Token: 0x04007A86 RID: 31366
1563 private static Item dummyItem;
1564
1565 // Token: 0x04007A87 RID: 31367
1566 private static bool CursorHighlight;
1567
1568 // Token: 0x04007A88 RID: 31368
1569 private static bool SelectHighlight;
1570
1571 // Token: 0x04007A89 RID: 31369
1572 private static float HighlightScale;
1573
1574 // Token: 0x04007A8A RID: 31370
1575 private static float ForceRenderScale;
1576
1577 // Token: 0x04007A8B RID: 31371
1579
1580 // Token: 0x04007A8C RID: 31372
1582
1583 // Token: 0x04007A8D RID: 31373
1585
1586 // Token: 0x04007A8E RID: 31374
1587 private static int LastHoverContext;
1588
1589 // Token: 0x04007A8F RID: 31375
1590 private static int LastHoverSlot;
1591
1592 // Token: 0x04007A90 RID: 31376
1594
1595 // Token: 0x04007A91 RID: 31377
1596 private static int LastButtonFrame;
1597
1598 // Token: 0x04007A92 RID: 31378
1600
1601 // Token: 0x04007A93 RID: 31379
1603
1604 // Token: 0x020006D3 RID: 1747
1605 public class Options
1606 {
1607 // Token: 0x17000753 RID: 1875
1608 // (get) Token: 0x06003AD0 RID: 15056 RVA: 0x000021DB File Offset: 0x000003DB
1609 // (set) Token: 0x06003AD1 RID: 15057 RVA: 0x00232F6C File Offset: 0x0023116C
1610 public static bool DisableLeftShiftTrashCan
1611 {
1612 get
1613 {
1614 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1615 }
1616 set
1617 {
1618 }
1619 }
1620
1621 // Token: 0x17000754 RID: 1876
1622 // (get) Token: 0x06003AD2 RID: 15058 RVA: 0x000021DB File Offset: 0x000003DB
1623 // (set) Token: 0x06003AD3 RID: 15059 RVA: 0x00232F7C File Offset: 0x0023117C
1624 public static bool HighlightNewItems
1625 {
1626 get
1627 {
1628 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1629 }
1630 set
1631 {
1632 }
1633 }
1634
1635 // Token: 0x17000755 RID: 1877
1636 // (get) Token: 0x06003AD4 RID: 15060 RVA: 0x000021DB File Offset: 0x000003DB
1637 // (set) Token: 0x06003AD5 RID: 15061 RVA: 0x00232F8C File Offset: 0x0023118C
1638 public static bool DisableQuickTrash
1639 {
1640 get
1641 {
1642 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1643 }
1644 set
1645 {
1646 }
1647 }
1648
1649 // Token: 0x06003AD6 RID: 15062 RVA: 0x00232F9C File Offset: 0x0023119C
1650 public Options()
1651 {
1652 }
1653 }
1654
1655 // Token: 0x020006D4 RID: 1748
1657 {
1658 // Token: 0x04007A95 RID: 31381
1659 DefenseIcon = 36,
1660 // Token: 0x04007A96 RID: 31382
1662 // Token: 0x04007A97 RID: 31383
1663 PVPMenu,
1664 // Token: 0x04007A98 RID: 31384
1666 // Token: 0x04007A99 RID: 31385
1667 CraftGuide,
1668 // Token: 0x04007A9A RID: 31386
1670 // Token: 0x04007A9B RID: 31387
1671 Reforge,
1672 // Token: 0x04007A9C RID: 31388
1673 Team,
1674 // Token: 0x04007A9D RID: 31389
1676 // Token: 0x04007A9E RID: 31390
1678 // Token: 0x04007A9F RID: 31391
1679 Hotbar,
1680 // Token: 0x04007AA0 RID: 31392
1681 Buffs,
1682 // Token: 0x04007AA1 RID: 31393
1683 Loadout
1684 }
1685
1686 // Token: 0x020006D5 RID: 1749
1687 public class Context
1688 {
1689 // Token: 0x06003AD7 RID: 15063 RVA: 0x00232FB0 File Offset: 0x002311B0
1690 public Context()
1691 {
1692 }
1693
1694 // Token: 0x04007AA2 RID: 31394
1695 public const int InventoryItem = 0;
1696
1697 // Token: 0x04007AA3 RID: 31395
1698 public const int InventoryCoin = 1;
1699
1700 // Token: 0x04007AA4 RID: 31396
1701 public const int InventoryAmmo = 2;
1702
1703 // Token: 0x04007AA5 RID: 31397
1704 public const int ChestItem = 3;
1705
1706 // Token: 0x04007AA6 RID: 31398
1707 public const int BankItem = 4;
1708
1709 // Token: 0x04007AA7 RID: 31399
1710 public const int PrefixItem = 5;
1711
1712 // Token: 0x04007AA8 RID: 31400
1713 public const int TrashItem = 6;
1714
1715 // Token: 0x04007AA9 RID: 31401
1716 public const int GuideItem = 7;
1717
1718 // Token: 0x04007AAA RID: 31402
1719 public const int EquipArmor = 8;
1720
1721 // Token: 0x04007AAB RID: 31403
1722 public const int EquipArmorVanity = 9;
1723
1724 // Token: 0x04007AAC RID: 31404
1725 public const int EquipAccessory = 10;
1726
1727 // Token: 0x04007AAD RID: 31405
1728 public const int EquipAccessoryVanity = 11;
1729
1730 // Token: 0x04007AAE RID: 31406
1731 public const int EquipDye = 12;
1732
1733 // Token: 0x04007AAF RID: 31407
1734 public const int HotbarItem = 13;
1735
1736 // Token: 0x04007AB0 RID: 31408
1737 public const int ChatItem = 14;
1738
1739 // Token: 0x04007AB1 RID: 31409
1740 public const int ShopItem = 15;
1741
1742 // Token: 0x04007AB2 RID: 31410
1743 public const int EquipGrapple = 16;
1744
1745 // Token: 0x04007AB3 RID: 31411
1746 public const int EquipMount = 17;
1747
1748 // Token: 0x04007AB4 RID: 31412
1749 public const int EquipMinecart = 18;
1750
1751 // Token: 0x04007AB5 RID: 31413
1752 public const int EquipPet = 19;
1753
1754 // Token: 0x04007AB6 RID: 31414
1755 public const int EquipLight = 20;
1756
1757 // Token: 0x04007AB7 RID: 31415
1758 public const int MouseItem = 21;
1759
1760 // Token: 0x04007AB8 RID: 31416
1761 public const int CraftingMaterial = 22;
1762
1763 // Token: 0x04007AB9 RID: 31417
1764 public const int DisplayDollArmor = 23;
1765
1766 // Token: 0x04007ABA RID: 31418
1767 public const int DisplayDollAccessory = 24;
1768
1769 // Token: 0x04007ABB RID: 31419
1770 public const int DisplayDollDye = 25;
1771
1772 // Token: 0x04007ABC RID: 31420
1773 public const int HatRackHat = 26;
1774
1775 // Token: 0x04007ABD RID: 31421
1776 public const int HatRackDye = 27;
1777
1778 // Token: 0x04007ABE RID: 31422
1779 public const int GoldDebug = 28;
1780
1781 // Token: 0x04007ABF RID: 31423
1782 public const int CreativeInfinite = 29;
1783
1784 // Token: 0x04007AC0 RID: 31424
1785 public const int CreativeSacrifice = 30;
1786
1787 // Token: 0x04007AC1 RID: 31425
1788 public const int InWorld = 31;
1789
1790 // Token: 0x04007AC2 RID: 31426
1791 public const int VoidItem = 32;
1792
1793 // Token: 0x04007AC3 RID: 31427
1794 public const int EquipMiscDye = 33;
1795
1796 // Token: 0x04007AC4 RID: 31428
1797 public const int CreativeResearch = 34;
1798
1799 // Token: 0x04007AC5 RID: 31429
1800 public const int RubbleMaker = 35;
1801
1802 // Token: 0x04007AC6 RID: 31430
1803 public const int Count = 36;
1804 }
1805
1806 // Token: 0x020006D6 RID: 1750
1807 public struct ItemTransferInfo
1808 {
1809 // Token: 0x06003AD8 RID: 15064 RVA: 0x00232FC4 File Offset: 0x002311C4
1811 {
1812 int type = itemAfter.type;
1813 this.ItemType = type;
1814 int stack = itemAfter.stack;
1818 }
1819
1820 // Token: 0x04007AC7 RID: 31431
1821 public int ItemType;
1822
1823 // Token: 0x04007AC8 RID: 31432
1824 public int TransferAmount;
1825
1826 // Token: 0x04007AC9 RID: 31433
1827 public int FromContenxt;
1828
1829 // Token: 0x04007ACA RID: 31434
1830 public int ToContext;
1831 }
1832
1833 // Token: 0x020006D7 RID: 1751
1835 {
1836 // Token: 0x06003AD9 RID: 15065 RVA: 0x00232FFC File Offset: 0x002311FC
1837 public ItemTransferEvent(object @object, IntPtr method)
1838 {
1840 this.m_target = @object;
1842 this.method_code = this;
1843 }
1844
1845 // Token: 0x06003ADA RID: 15066 RVA: 0x00233050 File Offset: 0x00231250
1847 {
1850 IntPtr method = this.method;
1851 }
1852
1853 // Token: 0x06003ADB RID: 15067 RVA: 0x000021DB File Offset: 0x000003DB
1855 {
1856 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1857 }
1858
1859 // Token: 0x06003ADC RID: 15068 RVA: 0x00233074 File Offset: 0x00231274
1860 public void EndInvoke(IAsyncResult result)
1861 {
1862 }
1863 }
1864 }
1865}
class f__AnonymousType0<< Count > j__TPar
static bool GetKey(KeyCode keycode)
IntPtr method_code
Definition Delegate.cs:386
IntPtr invoke_impl
Definition Delegate.cs:371
static TriggersPack Triggers
Item Clone()
Definition Item.cs:1708
int maxStack
Definition Item.cs:2225
bool IsAir
Definition Item.cs:1820
int buffType
Definition Item.cs:2370
bool accessory
Definition Item.cs:2069
int mountType
Definition Item.cs:2376
static int stackDelay
Definition Main.cs:2113
static int myPlayer
Definition Main.cs:2337
static Item[] mouseItemSource
Definition Main.cs:2183
static bool mouseRight
Definition Main.cs:685
static int cursorOverride
Definition Main.cs:3147
static bool mouseLeftRelease
Definition Main.cs:2029
static Item mouseItem
Definition Main.cs:2155
static bool NetClient
Definition Main.cs:5438
static bool NetClientOnly
Definition Main.cs:5407
static float inventoryScale
Definition Main.cs:2253
static bool mouseRightRelease
Definition Main.cs:2043
static int npcShop
Definition Main.cs:2547
static int mouseItemSourceIndex
Definition Main.cs:2197
static int stackSplit
Definition Main.cs:2071
static bool playerInventory
Definition Main.cs:2057
static Player LocalPlayer
Definition Main.cs:5267
static int mouseItemSourceContext
Definition Main.cs:2211
static bool mouseLeft
Definition Main.cs:671
int CurrentLoadoutIndex
Definition Player.cs:23525
static void FindRecipes(bool canDelayCheck=false)
Definition Recipe.cs:204
static void GetContainerUsageInfo([Out] bool sync, [Out] Item[] chestinv)
Definition ChestUI.cs:263
IAsyncResult BeginInvoke(ItemSlot.ItemTransferInfo info, AsyncCallback callback, object @object)
Definition ItemSlot.cs:1854
void EndInvoke(IAsyncResult result)
Definition ItemSlot.cs:1860
ItemTransferEvent(object @object, IntPtr method)
Definition ItemSlot.cs:1837
void Invoke(ItemSlot.ItemTransferInfo info)
Definition ItemSlot.cs:1846
static bool DisableLeftShiftTrashCan
Definition ItemSlot.cs:1611
static bool Equippable(Item inv, int context=0)
Definition ItemSlot.cs:1134
static bool TryItemSwap(Item item)
Definition ItemSlot.cs:645
static bool Equippable(Item[] inv, int context, int slot)
Definition ItemSlot.cs:1144
static void DrawSavings(SpriteBatch sb, float shopx, float shopy, bool horizontal=false, [Optional] SpriteBatch textSb)
Definition ItemSlot.cs:1368
static bool CursorHighlight
Definition ItemSlot.cs:1566
static float[] inventoryGlowHueChest
Definition ItemSlot.cs:1520
static float QuicksRadialOpacity
Definition ItemSlot.cs:1544
static bool OverrideLeftClick(Item[] inv, int context=0, int slot=0)
Definition ItemSlot.cs:218
static bool isEquipLocked(int type)
Definition ItemSlot.cs:185
static int LastHoverContext
Definition ItemSlot.cs:1587
static void SetGlow(int index, float hue, bool chest)
Definition ItemSlot.cs:125
static bool TryGetSlotColor(int loadoutIndex, int context, [Out] Microsoft.Xna.Framework.Graphics.Color color)
Definition ItemSlot.cs:828
static void OverrideHover(Item inv, int context=0)
Definition ItemSlot.cs:177
static void SellOrTrash(Item[] inv, int context, int slot)
Definition ItemSlot.cs:310
static void GetItemLight(Microsoft.Xna.Framework.Graphics.Color currentColor, float scale, Item item, bool outInTheWorld=false)
Definition ItemSlot.cs:1395
static void HandleShopSlot(Item[] inv, int slot, bool rightClickIsValid, bool leftClickIsValid)
Definition ItemSlot.cs:663
static Item dummyItem
Definition ItemSlot.cs:1563
static float ForceRenderScale
Definition ItemSlot.cs:1575
static void SwapEquip(Item inv, int context=0)
Definition ItemSlot.cs:1000
static Microsoft.Xna.Framework.Graphics.Color GetItemLight(Microsoft.Xna.Framework.Graphics.Color currentColor, float scale, int type, bool outInTheWorld=false)
Definition ItemSlot.cs:1403
static void Draw(SpriteBatch spriteBatch, Item inv, int context, Microsoft.Xna.Framework.Vector2 position)
Definition ItemSlot.cs:678
static float CircularRadialOpacity
Definition ItemSlot.cs:1541
static bool RightClick(Item[] inv, int context=0, int slot=0)
Definition ItemSlot.cs:453
static Microsoft.Xna.Framework.Graphics.Color GetLoadoutColor(int loadoutIndex)
Definition ItemSlot.cs:884
static void RightClick(Item inv, int context=0)
Definition ItemSlot.cs:445
static int LastButtonFrame
Definition ItemSlot.cs:1596
static int accSlotToSwapTo
Definition ItemSlot.cs:1538
static void OverrideHover(Item[] inv, int context=0, int slot=0)
Definition ItemSlot.cs:190
static void DrawMoney(SpriteBatch sb, string text, float shopx, float shopy, int[] coinsArray, bool horizontal=false, [Optional] SpriteBatch textSb)
Definition ItemSlot.cs:1307
static bool forceClearGlowsOnChest
Definition ItemSlot.cs:1560
static void UpdateTooltipContext(int context, int slot)
Definition ItemSlot.cs:972
static void SetSelectHighlight(bool hasFocus, float highlightScale=-1f)
Definition ItemSlot.cs:702
static int dyeSlotCount
Definition ItemSlot.cs:1535
static bool SwapVanityEquip(Item[] inv, int context, int slot, Player player)
Definition ItemSlot.cs:570
static int PickItemMovementAction(Item[] inv, int context, int slot, Item checkItem, bool backwardCheck=false, int initialSlot=-1)
Definition ItemSlot.cs:405
static float HighlightScale
Definition ItemSlot.cs:1572
static void SetCursorHighlight(bool hasFocus)
Definition ItemSlot.cs:694
static bool ShiftForcedOn
Definition ItemSlot.cs:1511
static bool DisableTrashing()
Definition ItemSlot.cs:285
static Microsoft.Xna.Framework.Vector2 defenderTextOffset
Definition ItemSlot.cs:1599
static void PlaceItem(Item[] inv, Item item, int context=0, int slot=-1, int keepStack=0)
Definition ItemSlot.cs:395
static void LeftClick(Item[] inv, int context=0, int slot=0)
Definition ItemSlot.cs:273
static int[] inventoryGlowTime
Definition ItemSlot.cs:1517
static void DrawRadialDpad(SpriteBatch sb, Microsoft.Xna.Framework.Vector2 position)
Definition ItemSlot.cs:1453
static void DrawRadialQuicks(SpriteBatch sb, Microsoft.Xna.Framework.Vector2 position)
Definition ItemSlot.cs:1443
static bool NotUsingGamepad
Definition ItemSlot.cs:73
static void PickupItemIntoMouse(Item[] inv, int context, int slot, Player player)
Definition ItemSlot.cs:504
static void Draw(SpriteBatch spriteBatch, Item[] inv, int context, int slot, Microsoft.Xna.Framework.Vector2 position, Microsoft.Xna.Framework.Graphics.Color lightColor)
Definition ItemSlot.cs:726
static int LastHoverSlot
Definition ItemSlot.cs:1590
static bool IsMiscEquipment(Item item)
Definition ItemSlot.cs:1168
static int additionalThrowVelocity
Definition ItemSlot.cs:1529
static void UpdateChestOnServer(int context, int slot)
Definition ItemSlot.cs:373
static bool AltInUse
Definition ItemSlot.cs:25
static void UpdateTooltipButton(TransactionButton_Layout button)
Definition ItemSlot.cs:963
static string GetOverrideInstructions(Item[] inv, int context, int slot)
Definition ItemSlot.cs:335
static void MouseHover(Item inv, int context=0)
Definition ItemSlot.cs:955
static float DrawItemIcon(Item item, int context, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Vector2 screenPositionForItemCenter, float scale, float sizeLimit, Microsoft.Xna.Framework.Graphics.Color environmentColor)
Definition ItemSlot.cs:911
static void Draw(SpriteBatch spriteBatch, Item[] inv, int context, int slot, Microsoft.Xna.Framework.Vector2 position, Microsoft.Xna.Framework.Graphics.Color lightColor, Microsoft.Xna.Framework.Graphics.Color backColor)
Definition ItemSlot.cs:734
static bool IsMouseItem(Item[] slots, int index)
Definition ItemSlot.cs:241
static bool TryOpenContainer(Item item, Player player)
Definition ItemSlot.cs:541
static Item DyeSwap(Item item, [Out] bool success)
Definition ItemSlot.cs:1204
static void Handle(Item[] inv, int context=0, int slot=0)
Definition ItemSlot.cs:156
static bool TryPickupDyeToCursor(int context, Item[] inv, int slot, Player player)
Definition ItemSlot.cs:597
static void SelectEquipPage(Item item)
Definition ItemSlot.cs:1487
static bool ShiftInUse
Definition ItemSlot.cs:41
static Item[] singleSlotArray
Definition ItemSlot.cs:1547
static void Draw(SpriteBatch spriteBatch, Item[] inv, int context, int slot, Microsoft.Xna.Framework.Vector2 position)
Definition ItemSlot.cs:718
static bool IsABuildingItem(Item item)
Definition ItemSlot.cs:1482
static void DrawItem_GetColorAndScale(Item item, float scale, Microsoft.Xna.Framework.Graphics.Color currentWhite, float sizeLimit, Rectangle frame, [Out] Microsoft.Xna.Framework.Graphics.Color itemLight, [Out] float finalDrawScale)
Definition ItemSlot.cs:938
static void UpdateInterface()
Definition ItemSlot.cs:133
static void RefreshStackSplitCooldown()
Definition ItemSlot.cs:526
static int[] inventoryGlowTimeChest
Definition ItemSlot.cs:1523
static bool ControlInUse
Definition ItemSlot.cs:57
static bool LeftClick_SellOrTrash(Item[] inv, int context, int slot)
Definition ItemSlot.cs:298
static Microsoft.Xna.Framework.Graphics.Color GetHighlightColorByLoadout(int slot, int context)
Definition ItemSlot.cs:796
static Microsoft.Xna.Framework.Graphics.Color GetColorByLoadout(int slot, int context)
Definition ItemSlot.cs:775
static void DrawRadialCircular(SpriteBatch sb, Microsoft.Xna.Framework.Vector2 position, Player.SelectionRadial radial, Item[] items)
Definition ItemSlot.cs:1433
static bool DrawGoldBGForCraftingMaterial
Definition ItemSlot.cs:1508
static void TakeOne(Item[] inv, int context, int slot)
Definition ItemSlot.cs:475
static bool[] canShareAt
Definition ItemSlot.cs:1553
static void AfterItemSwap(int oldType, int newType)
Definition ItemSlot.cs:655
static int _customCurrencyForSavings
Definition ItemSlot.cs:1526
static TransactionButton_Layout LastHoverButton
Definition ItemSlot.cs:1593
static void Draw(SpriteBatch spriteBatch, Item inv, int context, Microsoft.Xna.Framework.Vector2 position, Microsoft.Xna.Framework.Graphics.Color lightColor)
Definition ItemSlot.cs:686
static void MouseHover(int context=0)
Definition ItemSlot.cs:947
static void GetItemLight(Microsoft.Xna.Framework.Graphics.Color currentColor, int type, bool outInTheWorld=false)
Definition ItemSlot.cs:1387
static bool AccCheck(Item[] itemCollection, Item item, int slot)
Definition ItemSlot.cs:1195
static void AnnounceTransfer(ItemSlot.ItemTransferInfo info)
Definition ItemSlot.cs:113
static Microsoft.Xna.Framework.Graphics.Color[,] LoadoutSlotColors
Definition ItemSlot.cs:1581
static void Handle(Item inv, int context=0)
Definition ItemSlot.cs:147
static double _lastTimeForVisualEffectsThatLoadoutWasChanged
Definition ItemSlot.cs:1578
static void DrawCost(SpriteBatch sb, float shopx, float shopy, long cost, [Optional] SpriteBatch textSb)
Definition ItemSlot.cs:1340
static bool TryGetHighlightedSlotColor(int loadoutIndex, int context, [Out] Microsoft.Xna.Framework.Graphics.Color color)
Definition ItemSlot.cs:853
static bool DuplicationMode
Definition ItemSlot.cs:1532
static float[] inventoryGlowHue
Definition ItemSlot.cs:1514
static Microsoft.Xna.Framework.Vector2 defenderPigOffset
Definition ItemSlot.cs:1602
static bool[] canFavoriteAt
Definition ItemSlot.cs:1550
static void SetOverridenScale(float highlightScale)
Definition ItemSlot.cs:710
static Microsoft.Xna.Framework.Graphics.Color[,] LoadoutHighlightSlotColors
Definition ItemSlot.cs:1584
static void GetItemLight(Microsoft.Xna.Framework.Graphics.Color currentColor, Item item, bool outInTheWorld=false)
Definition ItemSlot.cs:1379
static bool SelectHighlight
Definition ItemSlot.cs:1569
static float ShiftHueByLoadout(float hue, int loadoutIndex)
Definition ItemSlot.cs:878
static bool SwapEquip(Item[] inv, int context, int slot)
Definition ItemSlot.cs:1008
static void MouseHover(Item[] inv, int context=0, int slot=0)
Definition ItemSlot.cs:981
static ItemSlot.ItemTransferEvent OnItemTransferred
Definition ItemSlot.cs:87
static Item EquipSwap(Item item, Item[] inv, int slot, [Out] bool success)
Definition ItemSlot.cs:1290
static void LeftClick(Item inv, int context=0)
Definition ItemSlot.cs:265
static void DrawSavings(SpriteBatch sb, Panel_Layout savingsBacking, float shopx, float shopy, Microsoft.Xna.Framework.Vector2 savings1IconOffset, Microsoft.Xna.Framework.Vector2 savings2Offset, Microsoft.Xna.Framework.Vector2 savings3Offset, Microsoft.Xna.Framework.Vector2 savings4Offset, bool horizontal=false, [Optional] SpriteBatch textSb)
Definition ItemSlot.cs:1346
static Item ArmorSwap(Item item, [Out] bool success)
Definition ItemSlot.cs:1239
static void RecordLoadoutChange()
Definition ItemSlot.cs:820
static int[] CoinsSplit(long count)
Definition Utils.cs:431
ItemTransferInfo(Item itemAfter, int fromContext, int toContext, int transferAmount=0)
Definition ItemSlot.cs:1810