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
GUIInterfaceEdit.cs
Go to the documentation of this file.
1using System;
4using Controller;
8using Terraria;
10using UnityEngine;
11
12// Token: 0x0200025E RID: 606
13public class GUIInterfaceEdit
14{
15 // Token: 0x06000D7D RID: 3453 RVA: 0x000403BC File Offset: 0x0003E5BC
21
22 // Token: 0x06000D7E RID: 3454 RVA: 0x000404A4 File Offset: 0x0003E6A4
47
48 // Token: 0x06000D7F RID: 3455 RVA: 0x000404FC File Offset: 0x0003E6FC
50 {
51 /*
52An exception occurred when decompiling this method (06000D7F)
53
54ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean GUIInterfaceEdit::CanSpawn(System.Collections.Generic.List`1<GUIPageIconGrouping>,System.Collections.Generic.List`1<GUIPageIconGrouping>,System.Boolean,Microsoft.Xna.Framework.Vector2)
55
56 ---> System.Exception: Basic block has to end with unconditional control flow.
57{
58 IL_0006:
59 stloc:int32(var_0_0C, ldfld:int32(List`1::_size, ldloc:class [mscorlib]System.Collections.Generic.List`1<class GUIPageIconGrouping>[exp:List`1](groups)))
60 stloc:int32(var_2_13, callgetter:int32(Rectangle::get_Bottom, ldloc:Rectangle[exp:valuetype Microsoft.Xna.Framework.Rectangle&](var_1)))
61 stloc:int32(var_3_1A, ldfld:int32(List`1::_size, ldloc:class [mscorlib]System.Collections.Generic.List`1<class GUIPageIconGrouping>[exp:List`1](groups)))
62 stloc:int32(var_5_22, callgetter:int32(Rectangle::get_Bottom, ldloc:Rectangle[exp:valuetype Microsoft.Xna.Framework.Rectangle&](var_4)))
63 stloc:int32(var_9_2D, ldfld:int32(List`1::_size, ldloc:class [mscorlib]System.Collections.Generic.List`1<class GUIPageIconGrouping>[exp:List`1](otherGroups)))
64 stloc:int32(var_13_38, ldfld:int32(List`1::_size, ldloc:class [mscorlib]System.Collections.Generic.List`1<class GUIPageIconGrouping>[exp:List`1](otherGroups)))
65 stloc:int32(var_15_43, ldfld:int32(List`1::_size, ldloc:class [mscorlib]System.Collections.Generic.List`1<class GUIPageIconGrouping>[exp:List`1](groups)))
66 stloc:int32(var_18_4F, callgetter:int32(Rectangle::get_Bottom, ldloc:Rectangle[exp:valuetype Microsoft.Xna.Framework.Rectangle&](var_17)))
67 stloc:int32(var_20_57, ldfld:int32(List`1::_size, ldloc:class [mscorlib]System.Collections.Generic.List`1<class GUIPageIconGrouping>[exp:List`1](groups)))
68}
69
70 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
71 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
72 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
73 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
74 --- End of inner exception stack trace ---
75 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
76 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
77*/;
78 }
79
80 // Token: 0x06000D80 RID: 3456 RVA: 0x00040564 File Offset: 0x0003E764
94
95 // Token: 0x06000D81 RID: 3457 RVA: 0x00040628 File Offset: 0x0003E828
97 {
98 int num;
99 do
100 {
101 float y2 = y.Location.Y;
102 }
103 while (num != 0);
106 return 1;
107 }
108
109 // Token: 0x06000D82 RID: 3458 RVA: 0x000021DB File Offset: 0x000003DB
110 private float PageScale(int index)
111 {
112 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
113 }
114
115 // Token: 0x06000D83 RID: 3459 RVA: 0x00040654 File Offset: 0x0003E854
141
142 // Token: 0x06000D84 RID: 3460 RVA: 0x000406FC File Offset: 0x0003E8FC
144 {
145 /*
146An exception occurred when decompiling this method (06000D84)
147
148ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Vector2 GUIInterfaceEdit::ItemSize(System.Int32)
149
150 ---> System.Exception: Basic block has to end with unconditional control flow.
151{
152 IL_0003:
153 stloc:class [mscorlib]System.Collections.Generic.List`1<class GUIPageIconGrouping>(var_1_0F, ldfld:class [mscorlib]System.Collections.Generic.List`1<class GUIPageIconGrouping>(InterfaceProfile_Layout::LeftGroupings, callgetter:InterfaceProfile_Layout(InterfaceStyles_Layout::get_Active)))
154 stloc:int32(var_3_18, ldfld:int32(List`1::_size, ldloc:class [mscorlib]System.Collections.Generic.List`1<class GUIPageIconGrouping>[exp:List`1](var_1_0F)))
155 stloc:int32(var_4_28, ldfld:int32(List`1::_size, ldfld:class [mscorlib]System.Collections.Generic.List`1<class GUIPageIconGrouping>[exp:List`1](InterfaceProfile_Layout::RightGroupings, callgetter:InterfaceProfile_Layout(InterfaceStyles_Layout::get_Active))))
156 stloc:int32(var_5_30, ldfld:int32(GUIInterfaceEdit::SelectedItem, ldloc:GUIInterfaceEdit(this)))
157}
158
159 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
160 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
161 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
162 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
163 --- End of inner exception stack trace ---
164 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
165 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
166*/;
167 }
168
169 // Token: 0x06000D85 RID: 3461 RVA: 0x0004073C File Offset: 0x0003E93C
170 private void PageIconDraw(ItemGrid_Layout gridLayout, int index, Microsoft.Xna.Framework.Vector2 position, float scale)
171 {
173 float x = this.pageButtonRegionSize.X;
174 float y = this.pageButtonRegionSize.Y;
175 }
176
177 // Token: 0x06000D86 RID: 3462 RVA: 0x00040770 File Offset: 0x0003E970
178 private void PageIconOver(int index)
179 {
180 }
181
182 // Token: 0x06000D87 RID: 3463 RVA: 0x000021DB File Offset: 0x000003DB
183 private float PageIconScale(int index)
184 {
185 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
186 }
187
188 // Token: 0x06000D88 RID: 3464 RVA: 0x00040780 File Offset: 0x0003E980
202
203 // Token: 0x06000D89 RID: 3465 RVA: 0x000407D0 File Offset: 0x0003E9D0
210
211 // Token: 0x06000D8A RID: 3466 RVA: 0x000021DB File Offset: 0x000003DB
213 {
214 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
215 }
216
217 // Token: 0x06000D8B RID: 3467 RVA: 0x0004093C File Offset: 0x0003EB3C
226
227 // Token: 0x06000D8C RID: 3468 RVA: 0x000409A8 File Offset: 0x0003EBA8
228 private void DrawPgeGroups()
229 {
230 int num = 1;
231 this.pageOver = num;
232 if (num == 0)
233 {
234 }
236 int size = leftGroupings._size;
239 int groupCount = this._groupCount;
241 this.RefreshSelected();
242 int groupCount2 = this._groupCount;
243 }
244
245 // Token: 0x06000D8D RID: 3469 RVA: 0x000021DB File Offset: 0x000003DB
247 {
248 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
249 }
250
251 // Token: 0x06000D8E RID: 3470 RVA: 0x00040A10 File Offset: 0x0003EC10
253 {
254 bool mouseLeft = Main.mouseLeft;
255 bool mouseLeftRelease = Main.mouseLeftRelease;
258 {
259 this.RestoreDefaults();
260 }
263 {
264 this.CancelChanges();
265 }
268 {
270 }
271 }
272
273 // Token: 0x06000D8F RID: 3471 RVA: 0x00040A54 File Offset: 0x0003EC54
274 private bool CanApply()
275 {
276 return true;
277 }
278
279 // Token: 0x06000D90 RID: 3472 RVA: 0x00040A64 File Offset: 0x0003EC64
280 private void DrawOptions()
281 {
282 bool mouseLeft = Main.mouseLeft;
283 if ("Serbian (Cyrillic, Bosnia and Herzegovina)" == null)
284 {
285 }
286 bool mouseLeftRelease = Main.mouseLeftRelease;
287 if ("Serbian (Cyrillic, Bosnia and Herzegovina)" == null)
288 {
289 }
292 {
293 }
294 if ("Serbian (Cyrillic, Bosnia and Herzegovina)" == null)
295 {
296 }
299 {
300 }
301 }
302
303 // Token: 0x06000D91 RID: 3473 RVA: 0x00040AA4 File Offset: 0x0003ECA4
304 private void DrawControlsOptions()
305 {
306 bool mouseLeft = Main.mouseLeft;
307 bool mouseLeftRelease = Main.mouseLeftRelease;
310 {
311 this.RestoreDefaults();
312 }
315 {
316 this.CancelChanges();
317 }
320 {
322 }
323 }
324
325 // Token: 0x06000D92 RID: 3474 RVA: 0x00040AE8 File Offset: 0x0003ECE8
326 public void CancelChanges()
327 {
328 this.RestoreBackup();
329 }
330
331 // Token: 0x06000D93 RID: 3475 RVA: 0x00040AFC File Offset: 0x0003ECFC
332 public void ClampUIScale()
333 {
334 bool enabled;
335 if (this.dragState.wasDragging)
336 {
337 enabled = this.Enabled;
338 if (enabled)
339 {
340 return;
341 }
342 }
343 if (!enabled)
344 {
345 }
348 }
349
350 // Token: 0x06000D94 RID: 3476 RVA: 0x00040B50 File Offset: 0x0003ED50
351 private string GetDisplayName(InterfaceProfile_Layout profile, float maxWidth, bool isTemplate)
352 {
353 string text;
357 string text2 = textValue + "...";
358 long num = 0L;
361 int stringLength = textValue._stringLength;
362 long num2 = 0L;
363 return textValue.Substring((int)num2, (int)num);
364 }
365
366 // Token: 0x06000D95 RID: 3477 RVA: 0x00040BB0 File Offset: 0x0003EDB0
368 {
369 if (this.displayProfileOptions)
370 {
371 this.CloseProfileOptions();
372 }
373 if (this.displayTemplateOptions)
374 {
376 }
377 return true;
378 }
379
380 // Token: 0x06000D96 RID: 3478 RVA: 0x00040BDC File Offset: 0x0003EDDC
381 public void CloseNameEdit()
382 {
383 if (!true)
384 {
385 }
387 }
388
389 // Token: 0x06000D97 RID: 3479 RVA: 0x00040BF4 File Offset: 0x0003EDF4
394
395 // Token: 0x06000D98 RID: 3480 RVA: 0x00040C08 File Offset: 0x0003EE08
397 {
398 }
399
400 // Token: 0x06000D99 RID: 3481 RVA: 0x00040C20 File Offset: 0x0003EE20
401 private void DrawProfile()
402 {
403 bool mouseLeft = Main.mouseLeft;
404 bool mouseLeftRelease = Main.mouseLeftRelease;
405 bool flag = this.editingName;
406 if (flag)
407 {
410 this.CloseNameEdit();
411 }
413 bool flag2 = this.editingName;
414 if (flag2)
415 {
416 string text = this.editNameValue;
417 long num = 0L;
418 if (!flag2)
419 {
420 }
421 int num2 = 20;
422 long num3 = 0L;
423 long num4 = 0L;
424 long num5 = 0L;
426 string inputText = Main.GetInputText(text, rectangle, (int)num, num2 != 0, num3 != 0L, num4 != 0L, num5 != 0L);
427 this.editNameValue = inputText;
428 int stringLength = inputText._stringLength;
429 int num6 = 20;
430 long num7 = 0L;
431 string text2 = inputText.Substring((int)num7, num6);
432 this.editNameValue = text2;
433 if (stringLength == 0)
434 {
435 }
436 if (flag)
437 {
438 return;
439 }
440 if (!flag)
441 {
442 }
444 string text3 = this.editNameValue;
446 int num8 = this.textBlinkerCount;
448 int num9 = this.textBlinkerState;
450 string text4 = this.editNameValue;
451 bool flag3 = string.IsNullOrEmpty(text4);
453 Microsoft.Xna.Framework.Vector2 vector = spriteFont.MeasureString(text4);
454 long num10 = 0L;
456 string text5;
458 int stringLength2 = text4._stringLength;
459 int num11 = 1;
460 string text6 = text4.Substring(num11, (int)num10);
461 return;
462 }
463 else
464 {
466 bool flag4 = this.displayProfileOptions;
467 int num12;
468 if (optionsBlocker != null)
469 {
470 if (flag4)
471 {
472 return;
473 }
474 }
475 else if (flag4)
476 {
477 if (optionsBlocker == null)
478 {
479 }
480 num12 = 1;
481 string text7;
482 int stringLength3 = text7._stringLength;
483 return;
484 }
485 if (num12 == 0)
486 {
487 }
489 bool flag5 = this.displayProfileOptions;
492 {
493 this.CloseProfileOptions();
494 return;
495 }
498 return;
499 }
500 }
501
502 // Token: 0x06000D9A RID: 3482 RVA: 0x00040EEC File Offset: 0x0003F0EC
503 private void RefreshTemplate()
504 {
505 bool flag = this.selectedCustom;
506 if (!flag)
507 {
508 if (!flag)
509 {
510 }
512 return;
513 }
514 }
515
516 // Token: 0x06000D9B RID: 3483 RVA: 0x00040F20 File Offset: 0x0003F120
526
527 // Token: 0x06000D9C RID: 3484 RVA: 0x00040F7C File Offset: 0x0003F17C
528 private void DrawTemplate()
529 {
530 bool mouseLeft = Main.mouseLeft;
531 bool mouseLeftRelease = Main.mouseLeftRelease;
532 this.RefreshTemplate();
533 if (this.currentProfile != null)
534 {
535 return;
536 }
537 string textValue = Language.GetTextValue("InterfaceProfiles.Custom");
539 bool flag = this.displayTemplateOptions;
540 if (optionsBlocker == null || flag)
541 {
542 }
546 {
547 if (this.displayTemplateOptions)
548 {
550 return;
551 }
552 isOver = optionsBlocker.isOver;
553 if (isOver == null)
554 {
555 }
556 if (!true)
557 {
558 }
562 }
563 string textValue2 = Language.GetTextValue("Mobile.ProfileTemplate");
564 if (isOver == null)
565 {
566 }
567 bool flag2 = this.displayTemplateOptions;
568 if (flag2)
569 {
570 if (!flag2)
571 {
572 }
573 string text;
575 int stringLength = textValue2._stringLength;
576 string text2;
577 string textValue4 = Language.GetTextValue(text2);
578 string text3;
580 string textValue6 = Language.GetTextValue("InterfaceProfiles.Custom");
590 int width = texture2D.Width;
593 return;
594 }
595 }
596
597 // Token: 0x06000D9D RID: 3485 RVA: 0x00041358 File Offset: 0x0003F558
598 public void DrawWidgetOverlays()
599 {
600 if (!true)
601 {
602 }
604 {
605 this.DrawTemplate();
606 }
607 }
608
609 // Token: 0x06000D9E RID: 3486 RVA: 0x00041380 File Offset: 0x0003F580
610 private void DrawUITweaks()
611 {
612 if (!this.displayTemplateOptions)
613 {
615 this.DrawTemplate();
616 }
617 if (!true)
618 {
619 }
620 bool mouseLeft = Main.mouseLeft;
621 if (!true)
622 {
623 }
624 bool mouseLeftRelease = Main.mouseLeftRelease;
625 if (!true)
626 {
627 }
628 this.ClampUIScale();
629 if (!true)
630 {
631 }
633 if (!true)
634 {
635 }
637 }
638
639 // Token: 0x06000D9F RID: 3487 RVA: 0x0004151C File Offset: 0x0003F71C
640 public void Backup()
641 {
649 this.BackupProfile1.Copy(virtualControlsProfile_Layout3);
660 this.BackupProfile3.Copy(virtualControlsProfile_Layout6);
666 this.BackupProfile4.Copy(virtualControlsProfile_Layout8);
669 long num = 0L;
670 backupInterfaceProfile.Copy(active, num != 0L);
674 this.AddControlUndo();
677 if (profileName == null)
678 {
679 }
680 }
681
682 // Token: 0x06000DA0 RID: 3488 RVA: 0x000021DB File Offset: 0x000003DB
683 public void AddControlUndo()
684 {
685 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
686 }
687
688 // Token: 0x06000DA1 RID: 3489 RVA: 0x000021DB File Offset: 0x000003DB
689 public bool HasUndo()
690 {
691 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
692 }
693
694 // Token: 0x06000DA2 RID: 3490 RVA: 0x000021DB File Offset: 0x000003DB
695 public void ControlUndo()
696 {
697 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
698 }
699
700 // Token: 0x06000DA3 RID: 3491 RVA: 0x00041620 File Offset: 0x0003F820
701 public bool HasRedo()
702 {
703 /*
704An exception occurred when decompiling this method (06000DA3)
705
706ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean GUIInterfaceEdit::HasRedo()
707
708 ---> System.Exception: Basic block has to end with unconditional control flow.
709{
710 Block_0:
711 stloc:int32(var_0_0B, ldfld:int32(List`1::_size, ldfld:class [mscorlib]System.Collections.Generic.List`1<class GUIInterfaceEdit/BackupResotrePoint>[exp:List`1](GUIInterfaceEdit::RedoPoints, ldloc:GUIInterfaceEdit(this))))
712}
713
714 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
715 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
716 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
717 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
718 --- End of inner exception stack trace ---
719 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
720 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
721*/;
722 }
723
724 // Token: 0x06000DA4 RID: 3492 RVA: 0x000021DB File Offset: 0x000003DB
725 public void ControlRedo()
726 {
727 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
728 }
729
730 // Token: 0x06000DA5 RID: 3493 RVA: 0x000021DB File Offset: 0x000003DB
731 public void ClearControlRedo()
732 {
733 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
734 }
735
736 // Token: 0x06000DA6 RID: 3494 RVA: 0x000021DB File Offset: 0x000003DB
738 {
739 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
740 }
741
742 // Token: 0x06000DA7 RID: 3495 RVA: 0x00041638 File Offset: 0x0003F838
755
756 // Token: 0x06000DA8 RID: 3496 RVA: 0x000416D4 File Offset: 0x0003F8D4
757 public void RestoreDefaults()
758 {
759 if (!true)
760 {
761 }
783 if (controls4 == null)
784 {
785 }
788 if (controls4 == null)
789 {
790 }
791 int num = 1;
792 if (num == 0)
793 {
794 }
795 int value = num.m_value;
796 int num2 = 1;
797 if (num2 == 0)
798 {
799 }
800 int value2 = num2.m_value;
802 }
803
804 // Token: 0x06000DA9 RID: 3497 RVA: 0x000417B8 File Offset: 0x0003F9B8
805 public void RestoreBackup()
806 {
813 hardwareConfig.Copy(backupHardware);
820 hardwareConfig2.Copy(backupHardware2);
827 hardwareConfig3.Copy(backupHardware3);
834 hardwareConfig4.Copy(backupHardware4);
840 long num = 0L;
841 active.Copy(backupInterfaceProfile, num != 0L);
845 if (profileName == null)
846 {
847 }
848 float xmin = this.backupSafeRegion.m_XMin;
849 float ymin = this.backupSafeRegion.m_YMin;
850 float width = this.backupSafeRegion.m_Width;
851 float height = this.backupSafeRegion.m_Height;
852 bool flag = this.backupVPPIOverride;
855 if (this.backupVPPIOverride)
856 {
857 float num2 = this.backupVPPI;
858 }
860 }
861
862 // Token: 0x06000DAA RID: 3498 RVA: 0x0004192C File Offset: 0x0003FB2C
864 {
865 }
866
867 // Token: 0x040018EF RID: 6383
869
870 // Token: 0x040018F0 RID: 6384
871 public bool Enabled;
872
873 // Token: 0x040018F1 RID: 6385
875
876 // Token: 0x040018F2 RID: 6386
878
879 // Token: 0x040018F3 RID: 6387
881
882 // Token: 0x040018F4 RID: 6388
883 private float SafeRegionScale;
884
885 // Token: 0x040018F5 RID: 6389
886 private float EditControlScale;
887
888 // Token: 0x040018F6 RID: 6390
889 private float TitleScale;
890
891 // Token: 0x040018F7 RID: 6391
892 private float defaultsScale;
893
894 // Token: 0x040018F8 RID: 6392
895 private float finishScale;
896
897 // Token: 0x040018F9 RID: 6393
898 private float resetScale = (float)16256;
899
900 // Token: 0x040018FA RID: 6394
901 public float ScrollOffset;
902
903 // Token: 0x040018FB RID: 6395
904 private float ScrollMomentum;
905
906 // Token: 0x040018FC RID: 6396
907 private int ScrollDragging;
908
909 // Token: 0x040018FD RID: 6397
911
912 // Token: 0x040018FE RID: 6398
913 private int _groupCount;
914
915 // Token: 0x040018FF RID: 6399
916 private int pageOver;
917
918 // Token: 0x04001900 RID: 6400
920
921 // Token: 0x04001901 RID: 6401
923
924 // Token: 0x04001902 RID: 6402
925 public int SelectedItem;
926
927 // Token: 0x04001903 RID: 6403
929
930 // Token: 0x04001904 RID: 6404
932
933 // Token: 0x04001905 RID: 6405
935
936 // Token: 0x04001906 RID: 6406
938
939 // Token: 0x04001907 RID: 6407
940 public bool CanSpawnState;
941
942 // Token: 0x04001908 RID: 6408
943 private float SideControls;
944
945 // Token: 0x04001909 RID: 6409
946 private float TopControls;
947
948 // Token: 0x0400190A RID: 6410
949 private float BottomControls;
950
951 // Token: 0x0400190B RID: 6411
953
954 // Token: 0x0400190C RID: 6412
955 private float uiScale;
956
957 // Token: 0x0400190D RID: 6413
958 private float EditGroupsScale;
959
960 // Token: 0x0400190E RID: 6414
961 private global::UnityEngine.Vector2 lastCursorPosition;
962
963 // Token: 0x0400190F RID: 6415
964 private int lastDirection;
965
966 // Token: 0x04001910 RID: 6416
967 public bool editingName;
968
969 // Token: 0x04001911 RID: 6417
970 private string editNameValue;
971
972 // Token: 0x04001912 RID: 6418
973 private int textBlinkerCount;
974
975 // Token: 0x04001913 RID: 6419
976 private int textBlinkerState;
977
978 // Token: 0x04001914 RID: 6420
980
981 // Token: 0x04001915 RID: 6421
983
984 // Token: 0x04001916 RID: 6422
986
987 // Token: 0x04001917 RID: 6423
988 private float ProfileScale;
989
990 // Token: 0x04001918 RID: 6424
991 private float ProfileRenameScale;
992
993 // Token: 0x04001919 RID: 6425
994 private float Profile1Scale;
995
996 // Token: 0x0400191A RID: 6426
997 private float Profile2Scale;
998
999 // Token: 0x0400191B RID: 6427
1000 private float Profile3Scale;
1001
1002 // Token: 0x0400191C RID: 6428
1003 private float Profile4Scale;
1004
1005 // Token: 0x0400191D RID: 6429
1007
1008 // Token: 0x0400191E RID: 6430
1010
1011 // Token: 0x0400191F RID: 6431
1012 private float TemplateScale;
1013
1014 // Token: 0x04001920 RID: 6432
1015 private float Template1Scale;
1016
1017 // Token: 0x04001921 RID: 6433
1018 private float Template2Scale;
1019
1020 // Token: 0x04001922 RID: 6434
1021 private float Template3Scale;
1022
1023 // Token: 0x04001923 RID: 6435
1024 private float Template4Scale;
1025
1026 // Token: 0x04001924 RID: 6436
1027 private float Template5Scale;
1028
1029 // Token: 0x04001925 RID: 6437
1030 private bool selectedCustom;
1031
1032 // Token: 0x04001926 RID: 6438
1034
1035 // Token: 0x04001927 RID: 6439
1036 public float _pulldownShift;
1037
1038 // Token: 0x04001928 RID: 6440
1040
1041 // Token: 0x04001929 RID: 6441
1043
1044 // Token: 0x0400192A RID: 6442
1046
1047 // Token: 0x0400192B RID: 6443
1049
1050 // Token: 0x0400192C RID: 6444
1052
1053 // Token: 0x0400192D RID: 6445
1055
1056 // Token: 0x0400192E RID: 6446
1058
1059 // Token: 0x0400192F RID: 6447
1061
1062 // Token: 0x04001930 RID: 6448
1064
1065 // Token: 0x04001931 RID: 6449
1067
1068 // Token: 0x04001932 RID: 6450
1070
1071 // Token: 0x04001933 RID: 6451
1073
1074 // Token: 0x04001934 RID: 6452
1076
1077 // Token: 0x04001935 RID: 6453
1079
1080 // Token: 0x04001936 RID: 6454
1082
1083 // Token: 0x04001937 RID: 6455
1084 private float backupVPPI;
1085
1086 // Token: 0x04001938 RID: 6456
1088
1089 // Token: 0x04001939 RID: 6457
1090 private int SelectedSlot;
1091
1092 // Token: 0x0400193A RID: 6458
1094
1095 // Token: 0x0400193B RID: 6459
1097
1098 // Token: 0x0200025F RID: 607
1099 public enum EditMode
1100 {
1101 // Token: 0x0400193D RID: 6461
1102 SafeRegion,
1103 // Token: 0x0400193E RID: 6462
1105 // Token: 0x0400193F RID: 6463
1107 // Token: 0x04001940 RID: 6464
1109 }
1110
1111 // Token: 0x02000260 RID: 608
1113 {
1114 // Token: 0x06000DAB RID: 3499 RVA: 0x0004194C File Offset: 0x0003FB4C
1118
1119 // Token: 0x04001941 RID: 6465
1121
1122 // Token: 0x04001942 RID: 6466
1124 }
1125}
class f__AnonymousType0<< Count > j__TPar
static Vector2 LeftControls
static Vector2 RightControls
static DrPlatform.DrPlatformType CurrentPlatform
Definition DrPlatform.cs:26
VirtualControlsProfile_Layout Profile
VirtualControlsHardwareConfiguration_Layout Hardware
BackupResotrePoint(VirtualControlsHardwareConfiguration_Layout hardware, VirtualControlsProfile_Layout profile)
global::UnityEngine.Vector2 lastCursorPosition
Microsoft.Xna.Framework.Vector2 ItemSize(int index)
Microsoft.Xna.Framework.Vector2 backupLeftPosition
List< GUIInterfaceEdit.BackupResotrePoint > RedoPoints
VirtualControlsProfile_Layout BackupProfile4
bool DrawMenuButton(ControllerActionButton action, string label, TransactionButton_Layout buttonLayout, float scale, bool disabled)
VirtualControlsHardwareConfiguration_Layout BackupHardware4
GUIInterfaceEdit.EditMode Mode
Microsoft.Xna.Framework.Vector2 backupInterfaceLeftPosition
bool IsOverOptions(Microsoft.Xna.Framework.Vector2 cursorPosition)
bool CanSpawn(List< GUIPageIconGrouping > groups, List< GUIPageIconGrouping > otherGroups, bool left, [Out] Microsoft.Xna.Framework.Vector2 position)
Rectangle SelectedItemRegion
Microsoft.Xna.Framework.Vector2 backupRightPosition
GUIPageIconGrouping currentGroup
void LoadDefaultProfilePositions(VirtualControlsHardwareConfiguration_Layout configuration)
float PageIconScale(int index)
int SortGroupByPosition(GUIPageIconGrouping x, GUIPageIconGrouping y)
void PageOver(int index)
VirtualControlsHardwareConfiguration_Layout BackupHardware3
VirtualControlsHardwareConfiguration_Layout BackupHardware2
GUISlider.DragState dragState
Microsoft.Xna.Framework.Vector2 DragOffset
VirtualControlsHardwareConfiguration_Layout BackupHardware1
bool LoadSettingAnchor(GUIPageIconGrouping.SettingCategory category, Rectangle itemRegion)
Microsoft.Xna.Framework.Vector2 backupInterfaceRightPosition
Microsoft.Xna.Framework.Vector2 pageButtonRegionSize
string GetDisplayName(InterfaceProfile_Layout profile, float maxWidth, bool isTemplate)
VirtualControlsProfile_Layout BackupProfile3
void PageIconOver(int index)
VirtualControlsProfile_Layout BackupProfile1
GUIControllerInterfaceEdit _controller
float PageScale(int index)
VirtualControlsProfile_Layout BackupProfile2
List< GUIInterfaceEdit.BackupResotrePoint > RestorePoints
void PageDraw(ItemGrid_Layout gridLayout, int index, Microsoft.Xna.Framework.Vector2 position, float scale)
GUIInputRegionExclusive _optionsBlocker
InterfaceProfile_Layout currentProfile
InterfaceProfile_Layout BackupInterfaceProfile
VirtualControlsProfile_Layout BackupActiveProfile
void PageIconDraw(ItemGrid_Layout gridLayout, int index, Microsoft.Xna.Framework.Vector2 position, float scale)
bool FindSpaceToSpawn([Out] Microsoft.Xna.Framework.Vector2 position, [Out] bool left)
void EnsureSelectedGroupVisible()
List< GUIPageIconGrouping.SettingCategory > _settings
List< GUIPageIcons.Category > AllowedCategories
List< GUIPageIcons.Category > _options
List< GUIPageIconGrouping > LeftGroupings
void Copy(InterfaceProfile_Layout other, bool copySerialiseSettings=false)
List< GUIPageIconGrouping > RightGroupings
static InterfaceProfile_Layout Active
static string GetTextValue(string key)
Definition Language.cs:54
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 bool mouseLeft
Definition Main.cs:671
VirtualControlsHardwareConfigurationMapping_Layout.ContolType Action
VirtualControlsHardwareConfigurationMapping_Layout.ContolType DefaultControl
VirtualControlsHardwareConfigurationMapping_Layout[] Slots
void Copy(VirtualControlsHardwareConfiguration_Layout other)
VirtualControlsHardwareConfiguration_Layout HardwareConfig
void Copy(VirtualControlsProfile_Layout other)
VirtualControlsBinding_Layout[] Controls
float m_XMin
Definition Rect.cs:522
float m_Height
Definition Rect.cs:534
float m_YMin
Definition Rect.cs:526
float m_Width
Definition Rect.cs:530