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
GUIContollerTransactionButtonList.cs
Go to the documentation of this file.
1using System;
5
6// Token: 0x02000084 RID: 132
8{
9 // Token: 0x06000332 RID: 818 RVA: 0x0000A93C File Offset: 0x00008B3C
11 {
12 while (this._wrapAround)
13 {
14 bool vertical = this._vertical;
15 int selectedItem = this._selectedItem;
16 if (vertical)
17 {
18 Vector2 location = this._items.Location;
19 return;
20 }
21 }
22 }
23
24 // Token: 0x06000333 RID: 819 RVA: 0x0000A970 File Offset: 0x00008B70
30
31 // Token: 0x06000334 RID: 820 RVA: 0x0000A994 File Offset: 0x00008B94
32 public void Activate()
33 {
34 }
35
36 // Token: 0x06000335 RID: 821 RVA: 0x0000A9A4 File Offset: 0x00008BA4
37 public void SelectOption(int option)
38 {
39 this._selectedItem = option;
40 }
41
42 // Token: 0x06000336 RID: 822 RVA: 0x0000A9B8 File Offset: 0x00008BB8
44 {
46 if (regionSetup != null)
47 {
48 IntPtr invoke_impl = regionSetup.invoke_impl;
49 IntPtr method_code = regionSetup.method_code;
50 IntPtr method = regionSetup.method;
51 }
52 float scale = this._items.Scale;
54 if (regionSetup2 != null)
55 {
56 IntPtr invoke_impl2 = regionSetup2.invoke_impl;
57 IntPtr method_code2 = regionSetup2.method_code;
59 }
61 return rectangle;
62 }
63
64 // Token: 0x06000337 RID: 823 RVA: 0x0000AA1C File Offset: 0x00008C1C
66 {
67 /*
68An exception occurred when decompiling this method (06000337)
69
70ICSharpCode.Decompiler.DecompilerException: Error decompiling GUIControllerItem GUIContollerTransactionButtonList::Navigate(Microsoft.Xna.Framework.Vector2)
71
72 ---> System.Exception: Basic block has to end with unconditional control flow.
73{
74 IL_003B:
75 stloc:Vector2(var_5_46, ldfld:Vector2(Button_Layout::Location, ldfld:class TransactionButton_Layout[][exp:Button_Layout](GUIContollerTransactionButtonList::_items, ldloc:GUIContollerTransactionButtonList(this))))
76 stfld:int32(GUIContollerTransactionButtonList::_selectedItem, ldloc:GUIContollerTransactionButtonList(this), ldloc:int32(var_3_2A))
77}
78
79 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
80 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
81 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
82 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
83 --- End of inner exception stack trace ---
84 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
85 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
86*/;
87 }
88
89 // Token: 0x04000339 RID: 825
90 private bool _vertical;
91
92 // Token: 0x0400033A RID: 826
93 private bool _wrapAround;
94
95 // Token: 0x0400033B RID: 827
96 private int _selectedItem;
97
98 // Token: 0x0400033C RID: 828
100
101 // Token: 0x0400033D RID: 829
103
104 // Token: 0x02000085 RID: 133
105 public sealed class SetupRegions : MulticastDelegate
106 {
107 // Token: 0x06000338 RID: 824 RVA: 0x0000AA78 File Offset: 0x00008C78
108 public SetupRegions(object @object, IntPtr method)
109 {
111 this.m_target = @object;
113 this.method_code = this;
114 }
115
116 // Token: 0x06000339 RID: 825 RVA: 0x0000AACC File Offset: 0x00008CCC
117 public void Invoke(bool setup)
118 {
121 IntPtr method = this.method;
122 }
123
124 // Token: 0x0600033A RID: 826 RVA: 0x000021DB File Offset: 0x000003DB
125 public IAsyncResult BeginInvoke(bool setup, AsyncCallback callback, object @object)
126 {
127 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
128 }
129
130 // Token: 0x0600033B RID: 827 RVA: 0x0000AAF0 File Offset: 0x00008CF0
131 public void EndInvoke(IAsyncResult result)
132 {
133 }
134 }
135}
class f__AnonymousType0<< Count > j__TPar
IAsyncResult BeginInvoke(bool setup, AsyncCallback callback, object @object)
GUIControllerItem Navigate(Vector2 navigationAxis)
GUIContollerTransactionButtonList(bool vertical, bool wrapAround, TransactionButton_Layout[] items, [Optional] GUIContollerTransactionButtonList.SetupRegions regionSetup)
GUIContollerTransactionButtonList.SetupRegions _regionSetup
IntPtr method_code
Definition Delegate.cs:386
IntPtr invoke_impl
Definition Delegate.cs:371