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
GUISettingsOverlay.cs
Go to the documentation of this file.
1using System;
6using Terraria;
8using UnityEngine;
9
10// Token: 0x0200027F RID: 639
12{
13 // Token: 0x06000E72 RID: 3698 RVA: 0x00046BC0 File Offset: 0x00044DC0
14 public void Init()
15 {
16 }
17
18 // Token: 0x06000E73 RID: 3699 RVA: 0x000021DB File Offset: 0x000003DB
19 public void UpdateScroll(GUISettingID _id)
20 {
21 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
22 }
23
24 // Token: 0x06000E74 RID: 3700 RVA: 0x000021DB File Offset: 0x000003DB
26 {
27 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
28 }
29
30 // Token: 0x06000E75 RID: 3701 RVA: 0x00046C50 File Offset: 0x00044E50
31 private bool IsHidden(GUISettingID id)
32 {
33 bool flag;
34 return flag;
35 }
36
37 // Token: 0x06000E76 RID: 3702 RVA: 0x00046CBC File Offset: 0x00044EBC
44
45 // Token: 0x06000E77 RID: 3703 RVA: 0x000021DB File Offset: 0x000003DB
47 {
48 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
49 }
50
51 // Token: 0x06000E78 RID: 3704 RVA: 0x00046D10 File Offset: 0x00044F10
58
59 // Token: 0x06000E79 RID: 3705 RVA: 0x00046D34 File Offset: 0x00044F34
60 public void Shutdown()
61 {
62 if (!true)
63 {
64 }
65 bool inFancyUI = Main.inFancyUI;
68 }
69
70 // Token: 0x06000E7A RID: 3706 RVA: 0x00046D5C File Offset: 0x00044F5C
71 public void Draw()
72 {
73 if (!true)
74 {
75 }
76 }
77
78 // Token: 0x06000E7B RID: 3707 RVA: 0x000021DB File Offset: 0x000003DB
79 private float SettingScale(int index)
80 {
81 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
82 }
83
84 // Token: 0x06000E7C RID: 3708 RVA: 0x00046E34 File Offset: 0x00045034
85 private void SettingOver(int index)
86 {
87 if (!true)
88 {
89 }
90 bool mouseLeft = Main.mouseLeft;
91 }
92
93 // Token: 0x06000E7D RID: 3709 RVA: 0x00046E50 File Offset: 0x00045050
99
100 // Token: 0x06000E7E RID: 3710 RVA: 0x00046E6C File Offset: 0x0004506C
112
113 // Token: 0x06000E7F RID: 3711 RVA: 0x00046EA0 File Offset: 0x000450A0
114 private void DummyOver(int index)
115 {
116 }
117
118 // Token: 0x06000E80 RID: 3712 RVA: 0x00046EB0 File Offset: 0x000450B0
119 public void RefreshInputRegion()
120 {
121 int size = this._categorySettings._size;
122 int num = this.disableScroll;
123 }
124
125 // Token: 0x06000E81 RID: 3713 RVA: 0x00046ED0 File Offset: 0x000450D0
127 {
128 /*
129An exception occurred when decompiling this method (06000E81)
130
131ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Vector2 GUISettingsOverlay::SettingSize(System.Int32)
132
133 ---> System.Exception: Basic block has to end with unconditional control flow.
134{
135 Block_0:
136 stloc:class [mscorlib]System.Collections.Generic.List`1<class GUISettingEntry>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.List`1<class GUISettingEntry>(GUISettingsOverlay::_categorySettings, ldloc:GUISettingsOverlay(this)))
137}
138
139 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
140 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
141 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
142 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
143 --- End of inner exception stack trace ---
144 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
145 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
146*/;
147 }
148
149 // Token: 0x06000E82 RID: 3714 RVA: 0x00046EE4 File Offset: 0x000450E4
150 private void DrawCategoryOptions()
151 {
152 bool flag = this.unconfiguredControllerAttached;
154 this.SetCategory(selected);
155 int size = this._categorySettings._size;
156 int num = this.disableScroll;
157 }
158
159 // Token: 0x06000E83 RID: 3715 RVA: 0x00046F1C File Offset: 0x0004511C
160 private void DrawBacking()
161 {
162 }
163
164 // Token: 0x06000E84 RID: 3716 RVA: 0x00046F2C File Offset: 0x0004512C
165 private void DrawTitle()
166 {
167 string textValue = Language.GetTextValue("GameUI.SettingsMenu");
169 }
170
171 // Token: 0x06000E85 RID: 3717 RVA: 0x00046F78 File Offset: 0x00045178
172 private void ResetSetting(GUISettingID id)
173 {
174 }
175
176 // Token: 0x06000E86 RID: 3718 RVA: 0x000021DB File Offset: 0x000003DB
177 private void ResetPageSettings()
178 {
179 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
180 }
181
182 // Token: 0x06000E87 RID: 3719 RVA: 0x00047274 File Offset: 0x00045474
183 private void DrawMainButtons()
184 {
185 bool mouseLeft = Main.mouseLeft;
186 bool mouseLeftRelease = Main.mouseLeftRelease;
187 bool gameMenu = Main.gameMenu;
189 int num = 1;
192 {
193 this.ResetPageSettings();
194 }
195 if (num == 0)
196 {
197 }
199 int num2 = 1;
202 {
203 return;
204 }
205 if (num2 == 0)
206 {
207 }
208 Main.mouseLeftRelease = false;
210 }
211
212 // Token: 0x06000E88 RID: 3720 RVA: 0x000472F4 File Offset: 0x000454F4
213 public void Close()
214 {
215 if (!true)
216 {
217 }
218 bool gameMenu = Main.gameMenu;
219 }
220
221 // Token: 0x06000E89 RID: 3721 RVA: 0x00047318 File Offset: 0x00045518
222 private void DrawCategories()
223 {
224 if (this._categoriesBlocker != null)
225 {
226 }
227 bool mouseLeft = Main.mouseLeft;
228 bool mouseLeftRelease = Main.mouseLeftRelease;
229 int num = 17096;
230 this.TimeSinceItemChange = (float)num;
247 {
249 }
253 {
255 }
259 {
261 }
265 {
267 }
271 {
273 }
277 {
279 }
283 {
285 }
289 {
291 }
293 if (guisettingEntry != null)
294 {
297 }
299 float deltaTime = Time.deltaTime;
301 if (categoriesBlocker != null)
302 {
303 int num2 = 1;
305 }
306 }
307
308 // Token: 0x06000E8A RID: 3722 RVA: 0x000474FC File Offset: 0x000456FC
309 public void LooseFocus()
310 {
311 if (!this.hasFocus || this._categoriesBlocker != null)
312 {
313 }
314 }
315
316 // Token: 0x06000E8B RID: 3723 RVA: 0x0004751C File Offset: 0x0004571C
317 private void GainFocus()
318 {
319 if (!this.hasFocus)
320 {
323 this.hasFocus = true;
324 }
325 }
326
327 // Token: 0x06000E8C RID: 3724 RVA: 0x00047540 File Offset: 0x00045740
329 {
330 do
331 {
332 bool inFancyUI = Main.inFancyUI;
333 }
334 while (this.overlayEntry != null);
336 int bottom = rectangle.Bottom;
337 bool flag;
338 return flag;
339 }
340
341 // Token: 0x06000E8D RID: 3725 RVA: 0x0004756C File Offset: 0x0004576C
343 {
344 }
345
346 // Token: 0x04001A62 RID: 6754
348
349 // Token: 0x04001A63 RID: 6755
351
352 // Token: 0x04001A64 RID: 6756
354
355 // Token: 0x04001A65 RID: 6757
357
358 // Token: 0x04001A66 RID: 6758
359 public int PendingSelected = 1;
360
361 // Token: 0x04001A67 RID: 6759
362 private int disableScroll;
363
364 // Token: 0x04001A68 RID: 6760
366
367 // Token: 0x04001A69 RID: 6761
369
370 // Token: 0x04001A6A RID: 6762
371 public float ScrollOffset;
372
373 // Token: 0x04001A6B RID: 6763
374 private float ScrollMomentum;
375
376 // Token: 0x04001A6C RID: 6764
377 private int ScrollDragging;
378
379 // Token: 0x04001A6D RID: 6765
381
382 // Token: 0x04001A6E RID: 6766
384
385 // Token: 0x04001A6F RID: 6767
386 private float titleScale;
387
388 // Token: 0x04001A70 RID: 6768
389 private float GeneralButtonScale;
390
391 // Token: 0x04001A71 RID: 6769
392 private float CursorButtonScale;
393
394 // Token: 0x04001A72 RID: 6770
395 private float VideoButtonScale;
396
397 // Token: 0x04001A73 RID: 6771
398 private float LanguageButtonScale;
399
400 // Token: 0x04001A74 RID: 6772
402
403 // Token: 0x04001A75 RID: 6773
405
406 // Token: 0x04001A76 RID: 6774
407 private float InterfaceButtonScale;
408
409 // Token: 0x04001A77 RID: 6775
410 private float InfoButtonScale;
411
412 // Token: 0x04001A78 RID: 6776
414
415 // Token: 0x04001A79 RID: 6777
417
418 // Token: 0x04001A7A RID: 6778
419 private float TimeSinceItemChange;
420
421 // Token: 0x04001A7B RID: 6779
423
424 // Token: 0x04001A7C RID: 6780
425 private bool hasFocus;
426
427 // Token: 0x04001A7D RID: 6781
429
430 // Token: 0x02000280 RID: 640
432 [Serializable]
433 private sealed class <>c
434 {
435 // Token: 0x06000E8E RID: 3726 RVA: 0x00047588 File Offset: 0x00045788
436 // Note: this type is marked as 'beforefieldinit'.
437 static <>c()
438 {
439 }
440
441 // Token: 0x06000E8F RID: 3727 RVA: 0x00047598 File Offset: 0x00045798
442 public <>c()
443 {
444 }
445
446 // Token: 0x06000E90 RID: 3728 RVA: 0x000475AC File Offset: 0x000457AC
448 {
449 int sortId = e2._sortId;
450 int num;
451 return num;
452 }
453
454 // Token: 0x04001A7E RID: 6782
455 public static readonly GUISettingsOverlay.<>c <>9;
456
457 // Token: 0x04001A7F RID: 6783
458 public static Comparison<GUISettingEntry> <>9__10_0;
459 }
460}
class f__AnonymousType0<< Count > j__TPar
GUISettingID
static DrPlatform.DrPlatformType CurrentPlatform
Definition DrPlatform.cs:26
GUIInputRegionExclusive _categoriesBlocker
GUIControllerSettingsOverlay _controllerInput
void SettingDraw(ItemGrid_Layout gridLayout, int index, Microsoft.Xna.Framework.Vector2 position, float scale)
SettingsOverlayOptionCategories_Layout.Category[] TabOrder
GUISettingEntry overlayEntry
float SettingScale(int index)
SettingsOverlayOptionCategories_Layout.Category Selected
bool IsHidden(GUISettingID id)
bool IsDisabled(GUISettingID id)
void SettingOver(int index)
Microsoft.Xna.Framework.Vector2 SettingSize(int index)
void DummyOver(int index)
void ResetSetting(GUISettingID id)
void SetCategory(SettingsOverlayOptionCategories_Layout.Category category)
void RegisterOverlay(GUISettingEntry entry, Rectangle region)
List< GUISettingEntry > _categorySettings
Microsoft.Xna.Framework.Vector2 DragOffset
void UpdateScroll(GUISettingID _id)
bool IsFullyVisible(GUISettingID _id)
void DummyDraw(ItemGrid_Layout gridLayout, int index, Microsoft.Xna.Framework.Vector2 position, float scale)
List< GUISettingEntry > _allSettings
bool IsOverCategories(Microsoft.Xna.Framework.Vector2 cursorPosition)
static string GetTextValue(string key)
Definition Language.cs:54
static bool inFancyUI
Definition Main.cs:825
static bool mouseLeftRelease
Definition Main.cs:2029
static bool gameMenu
Definition Main.cs:2673
static bool mouseLeft
Definition Main.cs:671
static float deltaTime
Definition Time.cs:14