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
GUIJourneyModeSettings.cs
Go to the documentation of this file.
1using System;
7using Terraria;
9using UnityEngine;
10
11// Token: 0x02000151 RID: 337
13{
14 // Token: 0x06000935 RID: 2357 RVA: 0x000021DB File Offset: 0x000003DB
15 public void Init()
16 {
17 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
18 }
19
20 // Token: 0x06000936 RID: 2358 RVA: 0x000285E8 File Offset: 0x000267E8
22 {
23 /*
24An exception occurred when decompiling this method (06000936)
25
26ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Graphics.Texture2D GUIJourneyModeSettings::GetIconTexture(GUISettingID,Microsoft.Xna.Framework.Rectangle)
27
28 ---> System.Exception: Basic block has to end with unconditional control flow.
29{
30 IL_0003:
31 stfld:int32(GUISettingID::value__, ldloc:GUISettingID[exp:valuetype GUISettingID&](id), ldloc:Rectangle[exp:int32](var_2))
32}
33
34 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
35 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
36 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
37 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
38 --- End of inner exception stack trace ---
39 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
40 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
41*/;
42 }
43
44 // Token: 0x06000937 RID: 2359 RVA: 0x00028604 File Offset: 0x00026804
50
51 // Token: 0x06000938 RID: 2360 RVA: 0x00028620 File Offset: 0x00026820
52 public void DrawButton()
53 {
54 bool mapFullscreen = Main.mapFullscreen;
58 {
59 return;
60 }
61 if (this.Enabled)
62 {
63 this.Close();
64 return;
65 }
66 }
67
68 // Token: 0x06000939 RID: 2361 RVA: 0x00028658 File Offset: 0x00026858
69 public void Draw()
70 {
71 bool enabled = this.Enabled;
72 if (enabled)
73 {
74 if (!enabled)
75 {
76 }
77 bool gameMenu = Main.gameMenu;
78 if (!enabled)
79 {
80 }
82 if (!enabled)
83 {
84 }
85 this.GainFocus();
87 return;
88 }
89 }
90
91 // Token: 0x0600093A RID: 2362 RVA: 0x000021DB File Offset: 0x000003DB
92 private float SettingScale(int index)
93 {
94 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
95 }
96
97 // Token: 0x0600093B RID: 2363 RVA: 0x000286E0 File Offset: 0x000268E0
98 private void SettingOver(int index)
99 {
100 if ("Only TraceListeners can be added to a TraceListenerCollection." == null)
101 {
102 }
103 bool mouseLeft = Main.mouseLeft;
104 }
105
106 // Token: 0x0600093C RID: 2364 RVA: 0x0002870C File Offset: 0x0002690C
112
113 // Token: 0x0600093D RID: 2365 RVA: 0x00028728 File Offset: 0x00026928
115 {
116 /*
117An exception occurred when decompiling this method (0600093D)
118
119ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Vector2 GUIJourneyModeSettings::SettingSize(System.Int32)
120
121 ---> System.Exception: Basic block has to end with unconditional control flow.
122{
123 Block_0:
124 stloc:class [mscorlib]System.Collections.Generic.List`1<class GUISettingEntry>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.List`1<class GUISettingEntry>(GUIJourneyModeSettings::_categorySettings, ldloc:GUIJourneyModeSettings(this)))
125}
126
127 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
128 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
129 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
130 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
131 --- End of inner exception stack trace ---
132 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
133 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
134*/;
135 }
136
137 // Token: 0x0600093E RID: 2366 RVA: 0x0002873C File Offset: 0x0002693C
138 private void DrawCategoryOptions()
139 {
140 int size = this._categorySettings._size;
141 }
142
143 // Token: 0x0600093F RID: 2367 RVA: 0x00028758 File Offset: 0x00026958
144 private void DrawTitle()
145 {
146 string textValue = Language.GetTextValue("Mobile.JourneySettingsMenu");
147 }
148
149 // Token: 0x06000940 RID: 2368 RVA: 0x00028770 File Offset: 0x00026970
150 public void DrawBacking()
151 {
152 }
153
154 // Token: 0x06000941 RID: 2369 RVA: 0x00028780 File Offset: 0x00026980
156 {
158 this.overlayRegion.Width = (int)category;
159 if (timeSettings._size == 0)
160 {
161 this.Init();
163 }
164 }
165
166 // Token: 0x06000942 RID: 2370 RVA: 0x000287B8 File Offset: 0x000269B8
167 public void DrawCategories()
168 {
169 if (this._categoriesBlocker != null)
170 {
171 }
172 bool mouseLeft = Main.mouseLeft;
173 bool mouseLeftRelease = Main.mouseLeftRelease;
174 int num = 17096;
175 this.TimeSinceItemChange = (float)num;
176 if (num == 0)
177 {
178 }
181 int num2 = 3;
185 int num3 = 3;
188 string textValue = Language.GetTextValue("Mobile.JourneyCategoryTime");
192 {
194 }
195 string textValue2 = Language.GetTextValue("Mobile.JourneyCategoryWeather");
199 {
201 }
202 string textValue3 = Language.GetTextValue("Mobile.JourneyCategoryPowers");
206 {
208 }
210 float deltaTime = Time.deltaTime;
211 this.DrawMainButtons();
213 if (categoriesBlocker != null)
214 {
215 int num4 = 1;
217 }
218 }
219
220 // Token: 0x06000943 RID: 2371 RVA: 0x000288DC File Offset: 0x00026ADC
221 private void DrawMainButtons()
222 {
223 bool mouseLeft = Main.mouseLeft;
224 bool mouseLeftRelease = Main.mouseLeftRelease;
229 {
231 if (guisettingEntry != null)
232 {
233 return;
234 }
235 if (guisettingEntry == null)
236 {
237 }
238 }
239 if (guisettingEntry == null)
240 {
241 }
242 Main.mouseLeftRelease = false;
243 this.Close();
244 }
245
246 // Token: 0x06000944 RID: 2372 RVA: 0x00028934 File Offset: 0x00026B34
247 public void Close()
248 {
249 if (!this.OpenedFromInv)
250 {
251 bool gameMenu = Main.gameMenu;
252 }
253 }
254
255 // Token: 0x06000945 RID: 2373 RVA: 0x00028954 File Offset: 0x00026B54
256 public void LooseFocus()
257 {
258 if (!this.hasFocus || this._categoriesBlocker != null)
259 {
260 }
261 }
262
263 // Token: 0x06000946 RID: 2374 RVA: 0x00028974 File Offset: 0x00026B74
264 private void GainFocus()
265 {
266 if (!this.hasFocus)
267 {
270 this.hasFocus = true;
271 }
272 }
273
274 // Token: 0x06000947 RID: 2375 RVA: 0x00028998 File Offset: 0x00026B98
276 {
277 if (this.Enabled && this.overlayEntry == null)
278 {
280 int bottom = rectangle.Bottom;
281 bool flag;
282 return flag;
283 }
284 }
285
286 // Token: 0x06000948 RID: 2376 RVA: 0x000289C0 File Offset: 0x00026BC0
288 {
289 }
290
291 // Token: 0x06000949 RID: 2377 RVA: 0x000289D4 File Offset: 0x00026BD4
292 // Note: this type is marked as 'beforefieldinit'.
294 {
295 }
296
297 // Token: 0x040008D3 RID: 2259
298 public bool Enabled;
299
300 // Token: 0x040008D4 RID: 2260
301 public bool OpenedFromInv;
302
303 // Token: 0x040008D5 RID: 2261
304 private float jwButtonScale;
305
306 // Token: 0x040008D6 RID: 2262
308
309 // Token: 0x040008D7 RID: 2263
311
312 // Token: 0x040008D8 RID: 2264
314
315 // Token: 0x040008D9 RID: 2265
317
318 // Token: 0x040008DA RID: 2266
319 private float TimeSinceItemChange;
320
321 // Token: 0x040008DB RID: 2267
323
324 // Token: 0x040008DC RID: 2268
326
327 // Token: 0x040008DD RID: 2269
329
330 // Token: 0x040008DE RID: 2270
332
333 // Token: 0x040008DF RID: 2271
334 public float ScrollOffset;
335
336 // Token: 0x040008E0 RID: 2272
337 private float ScrollMomentum;
338
339 // Token: 0x040008E1 RID: 2273
340 private int ScrollDragging;
341
342 // Token: 0x040008E2 RID: 2274
344
345 // Token: 0x040008E3 RID: 2275
346 private float titleScale;
347
348 // Token: 0x040008E4 RID: 2276
350
351 // Token: 0x040008E5 RID: 2277
353
354 // Token: 0x040008E6 RID: 2278
355 private float PowerButtonScale;
356
357 // Token: 0x040008E7 RID: 2279
358 private float TimeButtonScale;
359
360 // Token: 0x040008E8 RID: 2280
361 private float WeatherButtonScale;
362
363 // Token: 0x040008E9 RID: 2281
364 private float CloseButtonScale;
365
366 // Token: 0x040008EA RID: 2282
367 private bool hasFocus;
368
369 // Token: 0x040008EB RID: 2283
371
372 // Token: 0x02000152 RID: 338
373 public enum Category
374 {
375 // Token: 0x040008ED RID: 2285
376 Time,
377 // Token: 0x040008EE RID: 2286
378 Weather,
379 // Token: 0x040008EF RID: 2287
380 Powers
381 }
382}
class f__AnonymousType0<< Count > j__TPar
GUISettingID
static GUIJourneyModeSettings.Category[] TabOrder
GUIInputRegionExclusive _categoriesBlocker
Microsoft.Xna.Framework.Vector2 SettingSize(int index)
List< GUISettingEntry > _categorySettings
GUIControllerJourneyModeSettings _controllerInput
List< GUISettingEntry > _powerSettings
void RegisterOverlay(GUISettingEntry entry, Rectangle region)
void SettingDraw(ItemGrid_Layout gridLayout, int index, Microsoft.Xna.Framework.Vector2 position, float scale)
bool IsOverCategories(Microsoft.Xna.Framework.Vector2 cursorPosition)
GUIJourneyModeSettings.Category Selected
List< GUISettingEntry > _timeSettings
static Microsoft.Xna.Framework.Graphics.Texture2D infinitePowersMenu
Microsoft.Xna.Framework.Vector2 DragOffset
static Microsoft.Xna.Framework.Graphics.Texture2D GetIconTexture(GUISettingID id, [Out] Rectangle frame)
List< GUISettingEntry > _weatherSettings
void SetCategory(GUIJourneyModeSettings.Category category)
static string GetTextValue(string key)
Definition Language.cs:54
static bool mouseLeftRelease
Definition Main.cs:2029
static int GameMode
Definition Main.cs:4141
static bool gameMenu
Definition Main.cs:2673
static bool mapFullscreen
Definition Main.cs:1441
static bool mouseLeft
Definition Main.cs:671
static float deltaTime
Definition Time.cs:14