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
GUICraftGuide.cs
Go to the documentation of this file.
1using System;
5using Terraria;
7using Terraria.UI;
8
9// Token: 0x02000136 RID: 310
10public class GUICraftGuide
11{
12 // Token: 0x0600080B RID: 2059 RVA: 0x0001FBD0 File Offset: 0x0001DDD0
19
20 // Token: 0x170000D2 RID: 210
21 // (get) Token: 0x0600080C RID: 2060 RVA: 0x0001FBEC File Offset: 0x0001DDEC
22 public bool Collapsed
23 {
24 get
25 {
26 if (!true)
27 {
28 }
30 }
31 }
32
33 // Token: 0x0600080D RID: 2061 RVA: 0x0001FC0C File Offset: 0x0001DE0C
34 public void Reset()
35 {
36 if (!true)
37 {
38 }
39 if (!true)
40 {
41 }
42 }
43
44 // Token: 0x170000D3 RID: 211
45 // (get) Token: 0x0600080E RID: 2062 RVA: 0x0001FC20 File Offset: 0x0001DE20
46 public bool HasFocus
47 {
48 get
49 {
51 return true;
52 }
53 }
54
55 // Token: 0x170000D4 RID: 212
56 // (get) Token: 0x0600080F RID: 2063 RVA: 0x0001FC38 File Offset: 0x0001DE38
58 {
59 get
60 {
61 /*
62An exception occurred when decompiling this method (0600080F)
63
64ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.Item GUICraftGuide::get_guideItem()
65
66 ---> System.Exception: Basic block has to end with unconditional control flow.
67{
68 IL_0003:
69 stloc:int32(var_1_0A, callgetter:int32(Main::get_myPlayer))
70 stloc:class [mscorlib]System.Collections.Generic.List`1<int32>(var_2_11, ldfld:class [mscorlib]System.Collections.Generic.List`1<int32>(GUICraftGuide::_materialItems, ldloc:GUICraftGuide(this)))
71 stloc:int32(var_3_18, ldfld:int32(GUICraftGuide::_selectedItem, ldloc:GUICraftGuide(this)))
72 stloc:int32(var_4_1F, ldfld:int32(List`1::_size, ldloc:class [mscorlib]System.Collections.Generic.List`1<int32>[exp:List`1](var_2_11)))
73}
74
75 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
76 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
77 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
78 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
79 --- End of inner exception stack trace ---
80 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
81 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
82*/;
83 }
84 }
85
86 // Token: 0x06000810 RID: 2064 RVA: 0x000021DB File Offset: 0x000003DB
87 private void RefreshItems()
88 {
89 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
90 }
91
92 // Token: 0x06000811 RID: 2065 RVA: 0x0001FC68 File Offset: 0x0001DE68
93 public void DrawGuideList()
94 {
95 int type = this.guideItem.type;
96 bool material = this.guideItem.material;
97 }
98
99 // Token: 0x06000812 RID: 2066 RVA: 0x0001FD48 File Offset: 0x0001DF48
100 public float GuideItemScale(int index)
101 {
102 /*
103An exception occurred when decompiling this method (06000812)
104
105ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single GUICraftGuide::GuideItemScale(System.Int32)
106
107 ---> System.Exception: Basic block has to end with unconditional control flow.
108{
109 Block_0:
110 stloc:!0(var_0_05, callgetter:!0(PageControllerLayoutDefinition`1::get_Instance))
111}
112
113 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
114 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
115 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
116 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
117 --- End of inner exception stack trace ---
118 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
119 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
120*/;
121 }
122
123 // Token: 0x06000813 RID: 2067 RVA: 0x0001FD5C File Offset: 0x0001DF5C
124 public void GuideItemOver(int index)
125 {
127 int size = this._materialItems._size;
128 if (size == 0)
129 {
130 }
131 int myPlayer = Main.myPlayer;
133 if (size == 0)
134 {
135 }
137 bool mouseLeft = Main.mouseLeft;
138 if (size == 0)
139 {
140 }
141 bool mouseLeftRelease = Main.mouseLeftRelease;
142 int selectedItem = this._selectedItem;
145 if (guicontrollerCraftingGuide != null)
146 {
149 }
150 }
151
152 // Token: 0x06000814 RID: 2068 RVA: 0x0001FDD0 File Offset: 0x0001DFD0
153 public void GuideItemDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
154 {
155 if (!true)
156 {
157 }
158 Main.inventoryScale = scale;
159 int num = this.cursorOver;
160 if (!true)
161 {
162 }
163 int size = this._materialItems._size;
165 int selectedItem = this._selectedItem;
166 int num2 = this.cursorOver;
167 }
168
169 // Token: 0x06000815 RID: 2069 RVA: 0x0001FEAC File Offset: 0x0001E0AC
170 public void Draw()
171 {
172 int num = 1;
173 if (num == 0)
174 {
175 }
176 if (num == 0)
177 {
178 }
179 int num2 = 255;
181 string textValue = Language.GetTextValue("NPCName.Guide");
182 if (num2 == 0)
183 {
184 }
185 int myPlayer = Main.myPlayer;
186 if (Main.npcShop != 0)
187 {
188 Main.InGuideCraftMenu = false;
189 int myPlayer2 = Main.myPlayer;
190 Recipe.FindRecipes(false);
191 return;
192 }
193 int myPlayer3 = Main.myPlayer;
195 Item item;
196 int type = item.type;
200 int itemCount = draggableItemGrid_Layout.ItemCount;
201 if (num2 == 0)
202 {
203 }
205 if (rectangle == null)
206 {
207 }
208 int mouseX = Main.mouseX;
209 int mouseY = Main.mouseY;
212 }
213
214 // Token: 0x06000816 RID: 2070 RVA: 0x0001FF68 File Offset: 0x0001E168
216 {
217 }
218
219 // Token: 0x040006D7 RID: 1751
220 public float craftScrollOffset;
221
222 // Token: 0x040006D8 RID: 1752
223 private float craftScrollMomentum;
224
225 // Token: 0x040006D9 RID: 1753
227
228 // Token: 0x040006DA RID: 1754
230
231 // Token: 0x040006DB RID: 1755
232 private int cursorOver = 1;
233
234 // Token: 0x040006DC RID: 1756
235 public bool menuTogglePressed;
236
237 // Token: 0x040006DD RID: 1757
239
240 // Token: 0x040006DE RID: 1758
242
243 // Token: 0x040006DF RID: 1759
245
246 // Token: 0x040006E0 RID: 1760
248
249 // Token: 0x040006E1 RID: 1761
251
252 // Token: 0x040006E2 RID: 1762
254
255 // Token: 0x040006E3 RID: 1763
256 private int _selectedItem;
257}
class f__AnonymousType0<< Count > j__TPar
static DrPlatform.DrPlatformType CurrentPlatform
Definition DrPlatform.cs:26
float craftScrollOffset
float craftScrollMomentum
List< int > _materialItems
Vector2 craftDragOffset
GUIControllerCraftingMaterials materialController
float GuideItemScale(int index)
void GuideItemOver(int index)
List< string > _requiredObjecsForCraftingText
DateTime NavigationTick
void LoadPageRegion()
void GuideItemDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
void RefreshItems()
void DrawGuideList()
bool IsCollapsed(GUIPageIcons.Category category)
static InterfaceProfile_Layout Active
bool material
Definition Item.cs:2108
static string GetTextValue(string key)
Definition Language.cs:54
static int myPlayer
Definition Main.cs:2337
static bool mouseLeftRelease
Definition Main.cs:2029
static bool InReforgeMenu
Definition Main.cs:2659
static int npcShop
Definition Main.cs:2547
static int mouseY
Definition Main.cs:601
static int mouseX
Definition Main.cs:587
static bool mouseLeft
Definition Main.cs:671
static void FindRecipes(bool canDelayCheck=false)
Definition Recipe.cs:204
static void UpdateTooltipContext(int context, int slot)
Definition ItemSlot.cs:972
static bool ControllerModeLocked