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
GUIVirtualInputController.cs
Go to the documentation of this file.
1using System;
3using Controller;
7using Terraria;
10
11// Token: 0x02000175 RID: 373
13{
14 // Token: 0x06000A90 RID: 2704 RVA: 0x00033644 File Offset: 0x00031844
16 {
17 int num = 1;
18 this.StashCraftedItems = num != 0;
19 int num2 = 44564;
20 int num3 = 16256;
21 int num4 = 16000;
22 int num5 = 257;
24 this.AimScale = (float)num4;
26 this.deadZone = (float)num2;
27 int num6 = 17096;
29 base..ctor();
31 int num7 = 100;
34 int num8 = 85;
36 }
37
38 // Token: 0x06000A91 RID: 2705 RVA: 0x000336E0 File Offset: 0x000318E0
39 public static void LoadContent(ContentManager content)
40 {
41 Texture2D texture2D = content.Load<Texture2D>("Images/UI/VirtualControls/Nav_NoBacking");
42 Texture2D texture2D2 = content.Load<Texture2D>("Images/UI/VirtualControls/Icon_Movement");
43 Texture2D texture2D3 = content.Load<Texture2D>("Images/UI/VirtualControls/Crosshair");
44 }
45
46 // Token: 0x17000112 RID: 274
47 // (get) Token: 0x06000A92 RID: 2706 RVA: 0x00033714 File Offset: 0x00031914
48 private bool HasGrapple
49 {
50 get
51 {
52 /*
53An exception occurred when decompiling this method (06000A92)
54
55ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean GUIVirtualInputController::get_HasGrapple()
56
57 ---> System.Exception: Basic block has to end with unconditional control flow.
58{
59 IL_0003:
60 stloc:int32(var_1_0A, callgetter:int32(Main::get_myPlayer))
61}
62
63 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
64 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
65 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
66 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
67 --- End of inner exception stack trace ---
68 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
69 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
70*/;
71 }
72 }
73
74 // Token: 0x17000113 RID: 275
75 // (get) Token: 0x06000A93 RID: 2707 RVA: 0x0003372C File Offset: 0x0003192C
76 public bool JumpTapPressed
77 {
78 get
79 {
80 /*
81An exception occurred when decompiling this method (06000A93)
82
83ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean GUIVirtualInputController::get_JumpTapPressed()
84
85 ---> System.Exception: Basic block has to end with unconditional control flow.
86{
87 Block_0:
88 stloc:float32(var_0_0B, ldfld:float32(Vector2::Y, ldfld:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](GUIVirtualInputController::movementAxis, ldloc:GUIVirtualInputController(this))))
89}
90
91 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
92 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
93 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
94 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
95 --- End of inner exception stack trace ---
96 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
97 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
98*/;
99 }
100 }
101
102 // Token: 0x17000114 RID: 276
103 // (get) Token: 0x06000A94 RID: 2708 RVA: 0x00033744 File Offset: 0x00031944
105 {
106 get
107 {
108 /*
109An exception occurred when decompiling this method (06000A94)
110
111ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean GUIVirtualInputController::get_WasJumpTapPressed()
112
113 ---> System.Exception: Basic block has to end with unconditional control flow.
114{
115 IL_0000:
116 stloc:int32(var_0_01, ldc.i4:int32(1))
117 stloc:int32(var_1_08, ldfld:int32(GUIVirtualInputController::previousMovementLastFrame, ldloc:GUIVirtualInputController(this)))
118 brtrue(IL_0000, ldloc:int32[exp:bool](var_0_01))
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
123 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
124 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
125 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
126 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
127 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
128 --- End of inner exception stack trace ---
129 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
130 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
131*/;
132 }
133 }
134
135 // Token: 0x06000A95 RID: 2709 RVA: 0x0003375C File Offset: 0x0003195C
137 {
138 if (!true)
139 {
140 }
141 if (!true)
142 {
143 }
144 if (!true)
145 {
146 }
147 if (this.Pressed == null)
148 {
149 }
150 if (!true)
151 {
152 }
153 if (this.Pressed == null)
154 {
155 }
156 if (!true)
157 {
158 }
159 float y = this.movementAxis.Y;
160 if (this.Pressed == null)
161 {
162 }
163 if (!true)
164 {
165 }
166 float y2 = this.movementAxis.Y;
167 bool[] pressed = this.Pressed;
168 }
169
170 // Token: 0x06000A96 RID: 2710 RVA: 0x000337E0 File Offset: 0x000319E0
172 {
173 int num = 1;
174 this.anyActive = num != 0;
175 this.fireAxisFiring = num != 0;
176 }
177
178 // Token: 0x06000A97 RID: 2711 RVA: 0x00033800 File Offset: 0x00031A00
179 private void HideNotifications()
180 {
181 }
182
183 // Token: 0x06000A98 RID: 2712 RVA: 0x00033810 File Offset: 0x00031A10
184 private void AddInteractBanner(Player player, Item item)
185 {
186 if (!true)
187 {
188 }
189 bool gameMenu = Main.gameMenu;
190 }
191
192 // Token: 0x06000A99 RID: 2713 RVA: 0x00033A38 File Offset: 0x00031C38
194 {
195 }
196
197 // Token: 0x06000A9A RID: 2714 RVA: 0x00033A48 File Offset: 0x00031C48
198 private static bool CanInteract(Player player, Item item)
199 {
200 if (!true)
201 {
202 }
203 bool gameMenu = Main.gameMenu;
205 int myPlayer = Main.myPlayer;
209 float drainBoost;
210 if (mouseNPC != null)
211 {
212 drainBoost = player.drainBoost;
213 while (drainBoost == null)
214 {
215 }
216 }
217 if (drainBoost == null)
218 {
219 }
220 int signHover = Main.signHover;
221 if (drainBoost == null)
222 {
223 }
225 if (drainBoost != null)
226 {
227 float drainBoost2 = player.drainBoost;
228 if (drainBoost2 == null)
229 {
230 if (drainBoost2 == null)
231 {
232 }
235 Tile tile;
236 ushort type = tile.type;
237 }
238 }
239 int tileTargetX = Player.tileTargetX;
240 int tileTargetY = Player.tileTargetY;
241 bool flag = Minecart.CanSwitchTrack(tileTargetX, tileTargetY);
242 float drainBoost3 = player.drainBoost;
243 while (drainBoost3 == null)
244 {
245 }
246 if (drainBoost3 == null)
247 {
248 }
251 Tile tile2;
252 ushort type2 = tile2.type;
255 Tile tile3;
256 ushort type3 = tile3.type;
259 Tile tile4;
260 ushort type4 = tile4.type;
262 }
263
264 // Token: 0x06000A9B RID: 2715 RVA: 0x00033B84 File Offset: 0x00031D84
296
297 // Token: 0x06000A9C RID: 2716 RVA: 0x00033BF0 File Offset: 0x00031DF0
298 public void Update(float elapsedTime)
299 {
300 int num = 1;
301 if (num == 0)
302 {
303 }
304 bool gameMenu = Main.gameMenu;
305 if (num == 0)
306 {
307 }
308 int myPlayer = Main.myPlayer;
317 bool[] pressed = this.Pressed;
318 bool[] wasPressed = this.WasPressed;
319 bool flag = this.movementAxisActive;
320 bool flag2 = this.grappleAxisActive;
321 bool flag3 = this.fireAxisActive;
322 bool flag4 = this.fireButtonFiring;
325 Vector2 vector = this.grappleAxis;
327 if (vector == null)
328 {
329 }
330 if (true)
331 {
332 return;
333 }
338 if (true)
339 {
340 return;
341 }
342 if (true)
343 {
344 return;
345 }
346 if (!true)
347 {
348 }
349 bool gameMenu2 = Main.gameMenu;
350 int myPlayer2 = Main.myPlayer;
351 int myPlayer3 = Main.myPlayer;
352 if (this.AutoControlEnabled)
353 {
354 if (LockOnHelper.AimedTarget != null)
355 {
356 bool[] pressed2 = this.Pressed;
357 if (this.WasPressed == null)
358 {
359 return;
360 }
361 }
362 else
363 {
366 }
367 }
369 bool mapFullscreen = Main.mapFullscreen;
370 bool gameMenu3 = Main.gameMenu;
371 }
372
373 // Token: 0x06000A9D RID: 2717 RVA: 0x00034998 File Offset: 0x00032B98
374 private void HandleCursorGridSnap(bool tileBoostWholeScreen, int screenCenterX, int screenCenterY, int tB, float MouseX, float MouseY)
375 {
376 if (!true)
377 {
378 }
379 if (this.gridSnapUp)
380 {
381 }
382 if (this.gridSnapDown)
383 {
384 }
385 if (this.gridSnapLeft)
386 {
387 }
388 if (this.gridSnapRight)
389 {
390 }
391 int tileRangeX = Player.tileRangeX;
392 int tileRangeY = Player.tileRangeY;
393 }
394
395 // Token: 0x06000A9E RID: 2718 RVA: 0x00034A28 File Offset: 0x00032C28
396 private void HandleGridSnapCursorMovement(Item selectedItem, int screenCenterX, int screenCenterY, int tB, float MouseX, float MouseY)
397 {
398 if (!true)
399 {
400 }
401 float x;
402 float y;
404 if (this.lastGridAimMode)
405 {
408 x = this.LastResultPosition.X;
409 y = this.LastResultPosition.Y;
410 lastScreenCentreX = this.LastScreenCentreX;
411 return;
412 }
413 int num = 15744;
414 int num2 = 32768;
424 float x2 = this.WorldBlendOffset.X;
427 }
428
429 // Token: 0x06000A9F RID: 2719 RVA: 0x00034DD0 File Offset: 0x00032FD0
431 {
432 float num = this.deadZone;
433 Vector2 vector;
434 return vector;
435 }
436
437 // Token: 0x06000AA0 RID: 2720 RVA: 0x00034DEC File Offset: 0x00032FEC
438 private void UpdateCursorMovement()
439 {
440 int num = 1;
441 if (num == 0)
442 {
443 }
444 int myPlayer = Main.myPlayer;
445 if (num == 0 && num == 0)
446 {
447 return;
448 }
449 Cursor cursor;
450 if (cursor != null)
451 {
452 Cursor cursor2;
453 if (!cursor2.Down)
454 {
455 }
456 int worldMouseX = Main.worldMouseX;
457 this.lastWorldCursorPointX = worldMouseX;
458 int worldMouseY = Main.worldMouseY;
459 this.lastWorldCursorPointY = worldMouseY;
460 return;
461 }
462 if (this.wasWorldCursorActive)
463 {
464 return;
465 }
466 long num2 = 0L;
467 this.wasWorldCursorActive = num2 != 0L;
468 int num3;
469 if (num3 == 0)
470 {
471 }
473 float x = this.movementAxis.X;
474 float y = this.movementAxis.Y;
475 int num4 = 1;
476 if (num4 == 0)
477 {
478 }
479 int value = num4.m_value;
481 if (!leftStickAiming)
482 {
483 float x2 = this.fireAxis.X;
484 float y2 = this.fireAxis.Y;
485 if (!leftStickAiming)
486 {
487 }
488 int num5 = 1;
489 if (num5 == 0)
490 {
491 }
492 int value2 = num5.m_value;
493 if (num5 == 0)
494 {
495 }
496 float num6;
498 return;
499 }
500 bool flag;
501 if (!flag)
502 {
503 }
504 float num7;
506 if (!flag)
507 {
508 }
509 Vector2 screenPosition = Main.screenPosition;
511 float screenYOffset = Main.screenYOffset;
512 bool mapFullscreen = Main.mapFullscreen;
513 }
514
515 // Token: 0x17000115 RID: 277
516 // (get) Token: 0x06000AA1 RID: 2721 RVA: 0x000355C8 File Offset: 0x000337C8
517 public bool InGameUIOpen
518 {
519 get
520 {
521 bool ingameOptionsWindow = Main.ingameOptionsWindow;
522 bool inFancyUI = Main.inFancyUI;
523 bool mapFullscreen = Main.mapFullscreen;
524 return true;
525 }
526 }
527
528 // Token: 0x06000AA2 RID: 2722 RVA: 0x000355FC File Offset: 0x000337FC
529 public void SecondaryUpdateCursor(Cursor cursor)
530 {
531 if (52429 == 0)
532 {
533 }
534 bool ignoreForWorld = cursor.IgnoreForWorld;
535 if (!ignoreForWorld)
536 {
537 if (!ignoreForWorld)
538 {
539 }
540 bool gameMenu = Main.gameMenu;
541 if (cursor.InputLayer == null)
542 {
544 if (!true)
545 {
546 }
549 bool mapFullscreen = Main.mapFullscreen;
551 if (hardwareConfig != null)
552 {
563 {
564 }
567 slots2 = hardwareConfig.Slots;
568 }
569 if (slots2 == null)
570 {
571 }
572 if (slots2 == null)
573 {
574 }
575 return;
576 }
577 }
578 }
579
580 // Token: 0x06000AA3 RID: 2723 RVA: 0x000358F4 File Offset: 0x00033AF4
582 {
584 group.LoadPageAnchor();
585 float x = group.pageButtonRegionSize.X;
586 float y = group.pageButtonRegionSize.Y;
587 int size = group._options._size;
588 int size2 = group.SettingEntries._size;
590 bool flag = group.GetRegion().Contains(mousePoint);
591 group.LoadPageAnchor();
592 float x2 = group.pageButtonRegionSize.X;
593 float y2 = group.pageButtonRegionSize.Y;
594 int size3 = group._options._size;
595 int size4 = group.SettingEntries._size;
596 group.LoadPageAnchor();
610 int gameMode = Main.GameMode;
614 if (guipageIconGrouping != null)
615 {
617 while (guipageIconGrouping2 != null)
618 {
619 }
620 }
621 if (group.SelectedCategory == GUIPageIcons.Category.Crafting)
622 {
623 bool flag6;
624 return flag6;
625 }
626 GUIPageIcons.Category category;
627 return category.Collapsed;
628 }
629
630 // Token: 0x06000AA4 RID: 2724 RVA: 0x00035C30 File Offset: 0x00033E30
668
669 // Token: 0x06000AA5 RID: 2725 RVA: 0x00035E24 File Offset: 0x00034024
670 public void Draw()
671 {
672 bool gameMenu = Main.gameMenu;
673 bool mapFullscreen = Main.mapFullscreen;
674 bool gameMenu2 = Main.gameMenu;
676 this.DrawMapControls();
677 }
678
679 // Token: 0x06000AA6 RID: 2726 RVA: 0x00035EE8 File Offset: 0x000340E8
681 {
683 int num = 584;
685 if (num == 0)
686 {
687 }
688 int num2 = 600;
691 bool enabled = LockOnHelper.Enabled;
692 if (num2 == 0)
693 {
694 }
695 }
696
697 // Token: 0x06000AA7 RID: 2727 RVA: 0x00035F90 File Offset: 0x00034190
712
713 // Token: 0x06000AA8 RID: 2728 RVA: 0x0003633C File Offset: 0x0003453C
714 private void DrawMapControls()
715 {
716 }
717
718 // Token: 0x06000AA9 RID: 2729 RVA: 0x000363E8 File Offset: 0x000345E8
719 public void Show()
720 {
721 this.Shown = true;
722 }
723
724 // Token: 0x06000AAA RID: 2730 RVA: 0x000363FC File Offset: 0x000345FC
725 public void Hide()
726 {
727 }
728
729 // Token: 0x06000AAB RID: 2731 RVA: 0x0003640C File Offset: 0x0003460C
730 // Note: this type is marked as 'beforefieldinit'.
732 {
733 }
734
735 // Token: 0x04000A7B RID: 2683
737
738 // Token: 0x04000A7C RID: 2684
739 private static Texture2D _jump;
740
741 // Token: 0x04000A7D RID: 2685
742 public static Texture2D _movement;
743
744 // Token: 0x04000A7E RID: 2686
745 public static Texture2D _autoFireOff;
746
747 // Token: 0x04000A7F RID: 2687
748 public bool ControllerActive;
749
750 // Token: 0x04000A80 RID: 2688
752
753 // Token: 0x04000A81 RID: 2689
754 public float AutoControlTimer;
755
756 // Token: 0x04000A82 RID: 2690
758
759 // Token: 0x04000A83 RID: 2691
761
762 // Token: 0x04000A84 RID: 2692
764
765 // Token: 0x04000A85 RID: 2693
767
768 // Token: 0x04000A86 RID: 2694
770
771 // Token: 0x04000A87 RID: 2695
773
774 // Token: 0x04000A88 RID: 2696
776
777 // Token: 0x04000A89 RID: 2697
779
780 // Token: 0x04000A8A RID: 2698
781 public bool UseButtonPressed;
782
783 // Token: 0x04000A8B RID: 2699
784 public bool StashCraftedItems;
785
786 // Token: 0x04000A8C RID: 2700
788
789 // Token: 0x04000A8D RID: 2701
791
792 // Token: 0x04000A8E RID: 2702
794
795 // Token: 0x04000A8F RID: 2703
797
798 // Token: 0x04000A90 RID: 2704
800
801 // Token: 0x04000A91 RID: 2705
803
804 // Token: 0x04000A92 RID: 2706
806
807 // Token: 0x04000A93 RID: 2707
808 private const float numSteps = 1000f;
809
810 // Token: 0x04000A94 RID: 2708
811 private static Item emptyItem;
812
813 // Token: 0x04000A95 RID: 2709
814 private bool pulseLeft;
815
816 // Token: 0x04000A96 RID: 2710
817 private int pulseLeftTime;
818
819 // Token: 0x04000A97 RID: 2711
820 private bool pulseRight;
821
822 // Token: 0x04000A98 RID: 2712
823 private int pulseRightTime;
824
825 // Token: 0x04000A99 RID: 2713
826 private static int pulseTimer;
827
828 // Token: 0x04000A9A RID: 2714
829 private float cursorUpdateTime;
830
831 // Token: 0x04000A9B RID: 2715
832 private float LastOffsetX;
833
834 // Token: 0x04000A9C RID: 2716
835 private float LastOffsetY;
836
837 // Token: 0x04000A9D RID: 2717
838 private int LastFrameUpdate;
839
840 // Token: 0x04000A9E RID: 2718
841 private int LastSizeX;
842
843 // Token: 0x04000A9F RID: 2719
844 private int LastSizeY;
845
846 // Token: 0x04000AA0 RID: 2720
847 private float AimScale;
848
849 // Token: 0x04000AA1 RID: 2721
850 private float AimAxisActiveTime;
851
852 // Token: 0x04000AA2 RID: 2722
853 private float AimAxisStartX;
854
855 // Token: 0x04000AA3 RID: 2723
856 private float AimAxisStartY;
857
858 // Token: 0x04000AA4 RID: 2724
859 private float AimAxisTotalX;
860
861 // Token: 0x04000AA5 RID: 2725
862 private float AimAxisTotalY;
863
864 // Token: 0x04000AA6 RID: 2726
865 private bool AimAxisSnapStarted;
866
867 // Token: 0x04000AA7 RID: 2727
868 public bool LeftStickAiming;
869
870 // Token: 0x04000AA8 RID: 2728
872
873 // Token: 0x04000AA9 RID: 2729
875
876 // Token: 0x04000AAA RID: 2730
877 private int InitialAimNavTick;
878
879 // Token: 0x04000AAB RID: 2731
881
882 // Token: 0x04000AAC RID: 2732
884
885 // Token: 0x04000AAD RID: 2733
887
888 // Token: 0x04000AAE RID: 2734
890
891 // Token: 0x04000AAF RID: 2735
893
894 // Token: 0x04000AB0 RID: 2736
895 private bool lastGridAimMode;
896
897 // Token: 0x04000AB1 RID: 2737
898 private bool movingX;
899
900 // Token: 0x04000AB2 RID: 2738
901 private bool movingY;
902
903 // Token: 0x04000AB3 RID: 2739
904 private int movingOffsetX;
905
906 // Token: 0x04000AB4 RID: 2740
907 private int movingOffsetY;
908
909 // Token: 0x04000AB5 RID: 2741
911
912 // Token: 0x04000AB6 RID: 2742
914
915 // Token: 0x04000AB7 RID: 2743
917
918 // Token: 0x04000AB8 RID: 2744
920
921 // Token: 0x04000AB9 RID: 2745
922 private int LastScreenCentreX;
923
924 // Token: 0x04000ABA RID: 2746
925 private int LastScreenCentreY;
926
927 // Token: 0x04000ABB RID: 2747
928 private float deadZone;
929
930 // Token: 0x04000ABC RID: 2748
932
933 // Token: 0x04000ABD RID: 2749
935
936 // Token: 0x04000ABE RID: 2750
938
939 // Token: 0x04000ABF RID: 2751
941
942 // Token: 0x04000AC0 RID: 2752
944
945 // Token: 0x04000AC1 RID: 2753
946 public bool grappleAxisActive;
947
948 // Token: 0x04000AC2 RID: 2754
950
951 // Token: 0x04000AC3 RID: 2755
952 public bool grappleFired;
953
954 // Token: 0x04000AC4 RID: 2756
955 public bool fireAxisActive;
956
957 // Token: 0x04000AC5 RID: 2757
959
960 // Token: 0x04000AC6 RID: 2758
961 private bool fireAxisFiring;
962
963 // Token: 0x04000AC7 RID: 2759
964 public bool fireButtonFiring;
965
966 // Token: 0x04000AC8 RID: 2760
967 private bool fireFromHousing;
968
969 // Token: 0x04000AC9 RID: 2761
970 private bool anyActive;
971
972 // Token: 0x04000ACA RID: 2762
974
975 // Token: 0x04000ACB RID: 2763
977
978 // Token: 0x04000ACC RID: 2764
980
981 // Token: 0x04000ACD RID: 2765
983
984 // Token: 0x04000ACE RID: 2766
986
987 // Token: 0x04000ACF RID: 2767
989
990 // Token: 0x04000AD0 RID: 2768
992
993 // Token: 0x04000AD1 RID: 2769
994 private bool gridSnapUp;
995
996 // Token: 0x04000AD2 RID: 2770
997 private bool gridSnapDown;
998
999 // Token: 0x04000AD3 RID: 2771
1000 private bool gridSnapLeft;
1001
1002 // Token: 0x04000AD4 RID: 2772
1003 private bool gridSnapRight;
1004
1005 // Token: 0x04000AD5 RID: 2773
1007
1008 // Token: 0x04000AD6 RID: 2774
1010
1011 // Token: 0x04000AD7 RID: 2775
1013
1014 // Token: 0x04000AD8 RID: 2776
1016
1017 // Token: 0x04000AD9 RID: 2777
1019
1020 // Token: 0x04000ADA RID: 2778
1022
1023 // Token: 0x04000ADB RID: 2779
1025
1026 // Token: 0x04000ADC RID: 2780
1027 public bool[] Pressed;
1028
1029 // Token: 0x04000ADD RID: 2781
1030 public bool[] WasPressed;
1031
1032 // Token: 0x04000ADE RID: 2782
1033 public float[] Scale;
1034
1035 // Token: 0x04000ADF RID: 2783
1037
1038 // Token: 0x04000AE0 RID: 2784
1040
1041 // Token: 0x04000AE1 RID: 2785
1043
1044 // Token: 0x04000AE2 RID: 2786
1046
1047 // Token: 0x04000AE3 RID: 2787
1049
1050 // Token: 0x04000AE4 RID: 2788
1051 public bool InventoryToggle;
1052
1053 // Token: 0x04000AE5 RID: 2789
1054 private bool Shown;
1055
1056 // Token: 0x02000176 RID: 374
1058 {
1059 // Token: 0x04000AE7 RID: 2791
1060 DoubleTap,
1061 // Token: 0x04000AE8 RID: 2792
1062 SingleTap,
1063 // Token: 0x04000AE9 RID: 2793
1064 Up,
1065 // Token: 0x04000AEA RID: 2794
1066 Disabled
1067 }
1068
1069 // Token: 0x02000177 RID: 375
1070 public enum ControlType
1071 {
1072 // Token: 0x04000AEC RID: 2796
1073 Left,
1074 // Token: 0x04000AED RID: 2797
1075 Right,
1076 // Token: 0x04000AEE RID: 2798
1077 Jump,
1078 // Token: 0x04000AEF RID: 2799
1079 Up,
1080 // Token: 0x04000AF0 RID: 2800
1081 Down,
1082 // Token: 0x04000AF1 RID: 2801
1083 Inventory,
1084 // Token: 0x04000AF2 RID: 2802
1085 QuickHeal,
1086 // Token: 0x04000AF3 RID: 2803
1087 QuickMana,
1088 // Token: 0x04000AF4 RID: 2804
1089 QuickMount,
1090 // Token: 0x04000AF5 RID: 2805
1091 QuickBuff,
1092 // Token: 0x04000AF6 RID: 2806
1093 Grapple,
1094 // Token: 0x04000AF7 RID: 2807
1095 Fire,
1096 // Token: 0x04000AF8 RID: 2808
1098 // Token: 0x04000AF9 RID: 2809
1099 Interact,
1100 // Token: 0x04000AFA RID: 2810
1101 ZoomIn,
1102 // Token: 0x04000AFB RID: 2811
1103 ZoomOut,
1104 // Token: 0x04000AFC RID: 2812
1105 AutoFire,
1106 // Token: 0x04000AFD RID: 2813
1108 // Token: 0x04000AFE RID: 2814
1110 // Token: 0x04000AFF RID: 2815
1111 AutoSelect,
1112 // Token: 0x04000B00 RID: 2816
1114 // Token: 0x04000B01 RID: 2817
1116 // Token: 0x04000B02 RID: 2818
1118 // Token: 0x04000B03 RID: 2819
1119 UseButton,
1120 // Token: 0x04000B04 RID: 2820
1121 Settings,
1122 // Token: 0x04000B05 RID: 2821
1123 Loadout1,
1124 // Token: 0x04000B06 RID: 2822
1125 Loadout2,
1126 // Token: 0x04000B07 RID: 2823
1127 Loadout3,
1128 // Token: 0x04000B08 RID: 2824
1130 // Token: 0x04000B09 RID: 2825
1131 Count
1132 }
1133}
class f__AnonymousType0<< Count > j__TPar
List< GUIPageIconGrouping.SettingCategory > SettingEntries
GUIPageIcons.Category SelectedCategory
List< GUIPageIcons.Category > _options
static bool DrawRubbleModeUI
void HandleGridSnapCursorMovement(Item selectedItem, int screenCenterX, int screenCenterY, int tB, float MouseX, float MouseY)
GUIVirtualInputController.LeftStickJumpMode JumpMode
void UpdateMovementAxis(Vector2 rawAxis)
bool IsOverGroupRegion(GUIPageIconGrouping group, Point mousePoint)
static bool CanInteract(Player player, Item item)
Vector2 GetPressedControlPosition(VirtualControlsHardwareConfigurationMapping_Layout.ContolType controlType, [Out] VirtualControlsHardwareConfigurationMapping_Layout slotConfiguration)
void AddInteractBanner(Player player, Item item)
Vector2 FilterFireAxis(Vector2 fireAxis)
void HandleCursorGridSnap(bool tileBoostWholeScreen, int screenCenterX, int screenCenterY, int tB, float MouseX, float MouseY)
VirtualInputController_Layout.ContolType[] Controls
static void LoadContent(ContentManager content)
static InterfaceProfile_Layout Active
static bool ingameOptionsWindow
Definition Main.cs:811
static float screenYOffset
Definition Main.cs:1945
static bool SmartInteractShowingGenuine
Definition Main.cs:2965
static int myPlayer
Definition Main.cs:2337
static bool inFancyUI
Definition Main.cs:825
static Microsoft.Xna.Framework.Vector2 screenPosition
Definition Main.cs:1973
static int signHover
Definition Main.cs:3161
static int GameMode
Definition Main.cs:4141
static float GamepadCursorAlpha
Definition Main.cs:3707
static int worldMouseY
Definition Main.cs:629
static bool gameMenu
Definition Main.cs:2673
static bool mapFullscreen
Definition Main.cs:1441
static int worldMouseX
Definition Main.cs:615
static bool CanSwitchTrack(int i, int j)
Definition Minecart.cs:31
static int tileTargetY
Definition Player.cs:80
static int tileRangeX
Definition Player.cs:38
static int tileTargetX
Definition Player.cs:66
static int tileRangeY
Definition Player.cs:52
VirtualControlsHardwareConfigurationMapping_Layout.ContolType Action
VirtualControlsHardwareConfigurationMapping_Layout.ContolType DefaultControl
VirtualControlsBinding_Layout[] Controls
ushort type
Definition Tile.cs:58