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
GUIStringButton.cs
Go to the documentation of this file.
1using System;
3
4// Token: 0x0200011B RID: 283
5public static class GUIStringButton
6{
7 // Token: 0x0600071D RID: 1821 RVA: 0x0001900C File Offset: 0x0001720C
8 public static Rectangle Region(StringButton_Layout layout)
9 {
10 if (!true)
11 {
12 }
13 if (!true)
14 {
15 return;
16 }
17 }
18
19 // Token: 0x0600071E RID: 1822 RVA: 0x00019030 File Offset: 0x00017230
20 public static bool IsOver(StringButton_Layout layout)
21 {
22 if (!true)
23 {
24 }
25 if (!true)
26 {
27 }
28 bool flag;
29 return flag;
30 }
31
32 // Token: 0x0600071F RID: 1823 RVA: 0x00019058 File Offset: 0x00017258
33 public static bool DrawButton(StringButton_Layout layout, string value, float scale, bool forcedPressed = false, bool buttonDisabled = false)
34 {
35 /*
36An exception occurred when decompiling this method (0600071F)
37
38ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean GUIStringButton::DrawButton(StringButton_Layout,System.String,System.Single,System.Boolean,System.Boolean)
39
40 ---> System.Exception: Basic block has to end with unconditional control flow.
41{
42 IL_0070:
43 brtrue(IL_0000, logicnot:bool(ldloc:int32[exp:bool](var_50_6A)))
44}
45
46 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
47 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
48 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
49 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
50 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
51 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
52 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
53 --- End of inner exception stack trace ---
54 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
55 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
56*/;
57 }
58}
class f__AnonymousType0<< Count > j__TPar
static bool DrawButton(StringButton_Layout layout, string value, float scale, bool forcedPressed=false, bool buttonDisabled=false)
static bool IsOver(StringButton_Layout layout)
static Rectangle Region(StringButton_Layout layout)