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
GUIStyle.cs
Go to the documentation of this file.
1using System;
5
6namespace UnityEngine
7{
8 // Token: 0x0200001C RID: 28
9 [NativeHeader("Modules/IMGUI/GUIStyle.bindings.h")]
11 [NativeHeader("IMGUIScriptingClasses.h")]
13 [StructLayout(0)]
14 public sealed class GUIStyle
15 {
16 // Token: 0x17000049 RID: 73
17 // (get) Token: 0x060000FC RID: 252 RVA: 0x00004A50 File Offset: 0x00002C50
18 // (set) Token: 0x060000FD RID: 253 RVA: 0x00004A64 File Offset: 0x00002C64
19 [NativeProperty("Name", false, TargetType.Function)]
20 internal string rawName
21 {
22 get
23 {
24 throw new MissingMethodException();
25 }
26 set
27 {
28 throw new MissingMethodException();
29 }
30 }
31
32 // Token: 0x1700004A RID: 74
33 // (get) Token: 0x060000FE RID: 254 RVA: 0x00004A78 File Offset: 0x00002C78
34 [NativeProperty("m_ImagePosition", false, TargetType.Field)]
36 {
37 get
38 {
39 throw new MissingMethodException();
40 }
41 }
42
43 // Token: 0x1700004B RID: 75
44 // (get) Token: 0x060000FF RID: 255 RVA: 0x00004A8C File Offset: 0x00002C8C
45 [NativeProperty("m_WordWrap", false, TargetType.Field)]
46 public bool wordWrap
47 {
48 get
49 {
50 throw new MissingMethodException();
51 }
52 }
53
54 // Token: 0x1700004C RID: 76
55 // (get) Token: 0x06000100 RID: 256 RVA: 0x00004AA0 File Offset: 0x00002CA0
56 [NativeProperty("m_FixedWidth", false, TargetType.Field)]
57 public float fixedWidth
58 {
59 get
60 {
61 throw new MissingMethodException();
62 }
63 }
64
65 // Token: 0x1700004D RID: 77
66 // (get) Token: 0x06000101 RID: 257 RVA: 0x00004AB4 File Offset: 0x00002CB4
67 [NativeProperty("m_FixedHeight", false, TargetType.Field)]
68 public float fixedHeight
69 {
70 get
71 {
72 throw new MissingMethodException();
73 }
74 }
75
76 // Token: 0x1700004E RID: 78
77 // (get) Token: 0x06000102 RID: 258 RVA: 0x00004AC8 File Offset: 0x00002CC8
78 [NativeProperty("m_StretchWidth", false, TargetType.Field)]
79 public bool stretchWidth
80 {
81 get
82 {
83 throw new MissingMethodException();
84 }
85 }
86
87 // Token: 0x1700004F RID: 79
88 // (get) Token: 0x06000103 RID: 259 RVA: 0x00004ADC File Offset: 0x00002CDC
89 // (set) Token: 0x06000104 RID: 260 RVA: 0x00004AF0 File Offset: 0x00002CF0
90 [NativeProperty("m_StretchHeight", false, TargetType.Field)]
91 public bool stretchHeight
92 {
93 get
94 {
95 throw new MissingMethodException();
96 }
97 set
98 {
99 throw new MissingMethodException();
100 }
101 }
102
103 // Token: 0x06000105 RID: 261 RVA: 0x00004B04 File Offset: 0x00002D04
104 [FreeFunction(Name = "GUIStyle_Bindings::Internal_Create", IsThreadSafe = true)]
105 private static IntPtr Internal_Create(GUIStyle self)
106 {
107 throw new MissingMethodException();
108 }
109
110 // Token: 0x06000106 RID: 262 RVA: 0x00004B18 File Offset: 0x00002D18
111 [FreeFunction(Name = "GUIStyle_Bindings::Internal_Destroy", IsThreadSafe = true)]
112 private static void Internal_Destroy(IntPtr self)
113 {
114 throw new MissingMethodException();
115 }
116
117 // Token: 0x06000107 RID: 263 RVA: 0x00004B2C File Offset: 0x00002D2C
118 [FreeFunction(Name = "GUIStyle_Bindings::GetStyleStatePtr", IsThreadSafe = true, HasExplicitThis = true)]
119 private IntPtr GetStyleStatePtr(int idx)
120 {
121 throw new MissingMethodException();
122 }
123
124 // Token: 0x06000108 RID: 264 RVA: 0x00004B40 File Offset: 0x00002D40
125 [FreeFunction(Name = "GUIStyle_Bindings::GetRectOffsetPtr", HasExplicitThis = true)]
126 private IntPtr GetRectOffsetPtr(int idx)
127 {
128 throw new MissingMethodException();
129 }
130
131 // Token: 0x06000109 RID: 265 RVA: 0x00004B54 File Offset: 0x00002D54
132 [FreeFunction(Name = "GUIStyle_Bindings::Internal_Draw", HasExplicitThis = true)]
133 private void Internal_Draw(Rect screenRect, GUIContent content, bool isHover, bool isActive, bool on, bool hasKeyboardFocus)
134 {
135 throw new MissingMethodException();
136 }
137
138 // Token: 0x0600010A RID: 266 RVA: 0x00004B68 File Offset: 0x00002D68
139 [FreeFunction(Name = "GUIStyle_Bindings::Internal_Draw2", HasExplicitThis = true)]
140 private void Internal_Draw2(Rect position, GUIContent content, int controlID, bool on)
141 {
142 throw new MissingMethodException();
143 }
144
145 // Token: 0x0600010B RID: 267 RVA: 0x00004B7C File Offset: 0x00002D7C
146 [FreeFunction(Name = "GUIStyle_Bindings::Internal_CalcSizeWithConstraints", HasExplicitThis = true)]
148 {
149 throw new MissingMethodException();
150 }
151
152 // Token: 0x0600010C RID: 268 RVA: 0x00004B90 File Offset: 0x00002D90
153 [FreeFunction(Name = "GUIStyle_Bindings::Internal_CalcHeight", HasExplicitThis = true)]
154 private float Internal_CalcHeight(GUIContent content, float width)
155 {
156 throw new MissingMethodException();
157 }
158
159 // Token: 0x0600010D RID: 269 RVA: 0x00004BA4 File Offset: 0x00002DA4
160 [FreeFunction(Name = "GUIStyle_Bindings::Internal_CalcMinMaxWidth", HasExplicitThis = true)]
162 {
163 throw new MissingMethodException();
164 }
165
166 // Token: 0x0600010E RID: 270 RVA: 0x00004BB8 File Offset: 0x00002DB8
167 [FreeFunction(Name = "GUIStyle_Bindings::SetMouseTooltip")]
168 internal static void SetMouseTooltip(string tooltip, Rect screenRect)
169 {
170 if (!true)
171 {
172 }
173 throw new MissingMethodException();
174 }
175
176 // Token: 0x0600010F RID: 271 RVA: 0x00004BD0 File Offset: 0x00002DD0
177 [FreeFunction(Name = "GUIStyle_Bindings::IsTooltipActive")]
178 internal static bool IsTooltipActive(string tooltip)
179 {
180 throw new MissingMethodException();
181 }
182
183 // Token: 0x06000110 RID: 272 RVA: 0x00004BE4 File Offset: 0x00002DE4
184 [FreeFunction(Name = "GUIStyle::SetDefaultFont")]
185 internal static void SetDefaultFont(Font font)
186 {
187 throw new MissingMethodException();
188 }
189
190 // Token: 0x06000111 RID: 273 RVA: 0x00004BF8 File Offset: 0x00002DF8
191 public GUIStyle()
192 {
193 int num = 1;
194 base..ctor();
195 if (num == 0)
196 {
197 }
198 throw new MissingMethodException();
199 }
200
201 // Token: 0x06000112 RID: 274 RVA: 0x00004C20 File Offset: 0x00002E20
202 protected override void Finalize()
203 {
204 IntPtr ptr = this.m_Ptr;
205 IntPtr ptr2 = this.m_Ptr;
206 throw new MissingMethodException();
207 }
208
209 // Token: 0x17000050 RID: 80
210 // (get) Token: 0x06000113 RID: 275 RVA: 0x00004C6C File Offset: 0x00002E6C
211 // (set) Token: 0x06000114 RID: 276 RVA: 0x00004C90 File Offset: 0x00002E90
212 public string name
213 {
214 get
215 {
216 while (this.m_Name != null)
217 {
218 }
219 throw new MissingMethodException();
220 }
221 set
222 {
224 throw new MissingMethodException();
225 }
226 }
227
228 // Token: 0x17000051 RID: 81
229 // (get) Token: 0x06000115 RID: 277 RVA: 0x00004CAC File Offset: 0x00002EAC
231 {
232 get
233 {
234 if (this.m_Normal == null)
235 {
236 throw new MissingMethodException();
237 }
239 return guistyleState;
240 }
241 }
242
243 // Token: 0x17000052 RID: 82
244 // (get) Token: 0x06000116 RID: 278 RVA: 0x00004CD0 File Offset: 0x00002ED0
246 {
247 get
248 {
249 while (this.m_Margin != null)
250 {
251 }
252 throw new MissingMethodException();
253 }
254 }
255
256 // Token: 0x17000053 RID: 83
257 // (get) Token: 0x06000117 RID: 279 RVA: 0x00004CEC File Offset: 0x00002EEC
259 {
260 get
261 {
262 while (this.m_Padding != null)
263 {
264 }
265 throw new MissingMethodException();
266 }
267 }
268
269 // Token: 0x06000118 RID: 280 RVA: 0x00004D08 File Offset: 0x00002F08
270 public void Draw(Rect position, GUIContent content, bool isHover, bool isActive, bool on, bool hasKeyboardFocus)
271 {
272 this.Internal_Draw(position, content, isHover, isActive, on, hasKeyboardFocus);
273 }
274
275 // Token: 0x06000119 RID: 281 RVA: 0x00004D24 File Offset: 0x00002F24
276 public void Draw(Rect position, GUIContent content, int controlID)
277 {
278 }
279
280 // Token: 0x0600011A RID: 282 RVA: 0x00004D34 File Offset: 0x00002F34
281 public void Draw(Rect position, GUIContent content, int controlID, bool on, bool hover)
282 {
283 throw new MissingMethodException();
284 }
285
286 // Token: 0x0600011B RID: 283 RVA: 0x00004D48 File Offset: 0x00002F48
287 private void Draw(Rect position, GUIContent content, int controlId, bool isHover, bool isActive, bool on, bool hasKeyboardFocus)
288 {
289 this.Internal_Draw2(position, content, controlId, isHover);
290 }
291
292 // Token: 0x17000054 RID: 84
293 // (get) Token: 0x0600011C RID: 284 RVA: 0x00004D70 File Offset: 0x00002F70
294 public static GUIStyle none
295 {
296 get
297 {
298 /*
299An exception occurred when decompiling this method (0600011C)
300
301ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.GUIStyle UnityEngine.GUIStyle::get_none()
302
303 ---> System.Exception: Basic block has to end with unconditional control flow.
304{
305 IL_0003:
306 brtrue(IL_0000, ldc.i4:bool(1))
307}
308
309 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
310 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
311 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
312 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
313 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
314 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
315 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
316 --- End of inner exception stack trace ---
317 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
318 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
319*/;
320 }
321 }
322
323 // Token: 0x0600011D RID: 285 RVA: 0x00004D84 File Offset: 0x00002F84
324 internal Vector2 CalcSizeWithConstraints(GUIContent content, Vector2 constraints)
325 {
326 Vector2 vector = this.Internal_CalcSizeWithConstraints(content, constraints);
328 return vector2;
329 }
330
331 // Token: 0x0600011E RID: 286 RVA: 0x00004D9C File Offset: 0x00002F9C
332 public float CalcHeight(GUIContent content, float width)
333 {
334 throw new MissingMethodException();
335 }
336
337 // Token: 0x17000055 RID: 85
338 // (get) Token: 0x0600011F RID: 287 RVA: 0x00004DB0 File Offset: 0x00002FB0
340 {
341 get
342 {
343 throw new MissingMethodException();
344 }
345 }
346
347 // Token: 0x06000120 RID: 288 RVA: 0x00004DD0 File Offset: 0x00002FD0
348 public void CalcMinMaxWidth(GUIContent content, [Out] float minWidth, [Out] float maxWidth)
349 {
350 Vector2 vector = this.Internal_CalcMinMaxWidth(content);
351 }
352
353 // Token: 0x06000121 RID: 289 RVA: 0x00004DE8 File Offset: 0x00002FE8
354 public override string ToString()
355 {
356 if (this.m_Name == null)
357 {
358 throw new MissingMethodException();
359 }
360 if (this != null)
361 {
362 string text;
363 return text;
364 }
365 throw new ArrayTypeMismatchException();
366 }
367
368 // Token: 0x06000122 RID: 290 RVA: 0x00004E1C File Offset: 0x0000301C
369 // Note: this type is marked as 'beforefieldinit'.
370 static GUIStyle()
371 {
372 }
373
374 // Token: 0x06000123 RID: 291 RVA: 0x00004E2C File Offset: 0x0000302C
376 {
377 throw new MissingMethodException();
378 }
379
380 // Token: 0x06000124 RID: 292 RVA: 0x00004E40 File Offset: 0x00003040
381 private void Internal_Draw2_Injected(Rect position, GUIContent content, int controlID, bool on)
382 {
383 throw new MissingMethodException();
384 }
385
386 // Token: 0x06000125 RID: 293 RVA: 0x00004E54 File Offset: 0x00003054
387 private void Internal_CalcSizeWithConstraints_Injected(GUIContent content, Vector2 maxSize, [Out] Vector2 ret)
388 {
389 throw new MissingMethodException();
390 }
391
392 // Token: 0x06000126 RID: 294 RVA: 0x00004E68 File Offset: 0x00003068
393 private void Internal_CalcMinMaxWidth_Injected(GUIContent content, [Out] Vector2 ret)
394 {
395 throw new MissingMethodException();
396 }
397
398 // Token: 0x06000127 RID: 295 RVA: 0x00004E7C File Offset: 0x0000307C
399 private static void SetMouseTooltip_Injected(string tooltip, Rect screenRect)
400 {
401 throw new MissingMethodException();
402 }
403
404 // Token: 0x040000CA RID: 202
406 internal IntPtr m_Ptr;
407
408 // Token: 0x040000CB RID: 203
411
412 // Token: 0x040000CC RID: 204
415
416 // Token: 0x040000CD RID: 205
419
420 // Token: 0x040000CE RID: 206
423
424 // Token: 0x040000CF RID: 207
427
428 // Token: 0x040000D0 RID: 208
431
432 // Token: 0x040000D1 RID: 209
435
436 // Token: 0x040000D2 RID: 210
439
440 // Token: 0x040000D3 RID: 211
443
444 // Token: 0x040000D4 RID: 212
447
448 // Token: 0x040000D5 RID: 213
451
452 // Token: 0x040000D6 RID: 214
455
456 // Token: 0x040000D7 RID: 215
458 private string m_Name;
459
460 // Token: 0x040000D8 RID: 216
461 internal static bool showKeyboardFocus;
462
463 // Token: 0x040000D9 RID: 217
464 private static GUIStyle s_None;
465 }
466}
class f__AnonymousType0<< Count > j__TPar
override void Finalize()
Definition GUIStyle.cs:202
static GUIStyle s_None
Definition GUIStyle.cs:464
RectOffset margin
Definition GUIStyle.cs:246
void Draw(Rect position, GUIContent content, int controlId, bool isHover, bool isActive, bool on, bool hasKeyboardFocus)
Definition GUIStyle.cs:287
float Internal_CalcHeight(GUIContent content, float width)
Definition GUIStyle.cs:154
override string ToString()
Definition GUIStyle.cs:354
GUIStyleState m_Focused
Definition GUIStyle.cs:422
static IntPtr Internal_Create(GUIStyle self)
Definition GUIStyle.cs:105
RectOffset m_Overflow
Definition GUIStyle.cs:454
RectOffset m_Border
Definition GUIStyle.cs:442
void Internal_CalcSizeWithConstraints_Injected(GUIContent content, Vector2 maxSize, [Out] Vector2 ret)
Definition GUIStyle.cs:387
RectOffset m_Margin
Definition GUIStyle.cs:450
IntPtr GetStyleStatePtr(int idx)
Definition GUIStyle.cs:119
GUIStyleState m_Normal
Definition GUIStyle.cs:410
IntPtr GetRectOffsetPtr(int idx)
Definition GUIStyle.cs:126
Vector2 Internal_CalcSizeWithConstraints(GUIContent content, Vector2 maxSize)
Definition GUIStyle.cs:147
void Draw(Rect position, GUIContent content, int controlID, bool on, bool hover)
Definition GUIStyle.cs:281
GUIStyleState m_OnActive
Definition GUIStyle.cs:434
RectOffset m_Padding
Definition GUIStyle.cs:446
void Internal_Draw_Injected(Rect screenRect, GUIContent content, bool isHover, bool isActive, bool on, bool hasKeyboardFocus)
Definition GUIStyle.cs:375
void Internal_Draw(Rect screenRect, GUIContent content, bool isHover, bool isActive, bool on, bool hasKeyboardFocus)
Definition GUIStyle.cs:133
GUIStyleState m_Hover
Definition GUIStyle.cs:414
bool isHeightDependantOnWidth
Definition GUIStyle.cs:340
static void SetMouseTooltip(string tooltip, Rect screenRect)
Definition GUIStyle.cs:168
ImagePosition imagePosition
Definition GUIStyle.cs:36
static bool IsTooltipActive(string tooltip)
Definition GUIStyle.cs:178
RectOffset padding
Definition GUIStyle.cs:259
void Internal_CalcMinMaxWidth_Injected(GUIContent content, [Out] Vector2 ret)
Definition GUIStyle.cs:393
GUIStyleState normal
Definition GUIStyle.cs:231
GUIStyleState m_Active
Definition GUIStyle.cs:418
static GUIStyle none
Definition GUIStyle.cs:295
GUIStyleState m_OnHover
Definition GUIStyle.cs:430
static void SetMouseTooltip_Injected(string tooltip, Rect screenRect)
Definition GUIStyle.cs:399
void Draw(Rect position, GUIContent content, int controlID)
Definition GUIStyle.cs:276
static bool showKeyboardFocus
Definition GUIStyle.cs:461
void Draw(Rect position, GUIContent content, bool isHover, bool isActive, bool on, bool hasKeyboardFocus)
Definition GUIStyle.cs:270
Vector2 CalcSizeWithConstraints(GUIContent content, Vector2 constraints)
Definition GUIStyle.cs:324
void Internal_Draw2_Injected(Rect position, GUIContent content, int controlID, bool on)
Definition GUIStyle.cs:381
float CalcHeight(GUIContent content, float width)
Definition GUIStyle.cs:332
void CalcMinMaxWidth(GUIContent content, [Out] float minWidth, [Out] float maxWidth)
Definition GUIStyle.cs:348
Vector2 Internal_CalcMinMaxWidth(GUIContent content)
Definition GUIStyle.cs:161
GUIStyleState m_OnFocused
Definition GUIStyle.cs:438
GUIStyleState m_OnNormal
Definition GUIStyle.cs:426
void Internal_Draw2(Rect position, GUIContent content, int controlID, bool on)
Definition GUIStyle.cs:140
static void SetDefaultFont(Font font)
Definition GUIStyle.cs:185
static void Internal_Destroy(IntPtr self)
Definition GUIStyle.cs:112