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
GUIInventoryTransactions.cs
Go to the documentation of this file.
1using System;
2using Terraria;
4using Terraria.UI;
5
6// Token: 0x0200014D RID: 333
8{
9 // Token: 0x170000E4 RID: 228
10 // (get) Token: 0x06000914 RID: 2324 RVA: 0x00027620 File Offset: 0x00025820
12 {
13 get
14 {
15 /*
16An exception occurred when decompiling this method (06000914)
17
18ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.Item GUIInventoryTransactions::get_SelectedItem()
19
20 ---> System.Exception: Basic block has to end with unconditional control flow.
21{
22 IL_0003:
23 stloc:int32(var_1_0A, callgetter:int32(Main::get_myPlayer))
24 stloc:int32(var_3_12, callgetter:int32(Main::get_myPlayer))
25}
26
27 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
28 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
29 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
30 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
31 --- End of inner exception stack trace ---
32 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
33 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
34*/;
35 }
36 }
37
38 // Token: 0x06000915 RID: 2325 RVA: 0x00027640 File Offset: 0x00025840
39 public void Draw()
40 {
41 }
42
43 // Token: 0x06000916 RID: 2326 RVA: 0x00027650 File Offset: 0x00025850
44 public void SellItem()
45 {
46 int npcShop = Main.npcShop;
47 int myPlayer = Main.myPlayer;
50 }
51
52 // Token: 0x06000917 RID: 2327 RVA: 0x00027694 File Offset: 0x00025894
53 public void EquipItem()
54 {
55 Item item;
56 if (item.maxStack == 0)
57 {
58 }
59 Main.mouseRight = true;
60 int myPlayer = Main.myPlayer;
62 Recipe.FindRecipes(false);
63 Main.mouseRight = false;
64 }
65
66 // Token: 0x06000918 RID: 2328 RVA: 0x0002776C File Offset: 0x0002596C
67 public void PlaceItemDoll()
68 {
69 int myPlayer = Main.myPlayer;
71 if (tileEntity == null)
72 {
73 Recipe.FindRecipes(false);
74 return;
75 }
77 Item item;
78 if (item.accessory)
79 {
80 return;
81 }
82 Item item2;
83 int headSlot = item2.headSlot;
84 }
85
86 // Token: 0x06000919 RID: 2329 RVA: 0x000277DC File Offset: 0x000259DC
87 public void PlaceItemHat()
88 {
89 int myPlayer = Main.myPlayer;
91 if (tileEntity != null)
92 {
94 Item item;
95 int headSlot = item.headSlot;
96 bool isAir2 = item.IsAir;
97 return;
98 }
99 Recipe.FindRecipes(false);
100 }
101
102 // Token: 0x0600091A RID: 2330 RVA: 0x00027834 File Offset: 0x00025A34
103 public void DepositItem()
104 {
105 int myPlayer = Main.myPlayer;
106 ChestUI.Deposit(int.MinValue);
107 }
108
109 // Token: 0x0600091B RID: 2331 RVA: 0x00027854 File Offset: 0x00025A54
111 {
112 }
113
114 // Token: 0x04000887 RID: 2183
115 private float sellButtonScale;
116
117 // Token: 0x04000888 RID: 2184
118 private float equipButtonScale;
119
120 // Token: 0x04000889 RID: 2185
121 private float depositButtonScale = (float)16256;
122
123 // Token: 0x0400088A RID: 2186
124 public bool canBeDeposited;
125}
class f__AnonymousType0<< Count > j__TPar
int headSlot
Definition Item.cs:2279
bool IsAir
Definition Item.cs:1820
static int myPlayer
Definition Main.cs:2337
static Item mouseItem
Definition Main.cs:2155
static int npcShop
Definition Main.cs:2547
static void FindRecipes(bool canDelayCheck=false)
Definition Recipe.cs:204
static void Deposit(int p)
Definition ChestUI.cs:122