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
ControlsAxisTagHandler.cs
Go to the documentation of this file.
1using System;
7
8// Token: 0x020000F6 RID: 246
10{
11 // Token: 0x06000678 RID: 1656 RVA: 0x00014E58 File Offset: 0x00013058
12 public static bool MeasureInline(SpriteFont.CharacterSource text, int offset, int endOffset, Vector2 size)
13 {
14 }
15
16 // Token: 0x06000679 RID: 1657 RVA: 0x00014E70 File Offset: 0x00013070
17 public static bool PrintInline(SpriteBatch spriteBatch, Vector2 position, Color color, float scale, SpriteFont.CharacterSource text, int offset, int endOffset, Vector2 size)
18 {
19 }
20
21 // Token: 0x0600067A RID: 1658 RVA: 0x00014E88 File Offset: 0x00013088
22 public TextSnippet Parse(string text, [Optional] Color baseColor, [Optional] string options)
23 {
24 /*
25An exception occurred when decompiling this method (0600067A)
26
27ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.UI.Chat.TextSnippet ControlsAxisTagHandler::Parse(System.String,Microsoft.Xna.Framework.Graphics.Color,System.String)
28
29 ---> System.Exception: Basic block has to end with unconditional control flow.
30{
31 Block_0:
32 stloc:string(var_2_10, call:string(string::Concat, ldstr:string("[ca:"), ldloc:string(var_1), ldstr:string("]")))
33}
34
35 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
36 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
37 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
38 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
39 --- End of inner exception stack trace ---
40 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
41 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
42*/;
43 }
44
45 // Token: 0x0600067B RID: 1659 RVA: 0x00014EA8 File Offset: 0x000130A8
47 {
48 }
49
50 // Token: 0x020000F7 RID: 247
52 {
53 // Token: 0x0600067C RID: 1660 RVA: 0x00014EBC File Offset: 0x000130BC
55 : base("")
56 {
58 if (!true)
59 {
60 }
61 this.Color = 1;
62 }
63
64 // Token: 0x0600067D RID: 1661 RVA: 0x00014EE8 File Offset: 0x000130E8
65 public static bool Draw(GUIControllerInputButton.AxisControl axisControl, bool justCheckingString, [Out] Vector2 size, SpriteBatch spriteBatch, [Optional] Vector2 position, [Optional] Color color, float scale = 1f)
66 {
67 if (true && true)
68 {
69 if (!true)
70 {
71 }
72 if (!true)
73 {
74 }
75 }
77 return true;
78 }
79
80 // Token: 0x0600067E RID: 1662 RVA: 0x00014F0C File Offset: 0x0001310C
81 public override bool UniqueDraw(bool justCheckingString, [Out] Vector2 size, SpriteBatch spriteBatch, [Optional] Vector2 position, [Optional] Color color, float scale = 1f)
82 {
83 bool flag = ControlsAxisTagHandler.ControlsAxisSnippet.Draw(this._axisControl, justCheckingString, size, spriteBatch, position, color, scale);
84 return true;
85 }
86
87 // Token: 0x0600067F RID: 1663 RVA: 0x000021DB File Offset: 0x000003DB
88 public override float GetStringLength(SpriteFont font)
89 {
90 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
91 }
92
93 // Token: 0x040004F4 RID: 1268
95 }
96}
class f__AnonymousType0<< Count > j__TPar
readonly GUIControllerInputButton.AxisControl _axisControl
ControlsAxisSnippet(GUIControllerInputButton.AxisControl axisControl)
static bool Draw(GUIControllerInputButton.AxisControl axisControl, bool justCheckingString, [Out] Vector2 size, SpriteBatch spriteBatch, [Optional] Vector2 position, [Optional] Color color, float scale=1f)
override bool UniqueDraw(bool justCheckingString, [Out] Vector2 size, SpriteBatch spriteBatch, [Optional] Vector2 position, [Optional] Color color, float scale=1f)
override float GetStringLength(SpriteFont font)
static bool MeasureInline(SpriteFont.CharacterSource text, int offset, int endOffset, Vector2 size)
TextSnippet Parse(string text, [Optional] Color baseColor, [Optional] string options)
static bool PrintInline(SpriteBatch spriteBatch, Vector2 position, Color color, float scale, SpriteFont.CharacterSource text, int offset, int endOffset, Vector2 size)