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
GUIString.cs
Go to the documentation of this file.
1using System;
3using System.Text;
7
8// Token: 0x0200011A RID: 282
9public static class GUIString
10{
11 // Token: 0x0600070E RID: 1806 RVA: 0x00018AD4 File Offset: 0x00016CD4
12 public static void Draw(String_Layout layout, TextSnippet[] textSnippets, [Out] int snippetSelected, float maxWidth = -1f, int maxLines = 100)
13 {
14 ControlAnchor.ControlId anchorControl = layout.AnchorControl;
15 Vector2 location = layout.Location;
16 float x = layout.Location.X;
17 float y = layout.Location.Y;
18 SpriteFont font = layout.GetFont();
19 float scale = layout.Scale;
20 LayoutCalculator.AnchorType alignment = layout.Alignment;
21 SpriteFont font2 = layout.GetFont();
22 if (!true)
23 {
24 }
25 if (!true)
26 {
27 }
28 float scale2 = layout.Scale;
29 if (!true)
30 {
31 }
32 }
33
34 // Token: 0x0600070F RID: 1807 RVA: 0x00018B3C File Offset: 0x00016D3C
35 public static string ApplyMultiLineAlignment(String_Layout layout, string value, [Out] int lineCount)
36 {
37 /*
38An exception occurred when decompiling this method (0600070F)
39
40ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String GUIString::ApplyMultiLineAlignment(String_Layout,System.String,System.Int32)
41
42 ---> System.Exception: Basic block has to end with unconditional control flow.
43{
44 IL_00A6:
45 stloc:Vector2(var_67_AF, call:Vector2(SpriteFont::MeasureString, ldloc:SpriteFont(var_66), ldloc:string(var_64)))
46}
47
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 1852
49 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
50 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
51 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
52 --- End of inner exception stack trace ---
53 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
54 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
55*/;
56 }
57
58 // Token: 0x06000710 RID: 1808 RVA: 0x00018C00 File Offset: 0x00016E00
59 public static void Draw(String_Layout layout, string value, Color overloadedColour, bool multilineAlignmentApplied = false)
60 {
61 int num;
62 do
63 {
64 if (!true)
65 {
66 }
67 num = 1;
68 float scale = layout.Scale;
69 if (layout.MultiLineUseAlignment)
70 {
71 float wrapWidth = layout.WrapWidth;
72 float multilineScale = layout.MultilineScale;
73 }
74 ControlAnchor.ControlId anchorControl = layout.AnchorControl;
75 Vector2 location = layout.Location;
76 float x = layout.Location.X;
77 float y = layout.Location.Y;
78 SpriteFont font = layout.GetFont();
79 LayoutCalculator.AnchorType alignment = layout.Alignment;
80 if (num == 0)
81 {
82 }
83 }
84 while (!layout.MultiLineUseAlignment);
85 if (layout.Alignment == (LayoutCalculator.AnchorType)0)
86 {
87 }
88 SpriteFont font2 = layout.GetFont();
89 if (num == 0)
90 {
91 }
92 int num2 = 1;
93 if (num2 == 0)
94 {
95 }
96 int value2 = num2.m_value;
97 int num3 = 1;
98 if (num3 == 0)
99 {
100 }
101 if (num3 == 0)
102 {
103 }
104 }
105
106 // Token: 0x06000711 RID: 1809 RVA: 0x00018D50 File Offset: 0x00016F50
108 {
109 if (!true)
110 {
111 }
112 ControlAnchor.ControlId anchorControl = layout.AnchorControl;
113 Vector2 location = layout.Location;
114 float x = layout.Location.X;
115 float y = layout.Location.Y;
116 SpriteFont font = layout.GetFont();
117 float scale = layout.Scale;
118 LayoutCalculator.AnchorType alignment = layout.Alignment;
119 if (!true)
120 {
121 }
122 SpriteFont font2 = layout.GetFont();
123 if (!true)
124 {
125 }
126 if (!true)
127 {
128 }
129 if (!true)
130 {
131 }
132 float scale2 = layout.Scale;
133 }
134
135 // Token: 0x06000712 RID: 1810 RVA: 0x00018DC0 File Offset: 0x00016FC0
136 public static void Draw(String_Layout layout, string value)
137 {
138 Color color = layout.Color;
139 if (!true)
140 {
141 }
142 long num = 0L;
143 GUIString.Draw(layout, value, color, num != 0L);
144 }
145
146 // Token: 0x06000713 RID: 1811 RVA: 0x00018DE4 File Offset: 0x00016FE4
147 public static void Draw(String_Layout layout, StringBuilder value)
148 {
149 Color color = layout.Color;
150 if (!true)
151 {
152 }
153 GUIString.Draw(layout, value, color);
154 }
155
156 // Token: 0x06000714 RID: 1812 RVA: 0x00018E04 File Offset: 0x00017004
158 {
159 /*
160An exception occurred when decompiling this method (06000714)
161
162ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Vector2 GUIString::CalculateStringPosition(String_Layout,System.String)
163
164 ---> System.Exception: Basic block has to end with unconditional control flow.
165{
166 IL_0045:
167 stloc:AnchorType(var_14_54, ldfld:AnchorType(String_Layout::Alignment, ldloc:String_Layout(layout)))
168}
169
170 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
171 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
172 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
173 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
174 --- End of inner exception stack trace ---
175 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
176 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
177*/;
178 }
179
180 // Token: 0x06000715 RID: 1813 RVA: 0x00018E68 File Offset: 0x00017068
181 public static Rectangle GetRegion(String_Layout layout, string value)
182 {
183 int num = 1;
184 if (num == 0)
185 {
186 }
187 if (num == 0)
188 {
189 return;
190 }
191 }
192
193 // Token: 0x06000716 RID: 1814 RVA: 0x00018E88 File Offset: 0x00017088
194 public static void DrawWithShadow(String_Layout layout, string value, Vector2 position, Color overloadedColour)
195 {
196 if (!true)
197 {
198 }
199 SpriteFont font = layout.GetFont();
200 if (!true)
201 {
202 }
203 if (!true)
204 {
205 }
206 float scale = layout.Scale;
207 if (!true)
208 {
209 }
210 }
211
212 // Token: 0x06000717 RID: 1815 RVA: 0x00018EB4 File Offset: 0x000170B4
213 public static void DrawWithShadow(String_Layout layout, string value, Vector2 stringPosition)
214 {
215 Color color = layout.Color;
216 if (!true)
217 {
218 }
219 }
220
221 // Token: 0x06000718 RID: 1816 RVA: 0x00018ECC File Offset: 0x000170CC
222 public static void DrawWithShadow(String_Layout layout, string value)
223 {
224 if (!true)
225 {
226 }
228 Color color = layout.Color;
229 }
230
231 // Token: 0x06000719 RID: 1817 RVA: 0x00018EEC File Offset: 0x000170EC
233 {
234 if (!true)
235 {
236 }
237 if (!true)
238 {
239 }
240 if (!true)
241 {
242 }
244 }
245
246 // Token: 0x0600071A RID: 1818 RVA: 0x00018F10 File Offset: 0x00017110
247 public static bool DrawButton(String_Layout layout, string value, Color overloadedColour)
248 {
249 /*
250An exception occurred when decompiling this method (0600071A)
251
252ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean GUIString::DrawButton(String_Layout,System.String,Microsoft.Xna.Framework.Graphics.Color)
253
254 ---> System.Exception: Basic block has to end with unconditional control flow.
255{
256 IL_00C0:
257 brtrue(IL_0000, ldloc:int32[exp:bool](var_35_BA))
258}
259
260 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
261 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
262 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
263 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
264 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
265 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
266 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
267 --- End of inner exception stack trace ---
268 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
269 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
270*/;
271 }
272
273 // Token: 0x0600071B RID: 1819 RVA: 0x00018FE8 File Offset: 0x000171E8
274 public static bool DrawButton(String_Layout layout, string value)
275 {
276 if (!true)
277 {
278 }
279 bool flag;
280 return flag;
281 }
282
283 // Token: 0x0600071C RID: 1820 RVA: 0x00018FFC File Offset: 0x000171FC
284 // Note: this type is marked as 'beforefieldinit'.
285 static GUIString()
286 {
287 }
288
289 // Token: 0x04000593 RID: 1427
291}
class f__AnonymousType0<< Count > j__TPar
static void DrawWithShadow(String_Layout layout, string value, Vector2 stringPosition)
Definition GUIString.cs:213
static void DrawWithShadow(String_Layout layout, string value, bool calculatePosition, Color overloadedColour)
Definition GUIString.cs:232
static void Draw(String_Layout layout, TextSnippet[] textSnippets, [Out] int snippetSelected, float maxWidth=-1f, int maxLines=100)
Definition GUIString.cs:12
static void DrawWithShadow(String_Layout layout, string value, Vector2 position, Color overloadedColour)
Definition GUIString.cs:194
static bool DrawButton(String_Layout layout, string value, Color overloadedColour)
Definition GUIString.cs:247
static void Draw(String_Layout layout, string value)
Definition GUIString.cs:136
static Vector2 CalculateStringPosition(String_Layout layout, string value)
Definition GUIString.cs:157
static int MaxLastLineWidthInsertExraLine
Definition GUIString.cs:290
static bool DrawButton(String_Layout layout, string value)
Definition GUIString.cs:274
static void Draw(String_Layout layout, StringBuilder value, Color overloadedColour)
Definition GUIString.cs:107
static string ApplyMultiLineAlignment(String_Layout layout, string value, [Out] int lineCount)
Definition GUIString.cs:35
static void DrawWithShadow(String_Layout layout, string value)
Definition GUIString.cs:222
static void Draw(String_Layout layout, string value, Color overloadedColour, bool multilineAlignmentApplied=false)
Definition GUIString.cs:59
static void Draw(String_Layout layout, StringBuilder value)
Definition GUIString.cs:147
static GUIString()
Definition GUIString.cs:285
static Rectangle GetRegion(String_Layout layout, string value)
Definition GUIString.cs:181