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
GUIControllerCrafting4Page.cs
Go to the documentation of this file.
1using System;
4using Terraria;
5
6// Token: 0x020000BB RID: 187
8{
9 // Token: 0x0600047A RID: 1146 RVA: 0x0000E420 File Offset: 0x0000C620
16
17 // Token: 0x0600047B RID: 1147 RVA: 0x000021DB File Offset: 0x000003DB
18 private int GetCollectionCount()
19 {
20 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
21 }
22
23 // Token: 0x0600047C RID: 1148 RVA: 0x0000E434 File Offset: 0x0000C634
24 private float GetItemScale()
25 {
26 /*
27An exception occurred when decompiling this method (0600047C)
28
29ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single GUIControllerCrafting4Page::GetItemScale()
30
31 ---> System.Exception: Basic block has to end with unconditional control flow.
32{
33 Block_0:
34 stloc:!0(var_0_05, callgetter:!0(PageControllerLayoutDefinition`1::get_Instance))
35}
36
37 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
38 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
39 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
40 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
41 --- End of inner exception stack trace ---
42 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
43 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
44*/;
45 }
46
47 // Token: 0x0600047D RID: 1149 RVA: 0x000021DB File Offset: 0x000003DB
48 private float GetScrollOffset()
49 {
50 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
51 }
52
53 // Token: 0x0600047E RID: 1150 RVA: 0x0000E448 File Offset: 0x0000C648
54 private void SetScrollOffset(float offset)
55 {
56 }
57
58 // Token: 0x0600047F RID: 1151 RVA: 0x0000E458 File Offset: 0x0000C658
59 public override bool IsInMenu()
60 {
61 return this.GridNav.InMenu;
62 }
63
64 // Token: 0x06000480 RID: 1152 RVA: 0x0000E470 File Offset: 0x0000C670
65 private int GetMenuItemCount()
66 {
67 if (!true)
68 {
69 }
73 long num = 0L;
74 GUIPageIconGrouping categoryGrouping = active2.GetCategoryGrouping(GUIPageIcons.Category.Duplicate, num != 0L);
76 if (guipageIconGrouping == null || categoryGrouping != null)
77 {
78 }
79 return 2;
80 }
81
82 // Token: 0x06000481 RID: 1153 RVA: 0x0000E4B4 File Offset: 0x0000C6B4
83 private int GetDisplayItemCount()
84 {
85 }
86
87 // Token: 0x17000082 RID: 130
88 // (get) Token: 0x06000482 RID: 1154 RVA: 0x0000E4C4 File Offset: 0x0000C6C4
90 {
91 get
92 {
93 /*
94An exception occurred when decompiling this method (06000482)
95
96ICSharpCode.Decompiler.DecompilerException: Error decompiling GUIControllerDynamicGridNavigator GUIControllerCrafting4Page::get_GridNav()
97
98 ---> System.Exception: Basic block has to end with unconditional control flow.
99{
100 IL_0000:
101 brtrue(IL_0000, ldfld:GUIControllerDynamicGridNavigator[exp:bool](GUIControllerCrafting4Page::_gridNav, ldloc:GUIControllerCrafting4Page(this)))
102}
103
104 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
105 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
106 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
107 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
108 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
109 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
110 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
111 --- End of inner exception stack trace ---
112 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
113 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
114*/;
115 }
116 }
117
118 // Token: 0x06000483 RID: 1155 RVA: 0x0000E4D8 File Offset: 0x0000C6D8
119 public override int GetNavigationOutDirs()
120 {
121 base.LoadPageAnchor();
122 return this.GridNav.GetNavigationOutDirs();
123 }
124
125 // Token: 0x06000484 RID: 1156 RVA: 0x0000E4F8 File Offset: 0x0000C6F8
126 public override void Activate()
127 {
129 }
130
131 // Token: 0x06000485 RID: 1157 RVA: 0x0000E50C File Offset: 0x0000C70C
132 public override void RefreshScrollOffset()
133 {
134 base.LoadPageAnchor();
136 }
137
138 // Token: 0x06000486 RID: 1158 RVA: 0x0000E52C File Offset: 0x0000C72C
139 protected override void UpdateScroll()
140 {
141 }
142
143 // Token: 0x06000487 RID: 1159 RVA: 0x0000E53C File Offset: 0x0000C73C
151
152 // Token: 0x06000488 RID: 1160 RVA: 0x0000E558 File Offset: 0x0000C758
153 protected override void ClampPosition()
154 {
155 }
156
157 // Token: 0x06000489 RID: 1161 RVA: 0x0000E568 File Offset: 0x0000C768
159 {
160 base.LoadPageAnchor();
161 return this.GridNav.GetSelectedItemRegion();
162 }
163
164 // Token: 0x0600048A RID: 1162 RVA: 0x0000E588 File Offset: 0x0000C788
165 public override void NavigateInto(int column, int row)
166 {
167 base.LoadPageAnchor();
168 this.GridNav.NavigateInto(column, row);
169 }
170
171 // Token: 0x0600048B RID: 1163 RVA: 0x0000E5A8 File Offset: 0x0000C7A8
173 {
174 }
175
176 // Token: 0x04000442 RID: 1090
178}
class f__AnonymousType0<< Count > j__TPar
GUIControllerDynamicGridNavigator _gridNav
DraggableItemGrid_Layout GetGrid()
override void NavigateInto(int column, int row)
override GUIControllerItem Navigate(Vector2 navigationVector)
GUIControllerDynamicGridNavigator GridNav
static InterfaceProfile_Layout Active
static int GameMode
Definition Main.cs:4141