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
GUIPageIcons.cs
Go to the documentation of this file.
1using System;
4using Controller;
9using Terraria;
10using UnityEngine;
11
12// Token: 0x02000161 RID: 353
13public class GUIPageIcons
14{
15 // Token: 0x170000FD RID: 253
16 // (get) Token: 0x060009C9 RID: 2505 RVA: 0x0002DEB4 File Offset: 0x0002C0B4
18 {
19 get
20 {
21 bool usingTouchUI = this.UsingTouchUI;
22 return this.UseHorizontalInventory;
23 }
24 }
25
26 // Token: 0x170000FE RID: 254
27 // (get) Token: 0x060009CA RID: 2506 RVA: 0x0002DED0 File Offset: 0x0002C0D0
28 public bool UsingTouchUI
29 {
30 get
31 {
32 /*
33An exception occurred when decompiling this method (060009CA)
34
35ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean GUIPageIcons::get_UsingTouchUI()
36
37 ---> System.Exception: Basic block has to end with unconditional control flow.
38{
39 IL_000B:
40 stloc:InterfaceProfile_Layout(var_2_12, callgetter:InterfaceProfile_Layout(InterfaceStyles_Layout::get_Active))
41}
42
43 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
44 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
45 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
46 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
47 --- End of inner exception stack trace ---
48 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
49 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
50*/;
51 }
52 }
53
54 // Token: 0x170000FF RID: 255
55 // (get) Token: 0x060009CB RID: 2507 RVA: 0x0002DEF4 File Offset: 0x0002C0F4
57 {
58 get
59 {
60 bool flag;
61 return flag;
62 }
63 }
64
65 // Token: 0x060009CC RID: 2508 RVA: 0x0002DF04 File Offset: 0x0002C104
66 public static void LoadContent(ContentManager content)
67 {
68 if (!true)
69 {
70 }
71 Microsoft.Xna.Framework.Graphics.Texture2D texture2D = content.Load<Microsoft.Xna.Framework.Graphics.Texture2D>("Images/UI/PageIcons/ResearchIcon");
72 if (texture2D == null || texture2D != null)
73 {
74 Microsoft.Xna.Framework.Graphics.Texture2D texture2D2 = content.Load<Microsoft.Xna.Framework.Graphics.Texture2D>("Images/UI/PageIcons/ResearchIconSelected");
75 if (texture2D2 == null || texture2D2 != null)
76 {
77 return;
78 }
79 }
81 }
82
83 // Token: 0x060009CD RID: 2509 RVA: 0x0002E0B8 File Offset: 0x0002C2B8
84 private static void LoadItemIcon(ContentManager content, int id)
85 {
86 if (306 == 0)
87 {
88 }
89 string text2;
90 string text = "Images/UI/PageIcons/Item_" + text2;
92 }
93
94 // Token: 0x060009CE RID: 2510 RVA: 0x0002E100 File Offset: 0x0002C300
95 private static void LoadNPCIcon(ContentManager content, int id)
96 {
97 if (!true)
98 {
99 }
100 Microsoft.Xna.Framework.Graphics.Texture2D texture2D = content.Load<Microsoft.Xna.Framework.Graphics.Texture2D>("Images/UI/PageIcons/NPC_Uncollected_Head_3");
101 Microsoft.Xna.Framework.Graphics.Texture2D texture2D2 = content.Load<Microsoft.Xna.Framework.Graphics.Texture2D>("Images/UI/PageIcons/NPC_Uncollected_Head_3Selected");
102 Microsoft.Xna.Framework.Graphics.Texture2D texture2D3 = content.Load<Microsoft.Xna.Framework.Graphics.Texture2D>("Images/UI/PageIcons/NPC_Uncollected_Head_3Shimmered");
103 Microsoft.Xna.Framework.Graphics.Texture2D texture2D4 = content.Load<Microsoft.Xna.Framework.Graphics.Texture2D>("Images/UI/PageIcons/NPC_Uncollected_Head_3ShimmeredSelected");
104 }
105
106 // Token: 0x060009CF RID: 2511 RVA: 0x0002E1B0 File Offset: 0x0002C3B0
108 {
109 /*
110An exception occurred when decompiling this method (060009CF)
111
112ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Graphics.Texture2D GUIPageIcons::GetCategoryTexture(GUIPageIcons/Category,System.Boolean)
113
114 ---> System.Exception: Basic block has to end with unconditional control flow.
115{
116 IL_012B:
117 stloc:int32(var_55_133, callgetter:int32(Main::get_myPlayer))
118 stloc:int32(var_57_13D, callgetter:int32(Main::get_myPlayer))
119}
120
121 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
122 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
123 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
124 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
125 --- End of inner exception stack trace ---
126 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
127 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
128*/;
129 }
130
131 // Token: 0x060009D0 RID: 2512 RVA: 0x0002E2FC File Offset: 0x0002C4FC
133 {
134 if (this.UseConsoleStyle)
135 {
137 return active == null || active.IsPageSelected(category);
138 }
140 return true;
141 }
142
143 // Token: 0x060009D1 RID: 2513 RVA: 0x0002E338 File Offset: 0x0002C538
144 public bool DrawRightPageHUD()
145 {
146 bool allowDraw;
147 if (this.UseConsoleStyle)
148 {
151 return allowDraw;
152 }
153 return allowDraw;
154 }
155
156 // Token: 0x060009D2 RID: 2514 RVA: 0x0002E360 File Offset: 0x0002C560
158 {
159 }
160
161 // Token: 0x17000100 RID: 256
162 // (get) Token: 0x060009D3 RID: 2515 RVA: 0x0002E370 File Offset: 0x0002C570
163 // (set) Token: 0x060009D4 RID: 2516 RVA: 0x0002E384 File Offset: 0x0002C584
165 {
166 get
167 {
168 return this._selectedLeft;
169 }
170 set
171 {
173 this.OnCategoryClosed(selectedLeft);
176 }
177 }
178
179 // Token: 0x17000101 RID: 257
180 // (get) Token: 0x060009D5 RID: 2517 RVA: 0x0002E3B0 File Offset: 0x0002C5B0
181 // (set) Token: 0x060009D6 RID: 2518 RVA: 0x0002E3C4 File Offset: 0x0002C5C4
183 {
184 get
185 {
186 return this._selectedRight;
187 }
188 set
189 {
191 this.OnCategoryClosed(selectedRight);
194 }
195 }
196
197 // Token: 0x060009D7 RID: 2519 RVA: 0x0002E3F0 File Offset: 0x0002C5F0
198 public void Close(bool hideChat = true)
199 {
202 if (this.UseConsoleStyle)
203 {
205 long num = 0L;
206 active.Close(num != 0L);
207 }
208 Main.playerInventory = false;
209 Main.InReforgeMenu = false;
210 Main.InGuideCraftMenu = false;
213 Main.npcShop = 0;
214 int myPlayer = Main.myPlayer;
215 int myPlayer2 = Main.myPlayer;
216 int myPlayer3 = Main.myPlayer;
217 this.RefreshRightItems();
218 }
219
220 // Token: 0x060009D8 RID: 2520 RVA: 0x0002E470 File Offset: 0x0002C670
222 {
223 }
224
225 // Token: 0x060009D9 RID: 2521 RVA: 0x000021DB File Offset: 0x000003DB
226 private void RefreshLeftItems()
227 {
228 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
229 }
230
231 // Token: 0x060009DA RID: 2522 RVA: 0x000021DB File Offset: 0x000003DB
232 private void RefreshRightItems()
233 {
234 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
235 }
236
237 // Token: 0x060009DB RID: 2523 RVA: 0x0002E6DC File Offset: 0x0002C8DC
239 {
240 int num = 1;
241 if (num == 0)
242 {
243 }
244 bool playerInventory = Main.playerInventory;
245 if (num == 0)
246 {
247 }
248 int myPlayer = Main.myPlayer;
249 if (num == 0)
250 {
251 }
252 Main.npcShop = 0;
253 if (num == 0)
254 {
255 }
256 int myPlayer2 = Main.myPlayer;
257 if (num == 0)
258 {
259 }
260 int myPlayer3 = Main.myPlayer;
261 int myPlayer4 = Main.myPlayer;
262 Tile tile;
263 ushort type = tile.type;
264 int myPlayer5 = Main.myPlayer;
265 Recipe.FindRecipes(false);
267 int myPlayer6 = Main.myPlayer;
268 Main.InGuideCraftMenu = false;
269 Recipe.FindRecipes(false);
270 }
271
272 // Token: 0x060009DC RID: 2524 RVA: 0x0002E768 File Offset: 0x0002C968
273 private void UpdatePageStates()
274 {
275 int num = 1;
276 if (num == 0)
277 {
278 }
279 int myPlayer = Main.myPlayer;
280 if (num != 0)
281 {
282 if (num == 0)
283 {
284 }
286 long num2 = 0L;
287 this.Close(num2 != 0L);
288 }
291 if (useConsoleStyle)
292 {
293 if (!useConsoleStyle)
294 {
295 }
297 return;
298 }
299 this.RefreshLeftItems();
300 this.RefreshRightItems();
301 }
302
303 // Token: 0x060009DD RID: 2525 RVA: 0x000021DB File Offset: 0x000003DB
304 public float ExtendedScale(int index)
305 {
306 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
307 }
308
309 // Token: 0x060009DE RID: 2526 RVA: 0x000021DB File Offset: 0x000003DB
310 public float ItemScale(int index)
311 {
312 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
313 }
314
315 // Token: 0x060009DF RID: 2527 RVA: 0x0002E7D4 File Offset: 0x0002C9D4
317 {
318 }
319
320 // Token: 0x060009E0 RID: 2528 RVA: 0x0002E864 File Offset: 0x0002CA64
322 {
323 }
324
325 // Token: 0x060009E1 RID: 2529 RVA: 0x0002E918 File Offset: 0x0002CB18
326 private void LeftOver(int index)
327 {
329 GUIPageIcons.Category category = this.hoverLeft;
334 if (category2 == GUIPageIcons.Category.Crafting)
335 {
336 }
337 bool mouseLeft = Main.mouseLeft;
338 if (category2 == GUIPageIcons.Category.Crafting)
339 {
340 }
341 bool mouseLeftRelease = Main.mouseLeftRelease;
342 if (category2 == GUIPageIcons.Category.Crafting)
343 {
344 }
346 if (category2 == GUIPageIcons.Category.Crafting)
347 {
348 }
349 if (Main.mouseItem != null)
350 {
351 if (category2 == GUIPageIcons.Category.Crafting)
352 {
353 }
354 int type = Main.mouseItem.type;
355 }
356 if (this.leftMenuTogglePressed)
357 {
360 }
361 }
362
363 // Token: 0x060009E2 RID: 2530 RVA: 0x0002E9D8 File Offset: 0x0002CBD8
379
380 // Token: 0x060009E3 RID: 2531 RVA: 0x0002EA64 File Offset: 0x0002CC64
381 private void LeftDraw(ItemGrid_Layout gridLayout, int index, Microsoft.Xna.Framework.Vector2 position, float scale)
382 {
383 if (this.leftMenuTogglePressed)
384 {
385 this.LeftOver(index);
386 }
388 GUIPageIcons.Category category = this.lastHoverLeft;
391 this.lastHoverLeft.value__ = (int)scale;
395 if (list4 == null)
396 {
397 }
398 if (Main.mouseItem != null)
399 {
400 if (list4 == null)
401 {
402 }
403 int type = Main.mouseItem.type;
405 if (!true)
406 {
407 }
408 float mouseItemTime = Main.mouseItemTime;
409 if (92 == 0)
410 {
411 }
412 }
413 if (92 == 0)
414 {
415 }
427 }
428
429 // Token: 0x060009E4 RID: 2532 RVA: 0x0002EB68 File Offset: 0x0002CD68
430 private void RightOver(int index)
431 {
433 GUIPageIcons.Category category = this.hoverRight;
438 if (category2 == GUIPageIcons.Category.Crafting)
439 {
440 }
441 bool mouseLeft = Main.mouseLeft;
442 if (category2 == GUIPageIcons.Category.Crafting)
443 {
444 }
445 bool mouseLeftRelease = Main.mouseLeftRelease;
450 }
451
452 // Token: 0x060009E5 RID: 2533 RVA: 0x0002EC70 File Offset: 0x0002CE70
453 public bool AnyPageSelected()
454 {
455 bool flag = Main.npcChatText != "";
456 bool editChest = Main.editChest;
457 bool hairWindow = Main.hairWindow;
458 bool clothesWindow = Main.clothesWindow;
459 int myPlayer = Main.myPlayer;
460 return Main.playerInventory;
461 }
462
463 // Token: 0x060009E6 RID: 2534 RVA: 0x0002ECC4 File Offset: 0x0002CEC4
464 public bool IsLeftPageSelected()
465 {
466 /*
467An exception occurred when decompiling this method (060009E6)
468
469ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean GUIPageIcons::IsLeftPageSelected()
470
471 ---> System.Exception: Basic block has to end with unconditional control flow.
472{
473 Block_0:
474 stloc:Category(var_0_06, ldfld:Category(GUIPageIcons::_selectedLeft, ldloc:GUIPageIcons(this)))
475}
476
477 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
478 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
479 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
480 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
481 --- End of inner exception stack trace ---
482 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
483 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
484*/;
485 }
486
487 // Token: 0x060009E7 RID: 2535 RVA: 0x0002ECD8 File Offset: 0x0002CED8
489 {
490 /*
491An exception occurred when decompiling this method (060009E7)
492
493ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean GUIPageIcons::IsRightPageSelected()
494
495 ---> System.Exception: Basic block has to end with unconditional control flow.
496{
497 Block_0:
498 stloc:Category(var_0_06, ldfld:Category(GUIPageIcons::_selectedRight, ldloc:GUIPageIcons(this)))
499}
500
501 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
502 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
503 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
504 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
505 --- End of inner exception stack trace ---
506 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
507 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
508*/;
509 }
510
511 // Token: 0x060009E8 RID: 2536 RVA: 0x0002ECEC File Offset: 0x0002CEEC
516
517 // Token: 0x060009E9 RID: 2537 RVA: 0x0002ED00 File Offset: 0x0002CF00
523
524 // Token: 0x060009EA RID: 2538 RVA: 0x0002ED48 File Offset: 0x0002CF48
525 private void RightDraw(ItemGrid_Layout gridLayout, int index, Microsoft.Xna.Framework.Vector2 position, float scale)
526 {
527 if (this.rightMenuTogglePressed)
528 {
529 this.RightOver(index);
530 }
538 if (list4 == null)
539 {
540 }
541 int num2;
542 if (Main.mouseItem != null)
543 {
544 if (list4 == null)
545 {
546 }
547 int type = Main.mouseItem.type;
549 int num = 1;
550 num2 = 92;
551 if (num == 0)
552 {
553 }
554 float mouseItemTime = Main.mouseItemTime;
555 if (num2 == 0)
556 {
557 }
558 }
559 if (num2 == 0)
560 {
561 }
571 }
572
573 // Token: 0x060009EB RID: 2539 RVA: 0x0002EE90 File Offset: 0x0002D090
575 {
576 if (this._selectedLeft == GUIPageIcons.Category.Crafting)
577 {
578 }
579 int myPlayer = Main.myPlayer;
580 }
581
582 // Token: 0x060009EC RID: 2540 RVA: 0x0002EEB4 File Offset: 0x0002D0B4
583 public void DrawInventoryPage()
584 {
585 }
586
587 // Token: 0x060009ED RID: 2541 RVA: 0x0002EEC4 File Offset: 0x0002D0C4
588 public void DrawInventoryItems()
589 {
590 if (this.UseConsoleStyle)
591 {
592 }
593 bool flag = this.leftMenuOpen;
595 if (flag)
596 {
598 list = this.leftItems;
599 float x = this.pageButtonRegionSize.X;
600 float y = this.pageButtonRegionSize.Y;
601 int size = list._size;
602 if (!flag)
603 {
604 }
605 return;
606 }
608 if (list == null)
609 {
610 }
613 if (list == null)
614 {
615 }
616 if (16256 == 0)
617 {
618 }
620 }
621
622 // Token: 0x17000102 RID: 258
623 // (get) Token: 0x060009EE RID: 2542 RVA: 0x0002EF44 File Offset: 0x0002D144
625 {
626 get
627 {
628 return true;
629 }
630 }
631
632 // Token: 0x060009EF RID: 2543 RVA: 0x0002EF54 File Offset: 0x0002D154
633 public bool ClickedOutOfRegion(Rectangle popupRegion, bool showDebug = false)
634 {
635 global::Cursor cursor;
636 if (cursor != null)
637 {
638 float x = cursor.Position.x;
639 float y = cursor.Position.y;
640 if (!cursor.Down || cursor.WasDown)
641 {
642 }
643 }
644 string text;
645 Debug.Log(text);
646 return true;
647 }
648
649 // Token: 0x060009F0 RID: 2544 RVA: 0x0002EFA4 File Offset: 0x0002D1A4
650 public void DrawLeftMenuButton()
651 {
652 if (64 == 0)
653 {
654 }
655 int myPlayer = Main.myPlayer;
656 int num = 1;
657 bool editChest = Main.editChest;
658 long num2;
659 int num3;
660 if (num != 0)
661 {
662 if (true)
663 {
664 num2 = 0L;
665 return;
666 }
667 num3 = 17096;
668 }
670 if ((num3 != 0 && num3 == 0 && num3 == 0) || num3 == 0)
671 {
672 }
674 if (num2 != 0L)
675 {
676 return;
677 }
681 }
682
683 // Token: 0x17000103 RID: 259
684 // (get) Token: 0x060009F1 RID: 2545 RVA: 0x0002F110 File Offset: 0x0002D310
685 public bool LastActiveLeft
686 {
687 get
688 {
689 if (this.lastActive != null)
690 {
695 return true;
696 }
697 return true;
698 }
699 }
700
701 // Token: 0x060009F2 RID: 2546 RVA: 0x0002F14C File Offset: 0x0002D34C
713
714 // Token: 0x060009F3 RID: 2547 RVA: 0x0002F234 File Offset: 0x0002D434
716 {
717 }
718
719 // Token: 0x060009F4 RID: 2548 RVA: 0x0002F268 File Offset: 0x0002D468
720 // Note: this type is marked as 'beforefieldinit'.
722 {
723 }
724
725 // Token: 0x04000983 RID: 2435
727
728 // Token: 0x04000984 RID: 2436
730
731 // Token: 0x04000985 RID: 2437
733
734 // Token: 0x04000986 RID: 2438
736
737 // Token: 0x04000987 RID: 2439
739
740 // Token: 0x04000988 RID: 2440
742
743 // Token: 0x04000989 RID: 2441
745
746 // Token: 0x0400098A RID: 2442
748
749 // Token: 0x0400098B RID: 2443
751
752 // Token: 0x0400098C RID: 2444
754
755 // Token: 0x0400098D RID: 2445
757
758 // Token: 0x0400098E RID: 2446
760
761 // Token: 0x0400098F RID: 2447
763
764 // Token: 0x04000990 RID: 2448
766
767 // Token: 0x04000991 RID: 2449
769
770 // Token: 0x04000992 RID: 2450
771 private float TimeSinceLeftChanged;
772
773 // Token: 0x04000993 RID: 2451
774 private float TimeSinceRightChanged = (float)17096;
775
776 // Token: 0x04000994 RID: 2452
778
779 // Token: 0x04000995 RID: 2453
781
782 // Token: 0x04000996 RID: 2454
783 private float TimeSinceRightHoverChanged = (float)17096;
784
785 // Token: 0x04000997 RID: 2455
787
788 // Token: 0x04000998 RID: 2456
789 public bool UseConsoleStyle;
790
791 // Token: 0x04000999 RID: 2457
792 public bool EnableDoubleClick;
793
794 // Token: 0x0400099A RID: 2458
795 public bool UsePageLeftStyle;
796
797 // Token: 0x0400099B RID: 2459
798 public bool leftMenuOpen;
799
800 // Token: 0x0400099C RID: 2460
802
803 // Token: 0x0400099D RID: 2461
805
806 // Token: 0x0400099E RID: 2462
807 private float leftMenuButtonScale;
808
809 // Token: 0x0400099F RID: 2463
811
812 // Token: 0x040009A0 RID: 2464
813 public bool excludeFocus;
814
815 // Token: 0x040009A1 RID: 2465
817
818 // Token: 0x040009A2 RID: 2466
820
821 // Token: 0x040009A3 RID: 2467
823
824 // Token: 0x040009A4 RID: 2468
826
827 // Token: 0x040009A5 RID: 2469
828 public bool rightMenuOpen;
829
830 // Token: 0x040009A6 RID: 2470
831 private float rightMenuButtonScale = (float)16192;
832
833 // Token: 0x040009A7 RID: 2471
835
836 // Token: 0x040009A8 RID: 2472
838
839 // Token: 0x040009A9 RID: 2473
841
842 // Token: 0x040009AA RID: 2474
844
845 // Token: 0x040009AB RID: 2475
847
848 // Token: 0x040009AC RID: 2476
850
851 // Token: 0x040009AD RID: 2477
853
854 // Token: 0x040009AE RID: 2478
856
857 // Token: 0x040009AF RID: 2479
859
860 // Token: 0x040009B0 RID: 2480
862
863 // Token: 0x040009B1 RID: 2481
865
866 // Token: 0x02000162 RID: 354
868 {
869 // Token: 0x040009B3 RID: 2483
870 Vertical,
871 // Token: 0x040009B4 RID: 2484
872 Bottom
873 }
874
875 // Token: 0x02000163 RID: 355
877 {
878 // Token: 0x040009B6 RID: 2486
880 // Token: 0x040009B7 RID: 2487
882 // Token: 0x040009B8 RID: 2488
884 // Token: 0x040009B9 RID: 2489
886 }
887
888 // Token: 0x02000164 RID: 356
889 public enum Category
890 {
891 // Token: 0x040009BB RID: 2491
892 Crafting,
893 // Token: 0x040009BC RID: 2492
895 // Token: 0x040009BD RID: 2493
896 Inventory,
897 // Token: 0x040009BE RID: 2494
898 Chest,
899 // Token: 0x040009BF RID: 2495
900 Shop,
901 // Token: 0x040009C0 RID: 2496
902 Housing,
903 // Token: 0x040009C1 RID: 2497
904 Equipment,
905 // Token: 0x040009C2 RID: 2498
906 PVP,
907 // Token: 0x040009C3 RID: 2499
908 Map,
909 // Token: 0x040009C4 RID: 2500
910 Reforge,
911 // Token: 0x040009C5 RID: 2501
913 // Token: 0x040009C6 RID: 2502
914 Dresser,
915 // Token: 0x040009C7 RID: 2503
917 // Token: 0x040009C8 RID: 2504
919 // Token: 0x040009C9 RID: 2505
920 Chat,
921 // Token: 0x040009CA RID: 2506
922 Duplicate,
923 // Token: 0x040009CB RID: 2507
925 // Token: 0x040009CC RID: 2508
926 HatRack,
927 // Token: 0x040009CD RID: 2509
928 Research,
929 // Token: 0x040009CE RID: 2510
930 None,
931 // Token: 0x040009CF RID: 2511
932 Count
933 }
934}
class f__AnonymousType0<< Count > j__TPar
static void SetLeftPageRegion(Rectangle region)
static void LoadNPCIcon(ContentManager content, int id)
bool IsRightPageSelected()
void DrawInventoryPage()
List< GUIPageIcons.Category > equipmentItems
bool DisplayTouchOptions
float rightMenuButtonScale
float leftMenuButtonScale
float TimeSinceLeftChanged
static Dictionary< int, Microsoft.Xna.Framework.Graphics.Texture2D > _npcShimmeredIcons
static void LoadContent(ContentManager content)
GUIPageIcons.Category _selectedCrafting
void DrawLeftMenuButton()
void RefreshRightItems()
GUIPageIcons.Category hoverLeft
static void LoadItemIcon(ContentManager content, int id)
GUIControllerItem lastActive
void OpenUI(GUIPageIcons.Category left, GUIPageIcons.Category right)
static Dictionary< int, Microsoft.Xna.Framework.Graphics.Texture2D > _itemSelectedIcons
float ExtendedScale(int index)
bool ClickedOutOfRegion(Rectangle popupRegion, bool showDebug=false)
Microsoft.Xna.Framework.Graphics.Texture2D GetCategoryTexture(GUIPageIcons.Category category, bool selected)
void InventoryDraw(ItemGrid_Layout gridLayout, int index, Microsoft.Xna.Framework.Vector2 position, float scale)
float TimeSinceRightChanged
bool AnyPageSelected()
Microsoft.Xna.Framework.Vector2 pageButtonRegionSize
GUIPageIcons.Category _selectedInteraction
void RefreshLeftItems()
void UpdatePageStates()
GUIPageIcons.Category selectedRight
void ActivateLeftController()
GUIPageIcons.Category selectedLeft
float ItemScale(int index)
void RefreshAvailableItems()
GUIPageIcons.PageCollapseMode PageMode
static Dictionary< int, Microsoft.Xna.Framework.Graphics.Texture2D > _npcIcons
GUIPageIcons.Category hoverRight
static Dictionary< int, Microsoft.Xna.Framework.Graphics.Texture2D > _itemIcons
List< GUIPageIcons.Category > rightItems
static Microsoft.Xna.Framework.Graphics.Texture2D[] _categories
bool rightMenuTogglePressed
void OnCategoryClosed(GUIPageIcons.Category category)
void LoadDrawColor(TransactionButton_Layout layout, Microsoft.Xna.Framework.Graphics.Color color)
static Dictionary< int, Microsoft.Xna.Framework.Graphics.Texture2D > _npcSelectedIcons
GUIPageIcons.Category _selectedLeft
DateTime RightNavigationTick
void LeftDraw(ItemGrid_Layout gridLayout, int index, Microsoft.Xna.Framework.Vector2 position, float scale)
GUIPageIcons.PageControlsType PageControls
List< GUIPageIcons.Category > interactionItems
bool UseHorizontalInventory
GUIPageIcons.Category lastHoverRight
GUIPageIcons.Category _selectedRight
bool IsLeftPageSelected()
void RightDraw(ItemGrid_Layout gridLayout, int index, Microsoft.Xna.Framework.Vector2 position, float scale)
bool UsePageLeftStyle
bool CanAcceptItems(GUIPageIcons.Category category)
DateTime LeftNavigationTick
void RightOver(int index)
GUIPageIcons.Category _selectedEquipment
List< GUIPageIcons.Category > craftItems
bool IsPageSelected(GUIPageIcons.Category category)
bool EnableDoubleClick
static Dictionary< int, Microsoft.Xna.Framework.Graphics.Texture2D > _npcShimmeredSelectedIcons
void DrawInventoryItems()
bool rightUseItemFilter
GUIPageIcons.Category lastHoverLeft
static Microsoft.Xna.Framework.Graphics.Texture2D[] _categoriesSelected
bool leftMenuTogglePressed
bool DrawRightPageHUD()
void OnCategoryOpened(GUIPageIcons.Category category)
void OverloadDrawColor(TransactionButton_Layout layout, GUIPageIcons.Category category, bool over, bool selected, [Out] Microsoft.Xna.Framework.Graphics.Color restoreCol)
float TimeSinceRightHoverChanged
List< GUIPageIcons.Category > leftItems
static Microsoft.Xna.Framework.Graphics.Texture2D _menuClosed
bool PagePopupDisplayed
float TimeSinceLeftHoverChanged
bool rightUseDuplication
void Close(bool hideChat=true)
bool UseHorizontalPages
static Microsoft.Xna.Framework.Graphics.Texture2D _menuOpen
void LeftOver(int index)
static GUIPageIcons()
bool IsPageSelected(GUIPageIcons.Category category)
void Close(bool shutdown=false)
static InterfaceProfile_Layout Active
static float mouseItemTime
Definition Main.cs:2169
static int myPlayer
Definition Main.cs:2337
static bool mouseLeftRelease
Definition Main.cs:2029
static void CancelHairWindow()
Definition Main.cs:12319
static Item mouseItem
Definition Main.cs:2155
static bool clothesWindow
Definition Main.cs:797
static bool editChest
Definition Main.cs:2407
static bool InGuideCraftMenu
Definition Main.cs:2645
static bool playerInventory
Definition Main.cs:2057
static void CancelClothesWindow(bool quiet=false)
Definition Main.cs:12367
static bool mouseLeft
Definition Main.cs:671
static bool hairWindow
Definition Main.cs:783
static void FindRecipes(bool canDelayCheck=false)
Definition Recipe.cs:204
static void Log(object message)
Definition Debug.cs:51
static float deltaTime
Definition Time.cs:14
static XNAUnityRunner.ForcedInputMode PrimaryInputMode
ushort type
Definition Tile.cs:58