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
GUIVirtualInputControllerEdit.cs
Go to the documentation of this file.
1using System;
8using Terraria;
10using UnityEngine;
11
12// Token: 0x02000282 RID: 642
14{
15 // Token: 0x06000E93 RID: 3731 RVA: 0x000475F0 File Offset: 0x000457F0
20
21 // Token: 0x06000E94 RID: 3732 RVA: 0x00047610 File Offset: 0x00045810
22 public void DrawBacking()
23 {
24 if (!true)
25 {
26 }
27 int screenWidth = XNAUnityRunner.ScreenWidth;
28 int screenHeight = XNAUnityRunner.ScreenHeight;
29 if (!true)
30 {
31 }
32 }
33
34 // Token: 0x06000E95 RID: 3733 RVA: 0x000021DB File Offset: 0x000003DB
39
40 // Token: 0x06000E96 RID: 3734 RVA: 0x0004763C File Offset: 0x0004583C
44
45 // Token: 0x06000E97 RID: 3735 RVA: 0x0004764C File Offset: 0x0004584C
47 {
48 return true;
49 }
50
51 // Token: 0x06000E98 RID: 3736 RVA: 0x0004765C File Offset: 0x0004585C
52 public void CloseNameEdit()
53 {
54 if (!true)
55 {
56 }
58 }
59
60 // Token: 0x06000E99 RID: 3737 RVA: 0x00047674 File Offset: 0x00045874
65
66 // Token: 0x06000E9A RID: 3738 RVA: 0x00047688 File Offset: 0x00045888
67 private void DrawProfile()
68 {
69 bool mouseLeft = Main.mouseLeft;
70 bool mouseLeftRelease = Main.mouseLeftRelease;
71 bool flag = this.editingName;
72 if (flag)
73 {
76 this.CloseNameEdit();
77 }
78 if (this.SlotOrder == null)
79 {
80 }
81 int selectedControl = this.SelectedControl;
84 {
85 int num = 1;
86 this.editingName = num != 0;
87 if (num == 0)
88 {
89 }
90 Main.clrInput();
94 }
95 bool flag2 = this.editingName;
96 if (!flag2)
97 {
98 bool flag3 = this.displayProfileOptions;
101 {
102 int num2 = 1;
103 bool flag4 = this.displayProfileOptions;
104 if (flag4)
105 {
106 this.CloseProfileOptions();
107 return;
108 }
109 this.displayProfileOptions = num2 != 0;
110 if (!flag4)
111 {
112 }
116 }
118 bool flag5 = this.displayProfileOptions;
119 if (optionsBlocker != null)
120 {
121 if (flag5)
122 {
123 return;
124 }
125 }
126 else if (flag5)
127 {
128 if (optionsBlocker == null)
129 {
130 }
132 if (this.displayProfileOptions)
133 {
136 {
138 }
141 {
143 }
146 {
148 }
151 {
153 if (optionsBlocker5 != null)
154 {
155 int num3 = 1;
157 if (optionsBlocker5 == null)
158 {
159 }
161 if (optionsBlocker5 == null)
162 {
163 }
165 return;
166 }
167 }
168 else
169 {
171 }
172 }
173 }
174 return;
175 }
176 string text = this.editNameValue;
177 long num4 = 0L;
178 if (!flag2)
179 {
180 }
181 int num5 = 20;
182 long num6 = 0L;
183 long num7 = 0L;
184 long num8 = 0L;
186 string inputText = Main.GetInputText(text, rectangle, (int)num4, num5 != 0, num6 != 0L, num7 != 0L, num8 != 0L);
187 this.editNameValue = inputText;
188 int stringLength = inputText._stringLength;
189 int num9 = 20;
190 long num10 = 0L;
191 string text2 = inputText.Substring((int)num10, num9);
192 this.editNameValue = text2;
193 if (stringLength == 0)
194 {
195 }
196 if (flag)
197 {
198 return;
199 }
200 if (!flag)
201 {
202 }
203 string text3 = this.editNameValue;
206 int num11 = this.textBlinkerCount;
208 int num12 = this.textBlinkerState;
210 string text4 = this.editNameValue;
211 bool flag6 = string.IsNullOrEmpty(text4);
213 Microsoft.Xna.Framework.Vector2 vector = spriteFont.MeasureString(text4);
214 long num13 = 0L;
215 string text5 = "..." + text4;
218 int stringLength2 = text4._stringLength;
219 int num14 = 1;
220 string text6 = text4.Substring(num14, (int)num13);
221 }
222
223 // Token: 0x06000E9B RID: 3739 RVA: 0x0004791C File Offset: 0x00045B1C
224 private string TruncateString(TransactionButton_Layout button, string text, float maxWidth)
225 {
227 String_Layout label = button.Label;
228 float scale = label.Scale;
229 SpriteFont font = label.GetFont();
230 string text2 = text + "...";
231 long num = 0L;
233 float scale2 = button.Label.Scale;
234 int stringLength = text._stringLength;
235 long num2 = 0L;
236 string text3 = text.Substring((int)num2, (int)num);
237 String_Layout label2 = button.Label;
238 return text3;
239 }
240
241 // Token: 0x06000E9C RID: 3740 RVA: 0x000479A8 File Offset: 0x00045BA8
246
247 // Token: 0x06000E9D RID: 3741 RVA: 0x000479BC File Offset: 0x00045BBC
248 private void DrawPageOptions()
249 {
250 if (this.displayPageOptions)
251 {
252 }
254 bool flag;
255 if (optionsBlocker != null)
256 {
257 flag = this.displayPageOptions;
258 if (flag)
259 {
260 }
261 }
262 if (optionsBlocker == null)
263 {
264 }
265 bool mouseLeft = Main.mouseLeft;
266 if (optionsBlocker == null)
267 {
268 }
269 bool mouseLeftRelease = Main.mouseLeftRelease;
270 if (flag)
271 {
272 return;
273 }
275 int width = texture2D.Width;
276 bool flag2 = this.displayPageOptions;
279 {
280 int num;
281 if (this.displayPageOptions)
282 {
283 this.ClosePageOptions();
284 num = 1;
285 return;
286 }
287 this.displayPageOptions = num != 0;
290 }
291 bool flag3 = this.displayPageOptions;
292 if (flag3)
293 {
294 int width2 = texture2D.Width;
295 if (!flag3)
296 {
297 }
300 {
302 }
305 {
307 }
309 if (optionsBlocker4 != null)
310 {
311 int num2 = 1;
313 if (optionsBlocker4 == null)
314 {
315 }
317 if (optionsBlocker4 == null)
318 {
319 }
322 }
323 }
324 }
325
326 // Token: 0x06000E9E RID: 3742 RVA: 0x00047AB8 File Offset: 0x00045CB8
327 public void DisablePulldown()
328 {
330 }
331
332 // Token: 0x06000E9F RID: 3743 RVA: 0x00047AD4 File Offset: 0x00045CD4
333 private void DrawHardware()
334 {
335 if (this.displayHardwareOptions)
336 {
337 }
339 bool flag;
340 if (optionsBlocker != null)
341 {
342 flag = this.displayHardwareOptions;
343 if (flag)
344 {
345 }
346 }
347 bool mouseLeft = Main.mouseLeft;
348 if (optionsBlocker == null)
349 {
350 }
351 bool mouseLeftRelease = Main.mouseLeftRelease;
354 bool flag2 = this.displayHardwareOptions;
357 {
358 int num = 1;
359 if (this.displayHardwareOptions)
360 {
362 return;
363 }
368 }
369 string textValue = Language.GetTextValue("Mobile.ControlsHardwareTitle");
370 if (!flag)
371 {
372 }
373 if (this.displayHardwareOptions)
374 {
381 {
386 }
393 {
398 }
405 {
409 }
414 {
416 if (optionsBlocker5 != null)
417 {
418 int num2 = 1;
420 if (optionsBlocker5 == null)
421 {
422 }
424 if (optionsBlocker5 == null)
425 {
426 }
428 return;
429 }
430 }
431 else
432 {
434 }
435 }
436 }
437
438 // Token: 0x06000EA0 RID: 3744 RVA: 0x000021DB File Offset: 0x000003DB
439 private void UpdateStyleOptions()
440 {
441 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
442 }
443
444 // Token: 0x06000EA1 RID: 3745 RVA: 0x00047C64 File Offset: 0x00045E64
451
452 // Token: 0x06000EA2 RID: 3746 RVA: 0x00047C98 File Offset: 0x00045E98
453 private void DrawUndoRedo()
454 {
457 {
458 }
461 {
462 return;
463 }
464 }
465
466 // Token: 0x06000EA3 RID: 3747 RVA: 0x00047CB4 File Offset: 0x00045EB4
467 public void DrawWidgets()
468 {
469 this.DrawUndoRedo();
470 if (!this.displayProfileOptions)
471 {
473 this.DrawProfile();
474 }
475 if (this.displayPageOptions)
476 {
477 return;
478 }
480 this.DrawPageOptions();
481 }
482
483 // Token: 0x06000EA4 RID: 3748 RVA: 0x00047CF4 File Offset: 0x00045EF4
484 public void DrawWidgetOverlays()
485 {
486 if (!true)
487 {
488 }
490 {
491 this.DrawProfile();
492 }
493 if (this.displayPageOptions && !this.drawnPageOptions)
494 {
495 this.DrawPageOptions();
496 }
497 }
498
499 // Token: 0x06000EA5 RID: 3749 RVA: 0x00047D30 File Offset: 0x00045F30
501 {
502 /*
503An exception occurred when decompiling this method (06000EA5)
504
505ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 GUIVirtualInputControllerEdit::GetSlotOver(Microsoft.Xna.Framework.Vector2,Microsoft.Xna.Framework.Vector2)
506
507 ---> System.Exception: Basic block has to end with unconditional control flow.
508{
509 IL_00A6:
510 stloc:class VirtualControlsHardwareConfigurationMapping_Layout[](var_20_AC, ldfld:class VirtualControlsHardwareConfigurationMapping_Layout[](VirtualControlsHardwareConfiguration_Layout::Slots, ldloc:VirtualControlsHardwareConfiguration_Layout(var_1_0C)))
511}
512
513 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
514 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
515 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
516 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
517 --- End of inner exception stack trace ---
518 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
519 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
520*/;
521 }
522
523 // Token: 0x06000EA6 RID: 3750 RVA: 0x00047DEC File Offset: 0x00045FEC
524 public void UpdateCursor(global::Cursor cursor)
525 {
527 if (inputLayer == null)
528 {
529 float x = cursor.Position.x;
530 float y = cursor.Position.y;
531 if (inputLayer == null)
532 {
533 }
534 int num = 32640;
535 if (cursor.Down && num == 0)
536 {
538 int size = active.LeftGroupings._size;
539 int num2 = 1;
541 bool flag = rectangle.Contains(-1073741824, 1073741824);
548 int size2 = active.LeftGroupings._size;
551 int size3 = active.LeftGroupings._size;
552 int size4 = active.RightGroupings._size;
553 int num3 = 1;
555 bool flag2 = rectangle2.Contains(-1073741824, 1073741824);
562 int size5 = active.RightGroupings._size;
565 int size6 = active.RightGroupings._size;
566 return;
567 }
568 }
569 }
570
571 // Token: 0x06000EA7 RID: 3751 RVA: 0x000021DB File Offset: 0x000003DB
572 public void RefreshSlotOrder()
573 {
574 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
575 }
576
577 // Token: 0x06000EA8 RID: 3752 RVA: 0x000021DB File Offset: 0x000003DB
578 public float ControlsItemScale(int index)
579 {
580 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
581 }
582
583 // Token: 0x06000EA9 RID: 3753 RVA: 0x00048084 File Offset: 0x00046284
593
594 // Token: 0x06000EAA RID: 3754 RVA: 0x00048110 File Offset: 0x00046310
618
619 // Token: 0x06000EAB RID: 3755 RVA: 0x00048200 File Offset: 0x00046400
623
624 // Token: 0x06000EAC RID: 3756 RVA: 0x00048210 File Offset: 0x00046410
628
629 // Token: 0x06000EAD RID: 3757 RVA: 0x0004824C File Offset: 0x0004644C
631 {
632 return Language.GetTextValue("ControllerMappings.AutoFire");
633 }
634
635 // Token: 0x06000EAE RID: 3758 RVA: 0x00048264 File Offset: 0x00046464
657
658 // Token: 0x06000EAF RID: 3759 RVA: 0x00048354 File Offset: 0x00046554
659 public void DrawControlsGrid()
660 {
661 if (!this.displayVCControls)
662 {
663 int size = this.SlotOrder._size;
664 int selectedControl = this.SelectedControl;
668 if (!pendingUIControlDrag)
669 {
671 {
672 }
673 bool mouseLeft = Main.mouseLeft;
675 {
676 }
677 bool mouseLeftRelease = Main.mouseLeftRelease;
678 this.UIControlDrag = true;
679 if (!true)
680 {
681 }
682 int mouseX = Main.mouseX;
683 int mouseY = Main.mouseY;
686 }
688 float deltaTime = Time.deltaTime;
690 }
691 }
692
693 // Token: 0x06000EB0 RID: 3760 RVA: 0x000483FC File Offset: 0x000465FC
709
710 // Token: 0x06000EB1 RID: 3761 RVA: 0x00048434 File Offset: 0x00046634
712 {
715 string text2;
716 string text = "S" + text2;
717 string text4;
718 string text3 = "S" + text4;
719 throw new ArrayTypeMismatchException();
720 }
721
722 // Token: 0x06000EB2 RID: 3762 RVA: 0x000021DB File Offset: 0x000003DB
723 public void DrawSlotsGrid()
724 {
725 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
726 }
727
728 // Token: 0x06000EB3 RID: 3763 RVA: 0x00048478 File Offset: 0x00046678
730 {
731 bool flag = this.displayVCControls;
734 {
735 }
736 bool flag2 = this.displayVCControls;
739 {
740 int num = 1;
741 this.displayVCControls = num != 0;
742 }
743 }
744
745 // Token: 0x06000EB4 RID: 3764 RVA: 0x000484B0 File Offset: 0x000466B0
749
750 // Token: 0x06000EB5 RID: 3765 RVA: 0x000484CC File Offset: 0x000466CC
755
756 // Token: 0x06000EB6 RID: 3766 RVA: 0x000484E8 File Offset: 0x000466E8
758 {
759 if (!true)
760 {
761 }
764 if (!true)
765 {
766 }
767 }
768
769 // Token: 0x06000EB7 RID: 3767 RVA: 0x000021DB File Offset: 0x000003DB
770 public void Draw()
771 {
772 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
773 }
774
775 // Token: 0x06000EB8 RID: 3768 RVA: 0x000021DB File Offset: 0x000003DB
776 public float ItemScale(int index)
777 {
778 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
779 }
780
781 // Token: 0x06000EB9 RID: 3769 RVA: 0x00048518 File Offset: 0x00046718
782 public void ItemOver(int index)
783 {
784 }
785
786 // Token: 0x06000EBA RID: 3770 RVA: 0x00048528 File Offset: 0x00046728
787 public void ItemDraw(ItemGrid_Layout gridLayout, int slot, Microsoft.Xna.Framework.Vector2 position, float scale)
788 {
789 }
790
791 // Token: 0x06000EBB RID: 3771 RVA: 0x00048538 File Offset: 0x00046738
793 {
794 }
795
796 // Token: 0x06000EBC RID: 3772 RVA: 0x00048548 File Offset: 0x00046748
800
801 // Token: 0x06000EBD RID: 3773 RVA: 0x0004864C File Offset: 0x0004684C
802 public void ClampControls(bool editingControls = true)
803 {
804 }
805
806 // Token: 0x06000EBE RID: 3774 RVA: 0x0004865C File Offset: 0x0004685C
807 private void DrawInterfaceBacking()
808 {
809 if (!true)
810 {
811 }
812 }
813
814 // Token: 0x06000EBF RID: 3775 RVA: 0x00048718 File Offset: 0x00046918
815 private global::Cursor GetCursor(GUIPageIconGrouping grouping)
816 {
817 /*
818An exception occurred when decompiling this method (06000EBF)
819
820ICSharpCode.Decompiler.DecompilerException: Error decompiling Cursor GUIVirtualInputControllerEdit::GetCursor(GUIPageIconGrouping)
821
822 ---> System.Exception: Basic block has to end with unconditional control flow.
823{
824 Block_0:
825 stloc:CursorInputLayer(var_3_08, ldfld:CursorInputLayer(Cursor::InputLayer, ldloc:Cursor(var_2)))
826 stloc:CursorInputLayer(var_4_0F, ldfld:CursorInputLayer(GUIVirtualInputControllerEdit::_inputLayer, ldloc:GUIVirtualInputControllerEdit(this)))
827 stloc:object(var_5_17, ldfld:object(Cursor::InputLayerData, ldloc:Cursor(var_2)))
828}
829
830 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
831 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
832 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
833 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
834 --- End of inner exception stack trace ---
835 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
836 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
837*/;
838 }
839
840 // Token: 0x06000EC0 RID: 3776 RVA: 0x00048740 File Offset: 0x00046940
852
853 // Token: 0x06000EC1 RID: 3777 RVA: 0x000488B0 File Offset: 0x00046AB0
861
862 // Token: 0x06000EC2 RID: 3778 RVA: 0x000488E8 File Offset: 0x00046AE8
864 {
865 int num = 1;
866 if (num == 0)
867 {
868 }
872 if (num == 0)
873 {
874 }
875 float y = this.selectedGrouping.Location.Y;
876 float y2 = this.selectedGrouping.Location.Y;
877 int right = this.selectedGrouping.GetRegion().Right;
878 if (this.selectedGrouping == null)
879 {
880 }
888 if (guipageIconGrouping == null)
889 {
890 }
893 float x2 = guipageIconGrouping2.Location.X;
895 return guipageIconGrouping2.GetRegion();
896 }
897
898 // Token: 0x06000EC3 RID: 3779 RVA: 0x000021DB File Offset: 0x000003DB
900 {
901 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
902 }
903
904 // Token: 0x06000EC4 RID: 3780 RVA: 0x000021DB File Offset: 0x000003DB
905 public float PageItemScale(int index)
906 {
907 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
908 }
909
910 // Token: 0x06000EC5 RID: 3781 RVA: 0x000489E4 File Offset: 0x00046BE4
911 public void PageItemOver(int index)
912 {
913 }
914
915 // Token: 0x06000EC6 RID: 3782 RVA: 0x000489F4 File Offset: 0x00046BF4
917 {
918 /*
919An exception occurred when decompiling this method (06000EC6)
920
921ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean GUIVirtualInputControllerEdit::IsAxisInBadPosition(Axis_Layout,Microsoft.Xna.Framework.Vector2)
922
923 ---> System.Exception: Basic block has to end with unconditional control flow.
924{
925 Block_0:
926 stloc:Texture_Layout(var_0_06, ldfld:Texture_Layout(Axis_Layout::Backing, ldloc:Axis_Layout(AxisLayout)))
927 stloc:float32(var_1_0D, ldfld:float32(Axis_Layout::Scale, ldloc:Axis_Layout(AxisLayout)))
928 stloc:Vector2(var_2_19, call:Vector2(Utils::Size, callgetter:Texture2D(Texture_Layout::get_Texture, ldloc:Texture_Layout(var_0_06))))
929 stloc:float32(var_7_25, ldfld:float32(Vector2::X, ldloc:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](mousePosition)))
930 stloc:float32(var_8_2D, ldfld:float32(Vector2::Y, ldloc:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](mousePosition)))
931 stloc:float32(var_16_3E, ldfld:float32(Vector2::Y, ldloc:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](mousePosition)))
932 stfld:float32(Vector2::Y, ldloc:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](mousePosition), ldloc:float32(var_16_3E))
933 stloc:float32(var_18_51, ldfld:float32(Vector2::Y, ldloc:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](mousePosition)))
934 stfld:float32(Vector2::Y, ldloc:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](mousePosition), ldloc:float32(var_16_3E))
935}
936
937 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
938 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
939 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
940 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
941 --- End of inner exception stack trace ---
942 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
943 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
944*/;
945 }
946
947 // Token: 0x06000EC7 RID: 3783 RVA: 0x00048A5C File Offset: 0x00046C5C
948 public void CancelDrag()
949 {
950 int num = 1;
951 this.SelectedSlot = num;
954 global::Cursor cursor;
957 }
958
959 // Token: 0x06000EC8 RID: 3784 RVA: 0x00048A94 File Offset: 0x00046C94
961 {
962 /*
963An exception occurred when decompiling this method (06000EC8)
964
965ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean GUIVirtualInputControllerEdit::IsButtonInBadPosition(QuickActionButton_Layout,Microsoft.Xna.Framework.Vector2)
966
967 ---> System.Exception: Basic block has to end with unconditional control flow.
968{
969 IL_003C:
970 stfld:float32(Vector2::X, ldloc:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](mousePosition), ldloc:int32[exp:float32](var_6_2F))
971 stfld:float32(Vector2::X, ldloc:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](mousePosition), ldloc:int32[exp:float32](var_6_2F))
972 stloc:float32(var_19_61, ldfld:float32(Vector2::Y, ldloc:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](mousePosition)))
973 stfld:float32(Vector2::Y, ldloc:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](mousePosition), ldloc:float32(var_19_61))
974 stloc:float32(var_21_74, ldfld:float32(Vector2::Y, ldloc:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](mousePosition)))
975 stfld:float32(Vector2::Y, ldloc:Vector2[exp:valuetype Microsoft.Xna.Framework.Vector2&](mousePosition), ldloc:float32(var_19_61))
976}
977
978 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
979 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
980 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
981 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
982 --- End of inner exception stack trace ---
983 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
984 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
985*/;
986 }
987
988 // Token: 0x06000EC9 RID: 3785 RVA: 0x00048B20 File Offset: 0x00046D20
990 {
995 if (hardwareConfig.Slots == null)
996 {
997 }
998 if (controls != null)
999 {
1000 }
1001 bool flag;
1002 return flag;
1003 }
1004
1005 // Token: 0x06000ECA RID: 3786 RVA: 0x00048B54 File Offset: 0x00046D54
1006 private void DrawControls()
1007 {
1010 if (hardwareConfig == null)
1011 {
1012 return;
1013 }
1014 float[] drawScales = this.DrawScales;
1016 if (drawScales != null)
1017 {
1019 return;
1020 }
1026 int selectedSlot;
1027 if (this.DraggingSelectedSlot)
1028 {
1029 selectedSlot = this.SelectedSlot;
1030 return;
1031 }
1032 if (selectedSlot == 0)
1033 {
1034 }
1035 if (this.SelectedSlot == 0)
1036 {
1037 }
1038 }
1039
1040 // Token: 0x04001A83 RID: 6787
1042
1043 // Token: 0x04001A84 RID: 6788
1045
1046 // Token: 0x04001A85 RID: 6789
1048
1049 // Token: 0x04001A86 RID: 6790
1051
1052 // Token: 0x04001A87 RID: 6791
1054
1055 // Token: 0x04001A88 RID: 6792
1057
1058 // Token: 0x04001A89 RID: 6793
1060
1061 // Token: 0x04001A8A RID: 6794
1062 private bool drawnPageOptions;
1063
1064 // Token: 0x04001A8B RID: 6795
1065 private float ProfileScale;
1066
1067 // Token: 0x04001A8C RID: 6796
1068 private float ProfileRenameScale;
1069
1070 // Token: 0x04001A8D RID: 6797
1071 private float Profile1Scale;
1072
1073 // Token: 0x04001A8E RID: 6798
1074 private float Profile2Scale;
1075
1076 // Token: 0x04001A8F RID: 6799
1077 private float Profile3Scale;
1078
1079 // Token: 0x04001A90 RID: 6800
1080 private float Profile4Scale;
1081
1082 // Token: 0x04001A91 RID: 6801
1083 private float SideControls;
1084
1085 // Token: 0x04001A92 RID: 6802
1086 private float BottomControls;
1087
1088 // Token: 0x04001A93 RID: 6803
1089 private float HardwareScale;
1090
1091 // Token: 0x04001A94 RID: 6804
1092 private float Hardware1Scale;
1093
1094 // Token: 0x04001A95 RID: 6805
1095 private float Hardware2Scale;
1096
1097 // Token: 0x04001A96 RID: 6806
1098 private float Hardware3Scale;
1099
1100 // Token: 0x04001A97 RID: 6807
1101 private float Hardware4Scale;
1102
1103 // Token: 0x04001A98 RID: 6808
1105
1106 // Token: 0x04001A99 RID: 6809
1107 public bool editingName;
1108
1109 // Token: 0x04001A9A RID: 6810
1110 private string editNameValue;
1111
1112 // Token: 0x04001A9B RID: 6811
1113 private int textBlinkerCount;
1114
1115 // Token: 0x04001A9C RID: 6812
1116 private int textBlinkerState;
1117
1118 // Token: 0x04001A9D RID: 6813
1120
1121 // Token: 0x04001A9E RID: 6814
1122 private string SelectedStyleValue;
1123
1124 // Token: 0x04001A9F RID: 6815
1125 private float UndoScale;
1126
1127 // Token: 0x04001AA0 RID: 6816
1128 private float RedoScale;
1129
1130 // Token: 0x04001AA1 RID: 6817
1131 public float[] Scale;
1132
1133 // Token: 0x04001AA2 RID: 6818
1134 public float SettingsScale;
1135
1136 // Token: 0x04001AA3 RID: 6819
1138
1139 // Token: 0x04001AA4 RID: 6820
1140 private float leftScale;
1141
1142 // Token: 0x04001AA5 RID: 6821
1143 private float rightScale;
1144
1145 // Token: 0x04001AA6 RID: 6822
1146 private float leftInterfaceScale;
1147
1148 // Token: 0x04001AA7 RID: 6823
1149 private float rightInterfaceScale;
1150
1151 // Token: 0x04001AA8 RID: 6824
1152 private bool LeftPressed;
1153
1154 // Token: 0x04001AA9 RID: 6825
1155 private bool RightPressed;
1156
1157 // Token: 0x04001AAA RID: 6826
1159
1160 // Token: 0x04001AAB RID: 6827
1162
1163 // Token: 0x04001AAC RID: 6828
1164 private bool UIControlDrag;
1165
1166 // Token: 0x04001AAD RID: 6829
1167 private int SelectedControl;
1168
1169 // Token: 0x04001AAE RID: 6830
1170 private string SelectedControlStyle;
1171
1172 // Token: 0x04001AAF RID: 6831
1174
1175 // Token: 0x04001AB0 RID: 6832
1176 private float TimeSinceSlotChange;
1177
1178 // Token: 0x04001AB1 RID: 6833
1179 private int SelectedSlotType;
1180
1181 // Token: 0x04001AB2 RID: 6834
1182 private bool PendingUISlotDrag;
1183
1184 // Token: 0x04001AB3 RID: 6835
1185 private bool UISlotDrag;
1186
1187 // Token: 0x04001AB4 RID: 6836
1189
1190 // Token: 0x04001AB5 RID: 6837
1192
1193 // Token: 0x04001AB6 RID: 6838
1194 private bool drawnFromDrag;
1195
1196 // Token: 0x04001AB7 RID: 6839
1197 private float smallScale;
1198
1199 // Token: 0x04001AB8 RID: 6840
1200 private float mediumScale;
1201
1202 // Token: 0x04001AB9 RID: 6841
1203 private float largeScale;
1204
1205 // Token: 0x04001ABA RID: 6842
1206 private float extraLargeScale;
1207
1208 // Token: 0x04001ABB RID: 6843
1209 private float deleteScale;
1210
1211 // Token: 0x04001ABC RID: 6844
1213
1214 // Token: 0x04001ABD RID: 6845
1216
1217 // Token: 0x04001ABE RID: 6846
1218 private float MappingsScale;
1219
1220 // Token: 0x04001ABF RID: 6847
1221 private float ControlsButtonScale;
1222
1223 // Token: 0x04001AC0 RID: 6848
1225
1226 // Token: 0x04001AC1 RID: 6849
1228
1229 // Token: 0x04001AC2 RID: 6850
1231
1232 // Token: 0x04001AC3 RID: 6851
1234
1235 // Token: 0x04001AC4 RID: 6852
1237
1238 // Token: 0x04001AC5 RID: 6853
1240
1241 // Token: 0x04001AC6 RID: 6854
1242 private bool draggingRegion;
1243
1244 // Token: 0x04001AC7 RID: 6855
1245 private bool draggingRight;
1246
1247 // Token: 0x04001AC8 RID: 6856
1249
1250 // Token: 0x04001AC9 RID: 6857
1251 private bool draggingInterface;
1252
1253 // Token: 0x04001ACA RID: 6858
1254 public bool ControlsDirty;
1255
1256 // Token: 0x04001ACB RID: 6859
1258
1259 // Token: 0x04001ACC RID: 6860
1261
1262 // Token: 0x04001ACD RID: 6861
1263 private const float visualBorderRegion = 2f;
1264
1265 // Token: 0x04001ACE RID: 6862
1267
1268 // Token: 0x04001ACF RID: 6863
1270
1271 // Token: 0x04001AD0 RID: 6864
1273
1274 // Token: 0x04001AD1 RID: 6865
1276
1277 // Token: 0x04001AD2 RID: 6866
1278 private int SelectedSlot;
1279
1280 // Token: 0x04001AD3 RID: 6867
1282
1283 // Token: 0x04001AD4 RID: 6868
1284 private const int dragBufferSize = 15;
1285
1286 // Token: 0x04001AD5 RID: 6869
1287 private float DraggingScale;
1288
1289 // Token: 0x04001AD6 RID: 6870
1290 private float[] ControlsScales;
1291
1292 // Token: 0x04001AD7 RID: 6871
1293 private float[] DrawScales;
1294
1295 // Token: 0x02000283 RID: 643
1296 private struct StyleOption
1297 {
1298 // Token: 0x04001AD8 RID: 6872
1299 public string ConfigurationId;
1300
1301 // Token: 0x04001AD9 RID: 6873
1302 public string DisplayValue;
1303 }
1304
1305 // Token: 0x02000284 RID: 644
1307 private sealed class <>c__DisplayClass72_0
1308 {
1309 // Token: 0x06000ECB RID: 3787 RVA: 0x00048CFC File Offset: 0x00046EFC
1311 {
1312 }
1313
1314 // Token: 0x06000ECC RID: 3788 RVA: 0x00048D10 File Offset: 0x00046F10
1315 internal int <RefreshSlotOrder>b__0(int e1, int e2)
1316 {
1319 int num;
1320 return num.CompareTo(num);
1321 }
1322
1323 // Token: 0x04001ADA RID: 6874
1325 }
1326}
class f__AnonymousType0<< Count > j__TPar
Microsoft.Xna.Framework.Vector2 dragControlStartLeft
Rectangle ResolveCollisions(Rectangle originalRegion, Rectangle newRegion, GUIPageIconGrouping group)
Microsoft.Xna.Framework.Vector2 DragStartPosition
Microsoft.Xna.Framework.Vector2 PendingUIControlDragStart
Microsoft.Xna.Framework.Vector2 DragPosition
string GetControlName(VirtualControlsHardwareConfigurationMapping_Layout.ContolType control)
int CreateNewSlot(VirtualControlsSlotTypeMapping_Layout.SlotType controlType, string styleId, Microsoft.Xna.Framework.Vector2 position)
void ControlsItemDraw(ItemGrid_Layout gridLayout, int index, Microsoft.Xna.Framework.Vector2 position, float scale)
List< VirtualControlsButtonConfiguration_Layout > availableButtonControls
bool IsAxisInBadPosition(Axis_Layout AxisLayout, Microsoft.Xna.Framework.Vector2 mousePosition)
void ItemDraw(ItemGrid_Layout gridLayout, int slot, Microsoft.Xna.Framework.Vector2 position, float scale)
VirtualControlsButtonConfiguration_Layout.Style GetButtonControlSubStyle(VirtualControlsHardwareConfigurationMapping_Layout.ContolType action)
VirtualControlsAxisConfiguration_Layout.Style GetAxisControlSubStyle(VirtualControlsHardwareConfigurationMapping_Layout.ContolType action)
Microsoft.Xna.Framework.Vector2 dragCursorStartRight
global::Cursor GetCursor(GUIPageIconGrouping grouping)
Microsoft.Xna.Framework.Vector2 SlotStartPosition
Microsoft.Xna.Framework.Vector2 dragCursorStartLeft
void GetControlTextureFrame(VirtualControlsHardwareConfigurationMapping_Layout.ContolType controlType, [Out] Microsoft.Xna.Framework.Graphics.Texture2D tex, [Out] Rectangle frame)
void TryMovingGroup(Microsoft.Xna.Framework.Vector2 newPosition)
void LoadSlotPosition(Microsoft.Xna.Framework.Vector2 position, int slot)
void ClampControls(bool editingControls=true)
Microsoft.Xna.Framework.Vector2 dragControlStartRight
Microsoft.Xna.Framework.Vector2 PendingUISlotDragStart
string TruncateString(TransactionButton_Layout button, string text, float maxWidth)
int GetSlotOver(Microsoft.Xna.Framework.Vector2 mousePosition, [Out] Microsoft.Xna.Framework.Vector2 slotPosition)
void HandleSlotChangeType(VirtualControlsHardwareConfiguration_Layout hardware, int slot, VirtualControlsSlotTypeMapping_Layout.SlotType type)
void GetDefaultControlSetup(VirtualControlsHardwareConfigurationMapping_Layout.ContolType control, [Out] VirtualControlsSlotTypeMapping_Layout.SlotType type, [Out] string configurationId)
QuickActionButton_Layout.QuickActionControl GetButtonId(VirtualControlsHardwareConfigurationMapping_Layout.ContolType controlType)
Microsoft.Xna.Framework.Vector2 dragControlStartInterface
bool IsButtonInBadPosition(QuickActionButton_Layout buttonLayout, Microsoft.Xna.Framework.Vector2 mousePosition)
bool IsOverOptions(Microsoft.Xna.Framework.Vector2 cursorPosition)
void SetPageControlsAndAdjust(GUIPageIcons.PageControlsType newType)
List< VirtualControlsAxisConfiguration_Layout > availableAxisControls
Microsoft.Xna.Framework.Vector2 dragCursorStartInterface
List< GUIVirtualInputControllerEdit.StyleOption > StlyeOptionsList
List< GUIPageIconGrouping > LeftGroupings
List< GUIPageIconGrouping > RightGroupings
static InterfaceProfile_Layout Active
SpriteFont GetFont()
static string GetTextValue(string key)
Definition Language.cs:54
static void FlushBatches()
Definition Main.cs:5092
static bool mouseLeftRelease
Definition Main.cs:2029
static string GetInputText(string oldString, Rectangle region, int maxCharacters=-1, bool password=false, bool retainText=false, bool multiline=false, bool filterText=true)
Definition Main.cs:8537
static void CloseKeyboard()
Definition Main.cs:8523
static void clrInput()
Definition Main.cs:8459
static int mouseY
Definition Main.cs:601
static int mouseX
Definition Main.cs:587
static bool mouseLeft
Definition Main.cs:671
static float deltaTime
Definition Time.cs:14
VirtualControlsHardwareConfigurationMapping_Layout.ContolType Action
VirtualControlsHardwareConfigurationMapping_Layout.ContolType DefaultControl
VirtualControlsHardwareConfigurationMapping_Layout[] Slots
VirtualControlsHardwareConfiguration_Layout HardwareConfig
static int ScreenWidth
static int ScreenHeight