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
GUIKeyboardMappings.cs
Go to the documentation of this file.
1using System;
4using Controller;
7using Terraria;
8using Terraria.IO;
10using UnityEngine;
11
12// Token: 0x0200018A RID: 394
14{
15 // Token: 0x1700011E RID: 286
16 // (get) Token: 0x06000B20 RID: 2848 RVA: 0x0003834C File Offset: 0x0003654C
17 // (set) Token: 0x06000B21 RID: 2849 RVA: 0x00038360 File Offset: 0x00036560
18 public bool KeyboardEnabled
19 {
20 get
21 {
22 return this._keyboardEnabled;
23 }
24 set
25 {
26 }
27 }
28
29 // Token: 0x06000B22 RID: 2850 RVA: 0x00038370 File Offset: 0x00036570
37
38 // Token: 0x06000B23 RID: 2851 RVA: 0x000021DB File Offset: 0x000003DB
40 {
41 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
42 }
43
44 // Token: 0x1700011F RID: 287
45 // (get) Token: 0x06000B24 RID: 2852 RVA: 0x0003839C File Offset: 0x0003659C
46 // (set) Token: 0x06000B25 RID: 2853 RVA: 0x000383B0 File Offset: 0x000365B0
48 {
49 get
50 {
51 return this._escapeOpensInventory;
52 }
53 set
54 {
56 }
57 }
58
59 // Token: 0x06000B26 RID: 2854 RVA: 0x000383CC File Offset: 0x000365CC
61 {
62 if (this._escapeOpensInventory)
63 {
65 int num = 1;
67 int num2 = 27;
69 return;
70 }
71 ControllerActionButton settings = this.Settings;
72 int num3 = 1;
74 int num4 = 27;
76 }
77
78 // Token: 0x06000B27 RID: 2855 RVA: 0x00038424 File Offset: 0x00036624
80 {
82 }
83
84 // Token: 0x06000B28 RID: 2856 RVA: 0x00038438 File Offset: 0x00036638
85 public void SetupMappings()
86 {
97 ControllerActionVector movementAxis = this.MovementAxis;
178 this.LoadDefaults();
180 }
181
182 // Token: 0x06000B29 RID: 2857 RVA: 0x000387B0 File Offset: 0x000369B0
183 private KeyCode LoadKeyCode(Preferences preferences, string id, bool loaded)
184 {
185 int num = 1;
186 loaded.m_value = num != 0;
187 if (num == 0)
188 {
189 }
190 throw new InvalidCastException();
191 }
192
193 // Token: 0x06000B2A RID: 2858 RVA: 0x000387DC File Offset: 0x000369DC
198
199 // Token: 0x06000B2B RID: 2859 RVA: 0x000021DB File Offset: 0x000003DB
201 {
202 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
203 }
204
205 // Token: 0x06000B2C RID: 2860 RVA: 0x000388D4 File Offset: 0x00036AD4
206 public void LoadDefaults()
207 {
251 }
252
253 // Token: 0x06000B2D RID: 2861 RVA: 0x00038BD0 File Offset: 0x00036DD0
268
269 // Token: 0x06000B2E RID: 2862 RVA: 0x00038C80 File Offset: 0x00036E80
270 public void Draw()
271 {
273 }
274
275 // Token: 0x06000B2F RID: 2863 RVA: 0x00038D10 File Offset: 0x00036F10
276 public void LooseFocus()
277 {
278 if (!this.hasFocus || this._categoriesBlocker != null)
279 {
280 }
281 }
282
283 // Token: 0x06000B30 RID: 2864 RVA: 0x00038D30 File Offset: 0x00036F30
284 private void GainFocus()
285 {
286 if (!this.hasFocus)
287 {
290 this.hasFocus = true;
291 }
292 }
293
294 // Token: 0x06000B31 RID: 2865 RVA: 0x00038D54 File Offset: 0x00036F54
296 {
297 if (this.Enabled && this.overlayEntry == null)
298 {
300 int bottom = rectangle.Bottom;
301 bool flag;
302 return flag;
303 }
304 }
305
306 // Token: 0x06000B32 RID: 2866 RVA: 0x00038D7C File Offset: 0x00036F7C
307 private void DrawCategories()
308 {
309 if (this._categoriesBlocker != null)
310 {
311 }
312 bool mouseLeft = Main.mouseLeft;
313 bool mouseLeftRelease = Main.mouseLeftRelease;
314 int num = 17096;
315 this.TimeSinceItemChange = (float)num;
318 if (this.overlayEntry == null)
319 {
323 int num2 = 5;
326 if (this.overlayEntry == null)
327 {
331 int num3 = 5;
334 }
335 }
339 {
341 }
345 {
347 }
351 {
353 }
357 {
359 }
363 {
365 }
367 float deltaTime = Time.deltaTime;
369 if (categoriesBlocker != null)
370 {
371 int num4 = 1;
373 }
374 }
375
376 // Token: 0x06000B33 RID: 2867 RVA: 0x00038EE0 File Offset: 0x000370E0
377 public void Close()
378 {
379 }
380
381 // Token: 0x06000B34 RID: 2868 RVA: 0x00038EF0 File Offset: 0x000370F0
382 public void Backup()
383 {
384 int size = this._allSettings._size;
385 int size2 = this._allSettings._size;
386 }
387
388 // Token: 0x06000B35 RID: 2869 RVA: 0x00038F18 File Offset: 0x00037118
389 public void RestoreBackup()
390 {
391 int size = this._allSettings._size;
392 int size2 = this._allSettings._size;
393 }
394
395 // Token: 0x06000B36 RID: 2870 RVA: 0x00038F40 File Offset: 0x00037140
396 private void DrawMainButtons()
397 {
398 bool mouseLeft = Main.mouseLeft;
399 bool mouseLeftRelease = Main.mouseLeftRelease;
404 {
406 if (guikeyboardMappingEntry2 != null)
407 {
408 goto IL_0054;
409 }
410 if (guikeyboardMappingEntry2 == null)
411 {
412 }
413 }
414 if (guikeyboardMappingEntry2 == null)
415 {
416 }
418 int num = 128;
419 int num2 = 1;
420 if (num == 0)
421 {
422 }
423 Main.mouseLeftRelease = false;
424 IL_0054:
425 if (num2 == 0)
426 {
427 }
429 int num3 = 1;
432 {
433 if (num3 == 0)
434 {
435 }
436 Main.mouseLeftRelease = false;
437 this.RestoreBackup();
438 }
439 if (guikeyboardMappingEntry3 == null)
440 {
441 }
443 int num4 = 1;
446 {
447 if (num4 == 0)
448 {
449 }
450 Main.mouseLeftRelease = false;
451 this.LoadDefaults();
452 }
453 if (this.overlayEntry == null)
454 {
458 int size = categorySettings._size;
459 int selectedItem = controllerInput._selectedItem;
460 if (size == 0)
461 {
462 }
463 }
464 }
465
466 // Token: 0x06000B37 RID: 2871 RVA: 0x00039028 File Offset: 0x00037228
467 private void ClearMapping()
468 {
470 if (guikeyboardMappingEntry != null)
471 {
473 return;
474 }
478 int size = categorySettings._size;
479 int selectedItem = controllerInput._selectedItem;
480 while (categorySettings != null)
481 {
482 }
483 }
484
485 // Token: 0x06000B38 RID: 2872 RVA: 0x00039070 File Offset: 0x00037270
486 private void DrawTitle()
487 {
488 string textValue = Language.GetTextValue("GameUI.KeyboardMappingsMenu");
490 }
491
492 // Token: 0x06000B39 RID: 2873 RVA: 0x000390C0 File Offset: 0x000372C0
493 private void DrawBacking()
494 {
495 }
496
497 // Token: 0x06000B3A RID: 2874 RVA: 0x000390D0 File Offset: 0x000372D0
498 private void DrawCategoryOptions()
499 {
500 int size = this._categorySettings._size;
501 int num = this.disableScroll;
502 if ("QuickBuff" == null)
503 {
504 }
505 }
506
507 // Token: 0x06000B3B RID: 2875 RVA: 0x000021DB File Offset: 0x000003DB
508 private float SettingScale(int index)
509 {
510 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
511 }
512
513 // Token: 0x06000B3C RID: 2876 RVA: 0x000390F8 File Offset: 0x000372F8
514 private void SettingOver(int index)
515 {
516 }
517
518 // Token: 0x06000B3D RID: 2877 RVA: 0x00039108 File Offset: 0x00037308
524
525 // Token: 0x06000B3E RID: 2878 RVA: 0x00039124 File Offset: 0x00037324
527 {
528 /*
529An exception occurred when decompiling this method (06000B3E)
530
531ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Vector2 GUIKeyboardMappings::SettingSize(System.Int32)
532
533 ---> System.Exception: Basic block has to end with unconditional control flow.
534{
535 Block_0:
536 stloc:class [mscorlib]System.Collections.Generic.List`1<class GUIKeyboardMappingEntry>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.List`1<class GUIKeyboardMappingEntry>(GUIKeyboardMappings::_categorySettings, ldloc:GUIKeyboardMappings(this)))
537}
538
539 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
540 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
541 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
542 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
543 --- End of inner exception stack trace ---
544 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
545 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
546*/;
547 }
548
549 // Token: 0x06000B3F RID: 2879 RVA: 0x000021DB File Offset: 0x000003DB
551 {
552 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
553 }
554
555 // Token: 0x06000B40 RID: 2880 RVA: 0x00039138 File Offset: 0x00037338
557 {
558 string text;
559 return text;
560 }
561
562 // Token: 0x06000B41 RID: 2881 RVA: 0x00039148 File Offset: 0x00037348
564 {
565 }
566
567 // Token: 0x04000BA5 RID: 2981
568 private bool _keyboardEnabled;
569
570 // Token: 0x04000BA6 RID: 2982
572
573 // Token: 0x04000BA7 RID: 2983
575
576 // Token: 0x04000BA8 RID: 2984
578
579 // Token: 0x04000BA9 RID: 2985
580 public bool Enabled;
581
582 // Token: 0x04000BAA RID: 2986
583 public bool performingBinding;
584
585 // Token: 0x04000BAB RID: 2987
586 private int disableScroll;
587
588 // Token: 0x04000BAC RID: 2988
590
591 // Token: 0x04000BAD RID: 2989
593
594 // Token: 0x04000BAE RID: 2990
596
597 // Token: 0x04000BAF RID: 2991
599
600 // Token: 0x04000BB0 RID: 2992
602
603 // Token: 0x04000BB1 RID: 2993
605
606 // Token: 0x04000BB2 RID: 2994
608
609 // Token: 0x04000BB3 RID: 2995
611
612 // Token: 0x04000BB4 RID: 2996
614
615 // Token: 0x04000BB5 RID: 2997
617
618 // Token: 0x04000BB6 RID: 2998
620
621 // Token: 0x04000BB7 RID: 2999
623
624 // Token: 0x04000BB8 RID: 3000
626
627 // Token: 0x04000BB9 RID: 3001
629
630 // Token: 0x04000BBA RID: 3002
632
633 // Token: 0x04000BBB RID: 3003
635
636 // Token: 0x04000BBC RID: 3004
638
639 // Token: 0x04000BBD RID: 3005
641
642 // Token: 0x04000BBE RID: 3006
644
645 // Token: 0x04000BBF RID: 3007
647
648 // Token: 0x04000BC0 RID: 3008
650
651 // Token: 0x04000BC1 RID: 3009
653
654 // Token: 0x04000BC2 RID: 3010
656
657 // Token: 0x04000BC3 RID: 3011
659
660 // Token: 0x04000BC4 RID: 3012
662
663 // Token: 0x04000BC5 RID: 3013
665
666 // Token: 0x04000BC6 RID: 3014
668
669 // Token: 0x04000BC7 RID: 3015
671
672 // Token: 0x04000BC8 RID: 3016
674
675 // Token: 0x04000BC9 RID: 3017
677
678 // Token: 0x04000BCA RID: 3018
680
681 // Token: 0x04000BCB RID: 3019
683
684 // Token: 0x04000BCC RID: 3020
686
687 // Token: 0x04000BCD RID: 3021
689
690 // Token: 0x04000BCE RID: 3022
692
693 // Token: 0x04000BCF RID: 3023
695
696 // Token: 0x04000BD0 RID: 3024
698
699 // Token: 0x04000BD1 RID: 3025
701
702 // Token: 0x04000BD2 RID: 3026
704
705 // Token: 0x04000BD3 RID: 3027
707
708 // Token: 0x04000BD4 RID: 3028
710
711 // Token: 0x04000BD5 RID: 3029
713
714 // Token: 0x04000BD6 RID: 3030
716
717 // Token: 0x04000BD7 RID: 3031
718 private bool _escapeOpensInventory = true;
719
720 // Token: 0x04000BD8 RID: 3032
721 private float TimeSinceItemChange;
722
723 // Token: 0x04000BD9 RID: 3033
725
726 // Token: 0x04000BDA RID: 3034
728
729 // Token: 0x04000BDB RID: 3035
730 private float GameplayButtonScale;
731
732 // Token: 0x04000BDC RID: 3036
733 private float UIButtonScale;
734
735 // Token: 0x04000BDD RID: 3037
737
738 // Token: 0x04000BDE RID: 3038
740
741 // Token: 0x04000BDF RID: 3039
742 private float titleScale;
743
744 // Token: 0x04000BE0 RID: 3040
745 public float ScrollOffset;
746
747 // Token: 0x04000BE1 RID: 3041
748 private float ScrollMomentum;
749
750 // Token: 0x04000BE2 RID: 3042
751 private int ScrollDragging;
752
753 // Token: 0x04000BE3 RID: 3043
755
756 // Token: 0x04000BE4 RID: 3044
758
759 // Token: 0x04000BE5 RID: 3045
761
762 // Token: 0x04000BE6 RID: 3046
763 private bool hasFocus;
764
765 // Token: 0x04000BE7 RID: 3047
767
768 // Token: 0x0200018B RID: 395
770 [Serializable]
771 private sealed class <>c
772 {
773 // Token: 0x06000B42 RID: 2882 RVA: 0x0003916C File Offset: 0x0003736C
774 // Note: this type is marked as 'beforefieldinit'.
775 static <>c()
776 {
777 }
778
779 // Token: 0x06000B43 RID: 2883 RVA: 0x0003917C File Offset: 0x0003737C
780 public <>c()
781 {
782 }
783
784 // Token: 0x06000B44 RID: 2884 RVA: 0x00039190 File Offset: 0x00037390
786 {
787 int sortOrder = e2.SortOrder;
788 int num;
789 return num;
790 }
791
792 // Token: 0x04000BE8 RID: 3048
793 public static readonly GUIKeyboardMappings.<>c <>9;
794
795 // Token: 0x04000BE9 RID: 3049
797 }
798}
class f__AnonymousType0<< Count > j__TPar
ControllerActionAxis.Entry FirstEntry
ControllerActionButton.Entry GetEntry(int index)
ControllerActionButton.Entry FirstEntry
void SettingDraw(ItemGrid_Layout gridLayout, int index, Microsoft.Xna.Framework.Vector2 position, float scale)
GUIKeyboardMappingOverlay _controllerInput
ControllerActionButton Interact
ControllerActionButton Hotbar5
ControllerActionButton Hotbar8
ControllerActionButton AutoSelect
ControllerActionVector MovementAxis
ControllerActionButton MapZoomOut
ControllerActionButton MapToggle
KeyboardMappingsCategories_Layout.Category[] TabOrder
ControllerActionButton ZoomOut
ControllerActionButton Loadout3
GUIInputRegionExclusive _categoriesBlocker
ControllerActionButton MiniMapToggle
static string GetControlTag(ControlsKeyboardTagHandler.MappingType mappingType)
List< ControllerActionButton > AllButtonMappings
ControllerActionButton QuickMana
ControllerActionButton Hotbar4
bool IsOverCategories(Microsoft.Xna.Framework.Vector2 cursorPosition)
ControllerActionButton MapZoomDefault
ControllerActionButton ZoomIn
ControllerActionButton ChatToggle
ControllerActionButton LoadoutCycle
ControllerActionButton InventoryToggle
ControllerActionButton Loadout2
ControllerActionButton HotbarNext
void ClearBinding(KeyCode key)
ControllerActionButton QuickBuff
ControllerActionButton Hotbar2
Microsoft.Xna.Framework.Vector2 DragOffset
ControllerActionButton MapZoomIn
ControllerActionAxis MovementAxisY
void SetCategory(KeyboardMappingsCategories_Layout.Category category)
Microsoft.Xna.Framework.Vector2 SettingSize(int index)
ControllerActionButton Loadout1
ControllerActionButton HotbarPrevious
ControllerActionButton Jump
void LoadConfiguration(Preferences preferences)
ControllerActionButton QuickHeal
ControllerActionButton GrappleFire
void RegisterOverlay(GUIKeyboardMappingEntry entry, Rectangle region)
float SettingScale(int index)
ControllerActionButton RightPageCycle
ControllerActionButton TargetLockOn
GUIKeyboardMappingEntry overlayEntry
ControllerActionButton Settings
ControllerActionButton LeftPageCycle
ControllerActionButton Fire
ControllerActionButton QuickMount
ControllerActionButton CreateButtonMapping(string id)
void SettingOver(int index)
ControllerActionButton SmartCursor
ControllerActionButton Hotbar3
ControllerActionButton Hotbar9
void SaveConfiguration(Preferences preferences)
ControllerActionAxis MovementAxisX
KeyCode LoadKeyCode(Preferences preferences, string id, bool loaded)
List< GUIKeyboardMappingEntry > _allSettings
ControllerActionButton Hotbar7
List< GUIKeyboardMappingEntry > _categorySettings
ControllerActionButton Hotbar1
ControllerActionButton Hotbar10
KeyboardMappingsCategories_Layout.Category Selected
ControllerActionButton Hotbar6
static string GetTextValue(string key)
Definition Language.cs:54
static bool mouseLeftRelease
Definition Main.cs:2029
static bool mouseLeft
Definition Main.cs:671
static float deltaTime
Definition Time.cs:14