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
GUIEquipmentLoadout.cs
Go to the documentation of this file.
1using System;
3using Terraria;
5using Terraria.UI;
6
7// Token: 0x02000140 RID: 320
9{
10 // Token: 0x060008A1 RID: 2209 RVA: 0x00023C24 File Offset: 0x00021E24
11 public void CloseExpandedFilter()
12 {
13 if (this.Expanded)
14 {
15 return;
16 }
17 }
18
19 // Token: 0x060008A2 RID: 2210 RVA: 0x00023C3C File Offset: 0x00021E3C
27
28 // Token: 0x060008A3 RID: 2211 RVA: 0x00023C58 File Offset: 0x00021E58
65
66 // Token: 0x060008A4 RID: 2212 RVA: 0x00023E48 File Offset: 0x00022048
68 {
69 long num = 0L;
70 if (this.Expanded)
71 {
72 bool flag;
73 return flag;
74 }
75 return this.GetRegion().Contains(6, (int)num);
76 }
77
78 // Token: 0x060008A5 RID: 2213 RVA: 0x00023E80 File Offset: 0x00022080
85
86 // Token: 0x060008A6 RID: 2214 RVA: 0x00023EA0 File Offset: 0x000220A0
87 public float LoadoutScale(int index)
88 {
89 /*
90An exception occurred when decompiling this method (060008A6)
91
92ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single GUIEquipmentLoadout::LoadoutScale(System.Int32)
93
94 ---> System.Exception: Basic block has to end with unconditional control flow.
95{
96 Block_0:
97 stloc:!0(var_0_05, callgetter:!0(PageControllerLayoutDefinition`1::get_Instance))
98}
99
100 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
101 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
102 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
103 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
104 --- End of inner exception stack trace ---
105 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
106 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
107*/;
108 }
109
110 // Token: 0x060008A7 RID: 2215 RVA: 0x00023EB4 File Offset: 0x000220B4
111 public void LoadoutOver(int index)
112 {
113 int num = 1;
115 if (num == 0)
116 {
117 }
119 if (num == 0)
120 {
121 }
122 bool mouseLeftRelease = Main.mouseLeftRelease;
123 if (num == 0)
124 {
125 }
126 bool mouseLeft = Main.mouseLeft;
127 if (num == 0)
128 {
129 }
130 int myPlayer = Main.myPlayer;
131 this.CloseExpandedFilter();
132 }
133
134 // Token: 0x060008A8 RID: 2216 RVA: 0x00023F00 File Offset: 0x00022100
135 public void LoadoutDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
136 {
137 int num = 1;
138 if (num == 0)
139 {
140 }
141 int num2 = 32640;
142 if (num == 0)
143 {
144 }
145 if (num == 0)
146 {
147 }
148 if (this.loadoutOver == 0)
149 {
150 }
151 string text;
152 string textValue = Language.GetTextValue("UI.Loadout" + text);
153 if ("UI.Loadout" == null)
154 {
155 }
156 if ("UI.Loadout" == null)
157 {
158 }
159 if ("UI.Loadout" == null)
160 {
161 }
163 if (num2 == 0)
164 {
165 }
167 Vector2 vector = rectangle.Size();
168 }
169
170 // Token: 0x060008A9 RID: 2217 RVA: 0x00023F7C File Offset: 0x0002217C
172 {
173 }
174
175 // Token: 0x04000775 RID: 1909
176 public bool Expanded;
177
178 // Token: 0x04000776 RID: 1910
180
181 // Token: 0x04000777 RID: 1911
182 private float buttonScale;
183
184 // Token: 0x04000778 RID: 1912
185 private int loadoutOver;
186
187 // Token: 0x04000779 RID: 1913
188 private float HideShowButtonScale;
189}
class f__AnonymousType0<< Count > j__TPar
void LoadoutDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
float LoadoutScale(int index)
GUIInputRegionExclusive pickingInterceptor
bool IsOver(Vector2 cursorPosition)
void LoadoutOver(int index)
static Rectangle GetRegion(TransactionButton_Layout layout)
static string GetTextValue(string key)
Definition Language.cs:54
static int myPlayer
Definition Main.cs:2337
static bool mouseLeftRelease
Definition Main.cs:2029
static bool mouseLeft
Definition Main.cs:671
static void UpdateTooltipContext(int context, int slot)
Definition ItemSlot.cs:972
static bool ControllerModeLocked