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
GUITrashCan.cs
Go to the documentation of this file.
1using System;
3using Terraria;
4
5// Token: 0x02000174 RID: 372
6public class GUITrashCan
7{
8 // Token: 0x06000A8B RID: 2699 RVA: 0x000334A4 File Offset: 0x000316A4
9 public float ItemScale(int index)
10 {
11 /*
12An exception occurred when decompiling this method (06000A8B)
13
14ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single GUITrashCan::ItemScale(System.Int32)
15
16 ---> System.Exception: Basic block has to end with unconditional control flow.
17{
18 Block_0:
19 stloc:!0(var_0_05, callgetter:!0(PageControllerLayoutDefinition`1::get_Instance))
20}
21
22 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
23 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
24 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
25 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
26 --- End of inner exception stack trace ---
27 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
28 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
29*/;
30 }
31
32 // Token: 0x06000A8C RID: 2700 RVA: 0x000334B8 File Offset: 0x000316B8
33 public void ItemOver(int index)
34 {
35 int num = 1;
36 this.cursorOverTrashCan = num != 0;
37 if (!true)
38 {
39 }
40 if (Main.myPlayer == 0)
41 {
42 }
43 Recipe.FindRecipes(false);
44 }
45
46 // Token: 0x06000A8D RID: 2701 RVA: 0x00033548 File Offset: 0x00031748
47 public void ItemDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
48 {
49 if (!this.cursorOverTrashCan || !true)
50 {
51 }
52 }
53
54 // Token: 0x06000A8E RID: 2702 RVA: 0x000335C0 File Offset: 0x000317C0
55 public void Draw()
56 {
57 for (;;)
58 {
59 int num = 1;
61 if (num == 0)
62 {
63 }
64 bool flag = this.itemDragStart;
65 if (!flag)
66 {
67 break;
68 }
69 if (!flag)
70 {
71 }
72 bool mouseLeft = Main.mouseLeft;
73 if (!flag)
74 {
75 }
76 if (Main.mouseItem != null)
77 {
78 if (!flag)
79 {
80 }
81 if (Main.mouseItem.type != 0)
82 {
83 break;
84 }
85 }
86 if (this.itemDragStart)
87 {
88 goto Block_2;
89 }
90 }
91 return;
92 Block_2:
93 if (this.overTrashCan)
94 {
95 }
96 if (Main.myPlayer == 0)
97 {
98 }
99 Recipe.FindRecipes(false);
100 }
101
102 // Token: 0x06000A8F RID: 2703 RVA: 0x00033630 File Offset: 0x00031830
103 public GUITrashCan()
104 {
105 }
106
107 // Token: 0x04000A78 RID: 2680
108 private bool itemDragStart;
109
110 // Token: 0x04000A79 RID: 2681
111 private bool overTrashCan;
112
113 // Token: 0x04000A7A RID: 2682
114 private bool cursorOverTrashCan;
115}
class f__AnonymousType0<< Count > j__TPar
void ItemOver(int index)
bool overTrashCan
void Draw()
bool itemDragStart
void ItemDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
float ItemScale(int index)
Definition GUITrashCan.cs:9
bool cursorOverTrashCan
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