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
UIElement.cs
Go to the documentation of this file.
1using System;
10
11namespace Terraria.UI
12{
13 // Token: 0x0200071D RID: 1821
14 public class UIElement : IComparable
15 {
16 // Token: 0x17000764 RID: 1892
17 // (get) Token: 0x06003C34 RID: 15412 RVA: 0x00235B7C File Offset: 0x00233D7C
18 // (set) Token: 0x06003C35 RID: 15413 RVA: 0x00235B90 File Offset: 0x00233D90
20 {
22 get
23 {
24 return this.<Parent>k__BackingField;
25 }
27 private set
28 {
30 }
31 }
32
33 // Token: 0x17000765 RID: 1893
34 // (get) Token: 0x06003C36 RID: 15414 RVA: 0x00235BA4 File Offset: 0x00233DA4
35 // (set) Token: 0x06003C37 RID: 15415 RVA: 0x00235BB8 File Offset: 0x00233DB8
36 public int UniqueId
37 {
39 get
40 {
41 return this.<UniqueId>k__BackingField;
42 }
44 private set
45 {
47 }
48 }
49
50 // Token: 0x17000766 RID: 1894
51 // (get) Token: 0x06003C38 RID: 15416 RVA: 0x00235BCC File Offset: 0x00233DCC
53 {
54 get
55 {
56 /*
57An exception occurred when decompiling this method (06003C38)
58
59ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerable`1<Terraria.UI.UIElement> Terraria.UI.UIElement::get_Children()
60
61 ---> System.Exception: Basic block has to end with unconditional control flow.
62{
63 Block_0:
64 stloc:class [mscorlib]System.Collections.Generic.List`1<class Terraria.UI.UIElement>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.List`1<class Terraria.UI.UIElement>(UIElement::Elements, ldloc:UIElement(this)))
65}
66
67 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
68 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
69 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
70 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
71 --- End of inner exception stack trace ---
72 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
73 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
74*/;
75 }
76 }
77
78 // Token: 0x14000047 RID: 71
79 // (add) Token: 0x06003C39 RID: 15417 RVA: 0x00235BE0 File Offset: 0x00233DE0
80 // (remove) Token: 0x06003C3A RID: 15418 RVA: 0x00235C04 File Offset: 0x00233E04
82 {
84 add
85 {
86 if (Delegate.Combine(this.OnLeftMouseDown, value) != null)
87 {
88 }
89 }
91 remove
92 {
93 if (Delegate.Remove(this.OnLeftMouseDown, value) != null)
94 {
95 }
96 }
97 }
98
99 // Token: 0x14000048 RID: 72
100 // (add) Token: 0x06003C3B RID: 15419 RVA: 0x00235C28 File Offset: 0x00233E28
101 // (remove) Token: 0x06003C3C RID: 15420 RVA: 0x00235C4C File Offset: 0x00233E4C
103 {
105 add
106 {
107 if (Delegate.Combine(this.OnLeftMouseUp, value) != null)
108 {
109 }
110 }
112 remove
113 {
114 if (Delegate.Remove(this.OnLeftMouseUp, value) != null)
115 {
116 }
117 }
118 }
119
120 // Token: 0x14000049 RID: 73
121 // (add) Token: 0x06003C3D RID: 15421 RVA: 0x00235C70 File Offset: 0x00233E70
122 // (remove) Token: 0x06003C3E RID: 15422 RVA: 0x00235C94 File Offset: 0x00233E94
124 {
126 add
127 {
128 if (Delegate.Combine(this.OnLeftClick, value) != null)
129 {
130 }
131 }
133 remove
134 {
135 if (Delegate.Remove(this.OnLeftClick, value) != null)
136 {
137 }
138 }
139 }
140
141 // Token: 0x1400004A RID: 74
142 // (add) Token: 0x06003C3F RID: 15423 RVA: 0x00235CB8 File Offset: 0x00233EB8
143 // (remove) Token: 0x06003C40 RID: 15424 RVA: 0x00235CDC File Offset: 0x00233EDC
145 {
147 add
148 {
149 if (Delegate.Combine(this.OnLeftDoubleClick, value) != null)
150 {
151 }
152 }
154 remove
155 {
156 if (Delegate.Remove(this.OnLeftDoubleClick, value) != null)
157 {
158 }
159 }
160 }
161
162 // Token: 0x1400004B RID: 75
163 // (add) Token: 0x06003C41 RID: 15425 RVA: 0x00235D00 File Offset: 0x00233F00
164 // (remove) Token: 0x06003C42 RID: 15426 RVA: 0x00235D24 File Offset: 0x00233F24
166 {
168 add
169 {
170 if (Delegate.Combine(this.OnRightMouseDown, value) != null)
171 {
172 }
173 }
175 remove
176 {
177 if (Delegate.Remove(this.OnRightMouseDown, value) != null)
178 {
179 }
180 }
181 }
182
183 // Token: 0x1400004C RID: 76
184 // (add) Token: 0x06003C43 RID: 15427 RVA: 0x00235D48 File Offset: 0x00233F48
185 // (remove) Token: 0x06003C44 RID: 15428 RVA: 0x00235D6C File Offset: 0x00233F6C
187 {
189 add
190 {
191 if (Delegate.Combine(this.OnRightMouseUp, value) != null)
192 {
193 }
194 }
196 remove
197 {
198 if (Delegate.Remove(this.OnRightMouseUp, value) != null)
199 {
200 }
201 }
202 }
203
204 // Token: 0x1400004D RID: 77
205 // (add) Token: 0x06003C45 RID: 15429 RVA: 0x00235D90 File Offset: 0x00233F90
206 // (remove) Token: 0x06003C46 RID: 15430 RVA: 0x00235DB4 File Offset: 0x00233FB4
208 {
210 add
211 {
212 if (Delegate.Combine(this.OnRightClick, value) != null)
213 {
214 }
215 }
217 remove
218 {
219 if (Delegate.Remove(this.OnRightClick, value) != null)
220 {
221 }
222 }
223 }
224
225 // Token: 0x1400004E RID: 78
226 // (add) Token: 0x06003C47 RID: 15431 RVA: 0x00235DD8 File Offset: 0x00233FD8
227 // (remove) Token: 0x06003C48 RID: 15432 RVA: 0x00235DFC File Offset: 0x00233FFC
229 {
231 add
232 {
233 if (Delegate.Combine(this.OnRightDoubleClick, value) != null)
234 {
235 }
236 }
238 remove
239 {
240 if (Delegate.Remove(this.OnRightDoubleClick, value) != null)
241 {
242 }
243 }
244 }
245
246 // Token: 0x1400004F RID: 79
247 // (add) Token: 0x06003C49 RID: 15433 RVA: 0x00235E20 File Offset: 0x00234020
248 // (remove) Token: 0x06003C4A RID: 15434 RVA: 0x00235E44 File Offset: 0x00234044
250 {
252 add
253 {
254 if (Delegate.Combine(this.OnMouseOver, value) != null)
255 {
256 }
257 }
259 remove
260 {
261 if (Delegate.Remove(this.OnMouseOver, value) != null)
262 {
263 }
264 }
265 }
266
267 // Token: 0x14000050 RID: 80
268 // (add) Token: 0x06003C4B RID: 15435 RVA: 0x00235E68 File Offset: 0x00234068
269 // (remove) Token: 0x06003C4C RID: 15436 RVA: 0x00235E8C File Offset: 0x0023408C
271 {
273 add
274 {
275 if (Delegate.Combine(this.OnMouseOut, value) != null)
276 {
277 }
278 }
280 remove
281 {
282 if (Delegate.Remove(this.OnMouseOut, value) != null)
283 {
284 }
285 }
286 }
287
288 // Token: 0x14000051 RID: 81
289 // (add) Token: 0x06003C4D RID: 15437 RVA: 0x00235EB0 File Offset: 0x002340B0
290 // (remove) Token: 0x06003C4E RID: 15438 RVA: 0x00235ED4 File Offset: 0x002340D4
292 {
294 add
295 {
296 if (Delegate.Combine(this.OnScrollWheel, value) != null)
297 {
298 }
299 }
301 remove
302 {
303 if (Delegate.Remove(this.OnScrollWheel, value) != null)
304 {
305 }
306 }
307 }
308
309 // Token: 0x14000052 RID: 82
310 // (add) Token: 0x06003C4F RID: 15439 RVA: 0x00235EF8 File Offset: 0x002340F8
311 // (remove) Token: 0x06003C50 RID: 15440 RVA: 0x00235F1C File Offset: 0x0023411C
313 {
315 add
316 {
317 if (Delegate.Combine(this.OnUpdate, value) != null)
318 {
319 }
320 }
322 remove
323 {
324 if (Delegate.Remove(this.OnUpdate, value) != null)
325 {
326 }
327 }
328 }
329
330 // Token: 0x17000767 RID: 1895
331 // (get) Token: 0x06003C51 RID: 15441 RVA: 0x00235F40 File Offset: 0x00234140
332 // (set) Token: 0x06003C52 RID: 15442 RVA: 0x00235F54 File Offset: 0x00234154
333 public bool IsMouseHovering
334 {
336 get
337 {
338 return this.<IsMouseHovering>k__BackingField;
339 }
341 private set
342 {
343 }
344 }
345
346 // Token: 0x06003C53 RID: 15443 RVA: 0x00235F64 File Offset: 0x00234164
347 public UIElement()
348 {
349 if (!true)
350 {
351 }
352 base..ctor();
353 }
354
355 // Token: 0x06003C54 RID: 15444 RVA: 0x00235F7C File Offset: 0x0023417C
356 public void SetSnapPoint(string name, int id, [Optional] Vector2? anchor, [Optional] Vector2? offset)
357 {
358 if (!true)
359 {
360 }
361 if (!true)
362 {
363 }
364 }
365
366 // Token: 0x06003C55 RID: 15445 RVA: 0x00235F90 File Offset: 0x00234190
367 public bool GetSnapPoint([Out] SnapPoint point)
368 {
369 /*
370An exception occurred when decompiling this method (06003C55)
371
372ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.UI.UIElement::GetSnapPoint(Terraria.UI.SnapPoint)
373
374 ---> System.Exception: Basic block has to end with unconditional control flow.
375{
376 Block_0:
377 call:void(SnapPoint::Calculate, ldloc:SnapPoint(var_1_0D), ldloc:UIElement(this))
378 stloc:SnapPoint(var_2_1E, ldfld:SnapPoint(UIElement::_snapPoint, ldloc:UIElement(this)))
379}
380
381 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
382 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
383 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
384 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
385 --- End of inner exception stack trace ---
386 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
387 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
388*/;
389 }
390
391 // Token: 0x06003C56 RID: 15446 RVA: 0x00235FBC File Offset: 0x002341BC
393 {
394 IntPtr invoke_impl = action.invoke_impl;
395 IntPtr method_code = action.method_code;
396 IntPtr method = action.method;
397 List<UIElement> elements = this.Elements;
398 }
399
400 // Token: 0x06003C57 RID: 15447 RVA: 0x00235FFC File Offset: 0x002341FC
401 protected virtual void DrawSelf(SpriteBatch spriteBatch)
402 {
403 }
404
405 // Token: 0x06003C58 RID: 15448 RVA: 0x0023600C File Offset: 0x0023420C
406 protected virtual void DrawChildren(SpriteBatch spriteBatch)
407 {
408 List<UIElement> elements = this.Elements;
409 }
410
411 // Token: 0x06003C59 RID: 15449 RVA: 0x000021DB File Offset: 0x000003DB
412 public void Append(UIElement element)
413 {
414 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
415 }
416
417 // Token: 0x06003C5A RID: 15450 RVA: 0x00236034 File Offset: 0x00234234
418 public void Remove()
419 {
421 if (uielement != null)
422 {
423 uielement.RemoveChild(this);
424 return;
425 }
426 }
427
428 // Token: 0x06003C5B RID: 15451 RVA: 0x00236054 File Offset: 0x00234254
429 public void RemoveChild(UIElement child)
430 {
431 List<UIElement> elements = this.Elements;
432 }
433
434 // Token: 0x06003C5C RID: 15452 RVA: 0x000021DB File Offset: 0x000003DB
435 public void RemoveAllChildren()
436 {
437 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
438 }
439
440 // Token: 0x06003C5D RID: 15453 RVA: 0x00236068 File Offset: 0x00234268
441 public virtual void Draw(SpriteBatch spriteBatch)
442 {
443 bool overflowHidden = this.OverflowHidden;
444 GraphicsDevice graphicsDevice = spriteBatch.graphicsDevice;
448 int width = graphicsDevice._scissorRectangle.Width;
449 if (!overflowHidden)
450 {
451 }
452 if (useImmediateMode || this.OverrideSamplerState != null)
453 {
454 spriteBatch.End();
455 if (width == 0)
456 {
457 }
459 if (!overflowHidden)
460 {
461 }
462 if (overrideSamplerState == null)
463 {
464 }
465 if (!true)
466 {
467 }
468 spriteBatch.End();
469 if (!true)
470 {
471 }
472 if (true)
473 {
474 spriteBatch.End();
478 if (!true)
479 {
480 }
481 if (!true)
482 {
483 }
484 if (overrideSamplerState == null)
485 {
486 }
487 if (!true)
488 {
489 }
490 spriteBatch.End();
493 return;
494 }
495 }
496 else
497 {
499 while (graphicsDevice2 == null)
500 {
501 }
502 }
503 }
504
505 // Token: 0x06003C5E RID: 15454 RVA: 0x00236134 File Offset: 0x00234334
506 public virtual void Update(GameTime gameTime)
507 {
509 if (onUpdate != null)
510 {
511 IntPtr invoke_impl = onUpdate.invoke_impl;
512 IntPtr method_code = onUpdate.method_code;
513 IntPtr method = onUpdate.method;
514 }
515 List<UIElement> elements = this.Elements;
516 }
517
518 // Token: 0x06003C5F RID: 15455 RVA: 0x00236180 File Offset: 0x00234380
520 {
521 /*
522An exception occurred when decompiling this method (06003C5F)
523
524ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Rectangle Terraria.UI.UIElement::GetClippingRectangle(Microsoft.Xna.Framework.Graphics.SpriteBatch)
525
526 ---> System.Exception: Basic block has to end with unconditional control flow.
527{
528 IL_0063:
529 stloc:GraphicsDevice(var_13_69, ldfld:GraphicsDevice(GraphicsResource::graphicsDevice, ldloc:SpriteBatch[exp:GraphicsResource](spriteBatch)))
530}
531
532 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
533 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
534 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
535 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
536 --- End of inner exception stack trace ---
537 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
538 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
539*/;
540 }
541
542 // Token: 0x06003C60 RID: 15456 RVA: 0x002361F8 File Offset: 0x002343F8
544 {
546 if (snapPoint != null)
547 {
548 snapPoint.Calculate(this);
550 }
551 if (snapPoint != null)
552 {
554 }
555 List<UIElement> elements = this.Elements;
556 throw new OutOfMemoryException();
557 }
558
559 // Token: 0x06003C61 RID: 15457 RVA: 0x00236244 File Offset: 0x00234444
560 public virtual void Recalculate()
561 {
563 float x;
564 float y;
565 float width;
566 float height;
567 if (uielement != null)
568 {
569 x = uielement._innerDimensions.X;
570 y = uielement._innerDimensions.Y;
571 width = uielement._innerDimensions.Width;
572 height = uielement._innerDimensions.Height;
573 return;
574 }
575 if (uielement == null)
576 {
577 }
578 if (this.<Parent>k__BackingField != null)
579 {
580 }
581 float marginTop = this.MarginTop;
582 float marginLeft = this.MarginLeft;
583 float marginRight = this.MarginRight;
584 float marginBottom = this.MarginBottom;
588 float paddingTop = this.PaddingTop;
589 float paddingLeft = this.PaddingLeft;
590 float paddingRight = this.PaddingRight;
592 float paddingBottom = this.PaddingBottom;
601 }
602
603 // Token: 0x06003C62 RID: 15458 RVA: 0x0023636C File Offset: 0x0023456C
605 {
606 /*
607An exception occurred when decompiling this method (06003C62)
608
609ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.UI.CalculatedStyle Terraria.UI.UIElement::GetDimensionsBasedOnParentDimensions(Terraria.UI.CalculatedStyle)
610
611 ---> System.Exception: Basic block has to end with unconditional control flow.
612{
613 Block_0:
614 stloc:float32(var_0_0B, ldfld:float32(StyleDimension::Pixels, ldfld:StyleDimension[exp:valuetype Terraria.UI.StyleDimension&](UIElement::Left, ldloc:UIElement(this))))
615 stloc:float32(var_1_17, ldfld:float32(StyleDimension::Precent, ldfld:StyleDimension[exp:valuetype Terraria.UI.StyleDimension&](UIElement::Left, ldloc:UIElement(this))))
616 stloc:float32(var_2_23, ldfld:float32(StyleDimension::Pixels, ldfld:StyleDimension[exp:valuetype Terraria.UI.StyleDimension&](UIElement::Top, ldloc:UIElement(this))))
617 stloc:float32(var_3_2F, ldfld:float32(StyleDimension::Precent, ldfld:StyleDimension[exp:valuetype Terraria.UI.StyleDimension&](UIElement::Top, ldloc:UIElement(this))))
618 stloc:float32(var_4_3B, ldfld:float32(StyleDimension::Pixels, ldfld:StyleDimension[exp:valuetype Terraria.UI.StyleDimension&](UIElement::MinWidth, ldloc:UIElement(this))))
619 stloc:float32(var_5_48, ldfld:float32(StyleDimension::Precent, ldfld:StyleDimension[exp:valuetype Terraria.UI.StyleDimension&](UIElement::MinWidth, ldloc:UIElement(this))))
620 stloc:float32(var_6_55, ldfld:float32(StyleDimension::Pixels, ldfld:StyleDimension[exp:valuetype Terraria.UI.StyleDimension&](UIElement::MaxWidth, ldloc:UIElement(this))))
621 stloc:float32(var_7_62, ldfld:float32(StyleDimension::Precent, ldfld:StyleDimension[exp:valuetype Terraria.UI.StyleDimension&](UIElement::MaxWidth, ldloc:UIElement(this))))
622 stloc:float32(var_8_6F, ldfld:float32(StyleDimension::Pixels, ldfld:StyleDimension[exp:valuetype Terraria.UI.StyleDimension&](UIElement::MinHeight, ldloc:UIElement(this))))
623 stloc:float32(var_9_7C, ldfld:float32(StyleDimension::Precent, ldfld:StyleDimension[exp:valuetype Terraria.UI.StyleDimension&](UIElement::MinHeight, ldloc:UIElement(this))))
624 stloc:float32(var_10_89, ldfld:float32(StyleDimension::Pixels, ldfld:StyleDimension[exp:valuetype Terraria.UI.StyleDimension&](UIElement::Width, ldloc:UIElement(this))))
625 stloc:float32(var_11_96, ldfld:float32(StyleDimension::Precent, ldfld:StyleDimension[exp:valuetype Terraria.UI.StyleDimension&](UIElement::Width, ldloc:UIElement(this))))
626 stloc:float32(var_12_A3, ldfld:float32(StyleDimension::Pixels, ldfld:StyleDimension[exp:valuetype Terraria.UI.StyleDimension&](UIElement::MaxHeight, ldloc:UIElement(this))))
627 stloc:float32(var_13_B0, ldfld:float32(StyleDimension::Precent, ldfld:StyleDimension[exp:valuetype Terraria.UI.StyleDimension&](UIElement::MaxHeight, ldloc:UIElement(this))))
628 stloc:float32(var_16_C0, ldfld:float32(StyleDimension::Pixels, ldfld:StyleDimension[exp:valuetype Terraria.UI.StyleDimension&](UIElement::Height, ldloc:UIElement(this))))
629 stloc:float32(var_17_CD, ldfld:float32(StyleDimension::Precent, ldfld:StyleDimension[exp:valuetype Terraria.UI.StyleDimension&](UIElement::Height, ldloc:UIElement(this))))
630 stloc:float32(var_20_D8, ldfld:float32(UIElement::MarginTop, ldloc:UIElement(this)))
631 stloc:float32(var_21_E0, ldfld:float32(UIElement::MarginLeft, ldloc:UIElement(this)))
632 stloc:float32(var_22_E8, ldfld:float32(UIElement::MarginRight, ldloc:UIElement(this)))
633 stloc:float32(var_23_F0, ldfld:float32(UIElement::MarginBottom, ldloc:UIElement(this)))
634 stloc:float32(var_24_F8, ldfld:float32(UIElement::HAlign, ldloc:UIElement(this)))
635 stloc:float32(var_25_100, ldfld:float32(UIElement::VAlign, ldloc:UIElement(this)))
636}
637
638 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
639 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
640 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
641 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
642 --- End of inner exception stack trace ---
643 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
644 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
645*/;
646 }
647
648 // Token: 0x06003C63 RID: 15459 RVA: 0x0023647C File Offset: 0x0023467C
650 {
651 /*
652An exception occurred when decompiling this method (06003C63)
653
654ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.UI.UIElement Terraria.UI.UIElement::GetElementAt(Microsoft.Xna.Framework.Vector2)
655
656 ---> System.Exception: Basic block has to end with unconditional control flow.
657{
658 IL_000D:
659 stloc:class [mscorlib]System.Collections.Generic.List`1<class Terraria.UI.UIElement>(var_0_13, ldfld:class [mscorlib]System.Collections.Generic.List`1<class Terraria.UI.UIElement>(UIElement::Elements, ldloc:UIElement(this)))
660}
661
662 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
663 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
664 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
665 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
666 --- End of inner exception stack trace ---
667 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
668 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
669*/;
670 }
671
672 // Token: 0x06003C64 RID: 15460 RVA: 0x002364A0 File Offset: 0x002346A0
673 public virtual bool ContainsPoint(Vector2 point)
674 {
675 /*
676An exception occurred when decompiling this method (06003C64)
677
678ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.UI.UIElement::ContainsPoint(Microsoft.Xna.Framework.Vector2)
679
680 ---> System.Exception: Basic block has to end with unconditional control flow.
681{
682 Block_0:
683 stloc:float32(var_0_0B, ldfld:float32(CalculatedStyle::X, ldfld:CalculatedStyle[exp:valuetype Terraria.UI.CalculatedStyle&](UIElement::_dimensions, ldloc:UIElement(this))))
684 stloc:float32(var_1_17, ldfld:float32(CalculatedStyle::Y, ldfld:CalculatedStyle[exp:valuetype Terraria.UI.CalculatedStyle&](UIElement::_dimensions, ldloc:UIElement(this))))
685 stloc:float32(var_2_23, ldfld:float32(CalculatedStyle::Width, ldfld:CalculatedStyle[exp:valuetype Terraria.UI.CalculatedStyle&](UIElement::_dimensions, ldloc:UIElement(this))))
686 stloc:float32(var_3_2F, ldfld:float32(CalculatedStyle::Height, ldfld:CalculatedStyle[exp:valuetype Terraria.UI.CalculatedStyle&](UIElement::_dimensions, ldloc:UIElement(this))))
687}
688
689 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
690 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
691 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
692 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
693 --- End of inner exception stack trace ---
694 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
695 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
696*/;
697 }
698
699 // Token: 0x06003C65 RID: 15461 RVA: 0x002364E0 File Offset: 0x002346E0
701 {
703 return rectangle;
704 }
705
706 // Token: 0x06003C66 RID: 15462 RVA: 0x002364F0 File Offset: 0x002346F0
707 public void SetPadding(float pixels)
708 {
709 }
710
711 // Token: 0x06003C67 RID: 15463 RVA: 0x00236500 File Offset: 0x00234700
712 public virtual void RecalculateChildren()
713 {
714 List<UIElement> elements = this.Elements;
715 }
716
717 // Token: 0x06003C68 RID: 15464 RVA: 0x00236528 File Offset: 0x00234728
719 {
720 /*
721An exception occurred when decompiling this method (06003C68)
722
723ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.UI.CalculatedStyle Terraria.UI.UIElement::GetInnerDimensions()
724
725 ---> System.Exception: Basic block has to end with unconditional control flow.
726{
727 Block_0:
728 stloc:float32(var_0_0B, ldfld:float32(CalculatedStyle::X, ldfld:CalculatedStyle[exp:valuetype Terraria.UI.CalculatedStyle&](UIElement::_innerDimensions, ldloc:UIElement(this))))
729 stloc:float32(var_1_17, ldfld:float32(CalculatedStyle::Y, ldfld:CalculatedStyle[exp:valuetype Terraria.UI.CalculatedStyle&](UIElement::_innerDimensions, ldloc:UIElement(this))))
730 stloc:float32(var_2_23, ldfld:float32(CalculatedStyle::Width, ldfld:CalculatedStyle[exp:valuetype Terraria.UI.CalculatedStyle&](UIElement::_innerDimensions, ldloc:UIElement(this))))
731 stloc:float32(var_3_2F, ldfld:float32(CalculatedStyle::Height, ldfld:CalculatedStyle[exp:valuetype Terraria.UI.CalculatedStyle&](UIElement::_innerDimensions, ldloc:UIElement(this))))
732}
733
734 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
735 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
736 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
737 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
738 --- End of inner exception stack trace ---
739 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
740 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
741*/;
742 }
743
744 // Token: 0x06003C69 RID: 15465 RVA: 0x00236564 File Offset: 0x00234764
746 {
747 /*
748An exception occurred when decompiling this method (06003C69)
749
750ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.UI.CalculatedStyle Terraria.UI.UIElement::GetDimensions()
751
752 ---> System.Exception: Basic block has to end with unconditional control flow.
753{
754 Block_0:
755 stloc:float32(var_0_0B, ldfld:float32(CalculatedStyle::X, ldfld:CalculatedStyle[exp:valuetype Terraria.UI.CalculatedStyle&](UIElement::_dimensions, ldloc:UIElement(this))))
756 stloc:float32(var_1_17, ldfld:float32(CalculatedStyle::Y, ldfld:CalculatedStyle[exp:valuetype Terraria.UI.CalculatedStyle&](UIElement::_dimensions, ldloc:UIElement(this))))
757 stloc:float32(var_2_23, ldfld:float32(CalculatedStyle::Width, ldfld:CalculatedStyle[exp:valuetype Terraria.UI.CalculatedStyle&](UIElement::_dimensions, ldloc:UIElement(this))))
758 stloc:float32(var_3_2F, ldfld:float32(CalculatedStyle::Height, ldfld:CalculatedStyle[exp:valuetype Terraria.UI.CalculatedStyle&](UIElement::_dimensions, ldloc:UIElement(this))))
759}
760
761 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
762 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
763 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
764 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
765 --- End of inner exception stack trace ---
766 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
767 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
768*/;
769 }
770
771 // Token: 0x06003C6A RID: 15466 RVA: 0x002365A0 File Offset: 0x002347A0
773 {
774 /*
775An exception occurred when decompiling this method (06003C6A)
776
777ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.UI.CalculatedStyle Terraria.UI.UIElement::GetOuterDimensions()
778
779 ---> System.Exception: Basic block has to end with unconditional control flow.
780{
781 Block_0:
782 stloc:float32(var_0_0B, ldfld:float32(CalculatedStyle::X, ldfld:CalculatedStyle[exp:valuetype Terraria.UI.CalculatedStyle&](UIElement::_outerDimensions, ldloc:UIElement(this))))
783 stloc:float32(var_1_17, ldfld:float32(CalculatedStyle::Y, ldfld:CalculatedStyle[exp:valuetype Terraria.UI.CalculatedStyle&](UIElement::_outerDimensions, ldloc:UIElement(this))))
784 stloc:float32(var_2_23, ldfld:float32(CalculatedStyle::Width, ldfld:CalculatedStyle[exp:valuetype Terraria.UI.CalculatedStyle&](UIElement::_outerDimensions, ldloc:UIElement(this))))
785 stloc:float32(var_3_2F, ldfld:float32(CalculatedStyle::Height, ldfld:CalculatedStyle[exp:valuetype Terraria.UI.CalculatedStyle&](UIElement::_outerDimensions, ldloc:UIElement(this))))
786}
787
788 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
789 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
790 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
791 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
792 --- End of inner exception stack trace ---
793 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
794 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
795*/;
796 }
797
798 // Token: 0x06003C6B RID: 15467 RVA: 0x002365DC File Offset: 0x002347DC
799 public void CopyStyle(UIElement element)
800 {
801 float halign = element.HAlign;
803 }
804
805 // Token: 0x06003C6C RID: 15468 RVA: 0x002365F8 File Offset: 0x002347F8
806 public virtual void LeftMouseDown(UIMouseEvent evt)
807 {
809 if (onLeftMouseDown != null)
810 {
811 IntPtr invoke_impl = onLeftMouseDown.invoke_impl;
812 IntPtr method_code = onLeftMouseDown.method_code;
813 IntPtr method = onLeftMouseDown.method;
814 }
815 if (this.<Parent>k__BackingField != null)
816 {
817 return;
818 }
819 }
820
821 // Token: 0x06003C6D RID: 15469 RVA: 0x00236630 File Offset: 0x00234830
822 public virtual void LeftMouseUp(UIMouseEvent evt)
823 {
825 if (onLeftMouseUp != null)
826 {
827 IntPtr invoke_impl = onLeftMouseUp.invoke_impl;
828 IntPtr method_code = onLeftMouseUp.method_code;
829 IntPtr method = onLeftMouseUp.method;
830 }
831 if (this.<Parent>k__BackingField != null)
832 {
833 return;
834 }
835 }
836
837 // Token: 0x06003C6E RID: 15470 RVA: 0x00236668 File Offset: 0x00234868
838 public virtual void LeftClick(UIMouseEvent evt)
839 {
841 if (onLeftClick != null)
842 {
843 IntPtr invoke_impl = onLeftClick.invoke_impl;
844 IntPtr method_code = onLeftClick.method_code;
845 IntPtr method = onLeftClick.method;
846 }
847 if (this.<Parent>k__BackingField != null)
848 {
849 return;
850 }
851 }
852
853 // Token: 0x06003C6F RID: 15471 RVA: 0x002366A0 File Offset: 0x002348A0
854 public virtual void LeftDoubleClick(UIMouseEvent evt)
855 {
857 if (onLeftDoubleClick != null)
858 {
859 IntPtr invoke_impl = onLeftDoubleClick.invoke_impl;
860 IntPtr method_code = onLeftDoubleClick.method_code;
861 IntPtr method = onLeftDoubleClick.method;
862 }
863 if (this.<Parent>k__BackingField != null)
864 {
865 return;
866 }
867 }
868
869 // Token: 0x06003C70 RID: 15472 RVA: 0x002366D8 File Offset: 0x002348D8
870 public virtual void RightMouseDown(UIMouseEvent evt)
871 {
873 if (onRightMouseDown != null)
874 {
875 IntPtr invoke_impl = onRightMouseDown.invoke_impl;
876 IntPtr method_code = onRightMouseDown.method_code;
877 IntPtr method = onRightMouseDown.method;
878 }
879 if (this.<Parent>k__BackingField != null)
880 {
881 return;
882 }
883 }
884
885 // Token: 0x06003C71 RID: 15473 RVA: 0x00236710 File Offset: 0x00234910
886 public virtual void RightMouseUp(UIMouseEvent evt)
887 {
889 if (onRightMouseUp != null)
890 {
891 IntPtr invoke_impl = onRightMouseUp.invoke_impl;
892 IntPtr method_code = onRightMouseUp.method_code;
893 IntPtr method = onRightMouseUp.method;
894 }
895 if (this.<Parent>k__BackingField != null)
896 {
897 return;
898 }
899 }
900
901 // Token: 0x06003C72 RID: 15474 RVA: 0x00236748 File Offset: 0x00234948
902 public virtual void RightClick(UIMouseEvent evt)
903 {
905 if (onRightClick != null)
906 {
907 IntPtr invoke_impl = onRightClick.invoke_impl;
908 IntPtr method_code = onRightClick.method_code;
909 IntPtr method = onRightClick.method;
910 }
911 if (this.<Parent>k__BackingField != null)
912 {
913 return;
914 }
915 }
916
917 // Token: 0x06003C73 RID: 15475 RVA: 0x00236780 File Offset: 0x00234980
918 public virtual void RightDoubleClick(UIMouseEvent evt)
919 {
921 if (onRightDoubleClick != null)
922 {
923 IntPtr invoke_impl = onRightDoubleClick.invoke_impl;
924 IntPtr method_code = onRightDoubleClick.method_code;
925 IntPtr method = onRightDoubleClick.method;
926 }
927 if (this.<Parent>k__BackingField != null)
928 {
929 return;
930 }
931 }
932
933 // Token: 0x06003C74 RID: 15476 RVA: 0x002367B8 File Offset: 0x002349B8
934 public virtual void MouseOver(UIMouseEvent evt)
935 {
937 this.<IsMouseHovering>k__BackingField = true;
938 if (onMouseOver != null)
939 {
940 IntPtr invoke_impl = onMouseOver.invoke_impl;
941 IntPtr method_code = onMouseOver.method_code;
942 IntPtr method = onMouseOver.method;
943 }
944 if (this.<Parent>k__BackingField != null)
945 {
946 return;
947 }
948 }
949
950 // Token: 0x06003C75 RID: 15477 RVA: 0x002367F4 File Offset: 0x002349F4
951 public virtual void MouseOut(UIMouseEvent evt)
952 {
954 if (onMouseOut != null)
955 {
956 IntPtr invoke_impl = onMouseOut.invoke_impl;
957 IntPtr method_code = onMouseOut.method_code;
958 IntPtr method = onMouseOut.method;
959 }
960 if (this.<Parent>k__BackingField != null)
961 {
962 return;
963 }
964 }
965
966 // Token: 0x06003C76 RID: 15478 RVA: 0x0023682C File Offset: 0x00234A2C
967 public virtual void ScrollWheel(UIScrollWheelEvent evt)
968 {
970 if (onScrollWheel != null)
971 {
972 IntPtr invoke_impl = onScrollWheel.invoke_impl;
973 IntPtr method_code = onScrollWheel.method_code;
974 IntPtr method = onScrollWheel.method;
975 }
976 if (this.<Parent>k__BackingField != null)
977 {
978 return;
979 }
980 }
981
982 // Token: 0x06003C77 RID: 15479 RVA: 0x00236864 File Offset: 0x00234A64
983 public void Activate()
984 {
985 if (!this._isInitialized)
986 {
987 this._isInitialized = true;
988 }
989 List<UIElement> elements = this.Elements;
990 }
991
992 // Token: 0x06003C78 RID: 15480 RVA: 0x0023689C File Offset: 0x00234A9C
993 public virtual void OnActivate()
994 {
995 }
996
997 // Token: 0x06003C79 RID: 15481 RVA: 0x002368AC File Offset: 0x00234AAC
998 [Conditional("ENABLE_DEBUG")]
999 [Conditional("UNITY_EDITOR")]
1001 {
1002 bool flag = this.<IsMouseHovering>k__BackingField;
1003 float x = this._innerDimensions.X;
1004 if (!flag)
1005 {
1006 }
1007 List<UIElement> elements = this.Elements;
1008 }
1009
1010 // Token: 0x06003C7A RID: 15482 RVA: 0x00236900 File Offset: 0x00234B00
1011 public void Deactivate()
1012 {
1013 List<UIElement> elements = this.Elements;
1014 }
1015
1016 // Token: 0x06003C7B RID: 15483 RVA: 0x00236928 File Offset: 0x00234B28
1017 public virtual void OnDeactivate()
1018 {
1019 }
1020
1021 // Token: 0x06003C7C RID: 15484 RVA: 0x00236938 File Offset: 0x00234B38
1022 public void Initialize()
1023 {
1024 this._isInitialized = true;
1025 }
1026
1027 // Token: 0x06003C7D RID: 15485 RVA: 0x0023694C File Offset: 0x00234B4C
1028 public virtual void OnInitialize()
1029 {
1030 }
1031
1032 // Token: 0x06003C7E RID: 15486 RVA: 0x0023695C File Offset: 0x00234B5C
1033 public virtual int CompareTo(object obj)
1034 {
1035 }
1036
1037 // Token: 0x06003C7F RID: 15487 RVA: 0x0023696C File Offset: 0x00234B6C
1038 // Note: this type is marked as 'beforefieldinit'.
1039 static UIElement()
1040 {
1041 }
1042
1043 // Token: 0x04007B86 RID: 31622
1045 private UIElement <Parent>k__BackingField;
1046
1047 // Token: 0x04007B87 RID: 31623
1049
1050 // Token: 0x04007B88 RID: 31624
1052 private int <UniqueId>k__BackingField;
1053
1054 // Token: 0x04007B89 RID: 31625
1056
1057 // Token: 0x04007B8A RID: 31626
1059
1060 // Token: 0x04007B8B RID: 31627
1062
1063 // Token: 0x04007B8C RID: 31628
1065
1066 // Token: 0x04007B8D RID: 31629
1068
1069 // Token: 0x04007B8E RID: 31630
1071
1072 // Token: 0x04007B8F RID: 31631
1074
1075 // Token: 0x04007B90 RID: 31632
1077
1078 // Token: 0x04007B91 RID: 31633
1081
1082 // Token: 0x04007B92 RID: 31634
1085
1086 // Token: 0x04007B93 RID: 31635
1089
1090 // Token: 0x04007B94 RID: 31636
1093
1094 // Token: 0x04007B95 RID: 31637
1097
1098 // Token: 0x04007B96 RID: 31638
1101
1102 // Token: 0x04007B97 RID: 31639
1105
1106 // Token: 0x04007B98 RID: 31640
1109
1110 // Token: 0x04007B99 RID: 31641
1113
1114 // Token: 0x04007B9A RID: 31642
1117
1118 // Token: 0x04007B9B RID: 31643
1121
1122 // Token: 0x04007B9C RID: 31644
1125
1126 // Token: 0x04007B9D RID: 31645
1127 private bool _isInitialized;
1128
1129 // Token: 0x04007B9E RID: 31646
1131
1132 // Token: 0x04007B9F RID: 31647
1133 public bool OverflowHidden;
1134
1135 // Token: 0x04007BA0 RID: 31648
1137
1138 // Token: 0x04007BA1 RID: 31649
1139 public float PaddingTop;
1140
1141 // Token: 0x04007BA2 RID: 31650
1142 public float PaddingLeft;
1143
1144 // Token: 0x04007BA3 RID: 31651
1145 public float PaddingRight;
1146
1147 // Token: 0x04007BA4 RID: 31652
1148 public float PaddingBottom;
1149
1150 // Token: 0x04007BA5 RID: 31653
1151 public float MarginTop;
1152
1153 // Token: 0x04007BA6 RID: 31654
1154 public float MarginLeft;
1155
1156 // Token: 0x04007BA7 RID: 31655
1157 public float MarginRight;
1158
1159 // Token: 0x04007BA8 RID: 31656
1160 public float MarginBottom;
1161
1162 // Token: 0x04007BA9 RID: 31657
1163 public float HAlign;
1164
1165 // Token: 0x04007BAA RID: 31658
1166 public float VAlign;
1167
1168 // Token: 0x04007BAB RID: 31659
1170
1171 // Token: 0x04007BAC RID: 31660
1173
1174 // Token: 0x04007BAD RID: 31661
1176
1177 // Token: 0x04007BAE RID: 31662
1179
1180 // Token: 0x04007BAF RID: 31663
1181 public bool UseImmediateMode;
1182
1183 // Token: 0x04007BB0 RID: 31664
1185
1186 // Token: 0x04007BB1 RID: 31665
1188 private bool <IsMouseHovering>k__BackingField;
1189
1190 // Token: 0x04007BB2 RID: 31666
1191 private static int _idCounter;
1192
1193 // Token: 0x0200071E RID: 1822
1194 public sealed class MouseEvent : MulticastDelegate
1195 {
1196 // Token: 0x06003C80 RID: 15488 RVA: 0x0023697C File Offset: 0x00234B7C
1197 public MouseEvent(object @object, IntPtr method)
1198 {
1200 this.m_target = @object;
1202 this.method_code = this;
1203 }
1204
1205 // Token: 0x06003C81 RID: 15489 RVA: 0x002369DC File Offset: 0x00234BDC
1212
1213 // Token: 0x06003C82 RID: 15490 RVA: 0x000021DB File Offset: 0x000003DB
1215 {
1216 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1217 }
1218
1219 // Token: 0x06003C83 RID: 15491 RVA: 0x00236A00 File Offset: 0x00234C00
1220 public void EndInvoke(IAsyncResult result)
1221 {
1222 }
1223 }
1224
1225 // Token: 0x0200071F RID: 1823
1227 {
1228 // Token: 0x06003C84 RID: 15492 RVA: 0x00236A10 File Offset: 0x00234C10
1229 public ScrollWheelEvent(object @object, IntPtr method)
1230 {
1232 this.m_target = @object;
1234 this.method_code = this;
1235 }
1236
1237 // Token: 0x06003C85 RID: 15493 RVA: 0x00236A70 File Offset: 0x00234C70
1244
1245 // Token: 0x06003C86 RID: 15494 RVA: 0x000021DB File Offset: 0x000003DB
1247 {
1248 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1249 }
1250
1251 // Token: 0x06003C87 RID: 15495 RVA: 0x00236A94 File Offset: 0x00234C94
1252 public void EndInvoke(IAsyncResult result)
1253 {
1254 }
1255 }
1256
1257 // Token: 0x02000720 RID: 1824
1258 public sealed class ElementEvent : MulticastDelegate
1259 {
1260 // Token: 0x06003C88 RID: 15496 RVA: 0x00236AA4 File Offset: 0x00234CA4
1261 public ElementEvent(object @object, IntPtr method)
1262 {
1264 this.m_target = @object;
1266 this.method_code = this;
1267 }
1268
1269 // Token: 0x06003C89 RID: 15497 RVA: 0x00236B04 File Offset: 0x00234D04
1271 {
1274 IntPtr method = this.method;
1275 }
1276
1277 // Token: 0x06003C8A RID: 15498 RVA: 0x000021DB File Offset: 0x000003DB
1279 {
1280 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1281 }
1282
1283 // Token: 0x06003C8B RID: 15499 RVA: 0x00236B28 File Offset: 0x00234D28
1284 public void EndInvoke(IAsyncResult result)
1285 {
1286 }
1287 }
1288
1289 // Token: 0x02000721 RID: 1825
1291 {
1292 // Token: 0x06003C8C RID: 15500 RVA: 0x00236B38 File Offset: 0x00234D38
1293 public UIElementAction(object @object, IntPtr method)
1294 {
1296 this.m_target = @object;
1298 this.method_code = this;
1299 }
1300
1301 // Token: 0x06003C8D RID: 15501 RVA: 0x00236B98 File Offset: 0x00234D98
1302 public void Invoke(UIElement element)
1303 {
1306 IntPtr method = this.method;
1307 }
1308
1309 // Token: 0x06003C8E RID: 15502 RVA: 0x000021DB File Offset: 0x000003DB
1310 public IAsyncResult BeginInvoke(UIElement element, AsyncCallback callback, object @object)
1311 {
1312 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
1313 }
1314
1315 // Token: 0x06003C8F RID: 15503 RVA: 0x00236BBC File Offset: 0x00234DBC
1316 public void EndInvoke(IAsyncResult result)
1317 {
1318 }
1319 }
1320 }
1321}
class f__AnonymousType0<< Count > j__TPar
static Delegate Combine(Delegate a, Delegate b)
Definition Delegate.cs:255
IntPtr method_code
Definition Delegate.cs:386
IntPtr invoke_impl
Definition Delegate.cs:371
static Delegate Remove(Delegate source, Delegate value)
Definition Delegate.cs:278
void Calculate(UIElement element)
Definition SnapPoint.cs:56
ElementEvent(object @object, IntPtr method)
void EndInvoke(IAsyncResult result)
IAsyncResult BeginInvoke(UIElement affectedElement, AsyncCallback callback, object @object)
void Invoke(UIElement affectedElement)
void EndInvoke(IAsyncResult result)
void Invoke(UIMouseEvent evt, UIElement listeningElement)
MouseEvent(object @object, IntPtr method)
IAsyncResult BeginInvoke(UIMouseEvent evt, UIElement listeningElement, AsyncCallback callback, object @object)
ScrollWheelEvent(object @object, IntPtr method)
IAsyncResult BeginInvoke(UIScrollWheelEvent evt, UIElement listeningElement, AsyncCallback callback, object @object)
void Invoke(UIScrollWheelEvent evt, UIElement listeningElement)
void EndInvoke(IAsyncResult result)
void Invoke(UIElement element)
IAsyncResult BeginInvoke(UIElement element, AsyncCallback callback, object @object)
void EndInvoke(IAsyncResult result)
UIElementAction(object @object, IntPtr method)
virtual void Update(GameTime gameTime)
Definition UIElement.cs:506
CalculatedStyle GetOuterDimensions()
Definition UIElement.cs:772
StyleDimension Height
virtual void MouseOver(UIMouseEvent evt)
Definition UIElement.cs:934
static readonly RasterizerState OverflowHiddenRasterizerState
StyleDimension MaxWidth
int< UniqueId > k__BackingField
UIElement.MouseEvent OnMouseOut
Definition UIElement.cs:271
UIElement GetElementAt(Vector2 point)
Definition UIElement.cs:649
virtual int CompareTo(object obj)
UIElement.MouseEvent OnLeftDoubleClick
Definition UIElement.cs:145
virtual void RightMouseDown(UIMouseEvent evt)
Definition UIElement.cs:870
StyleDimension MinWidth
void DrawDebugHitbox(BasicDebugDrawer drawer, float colorIntensity=0f)
UIElement.MouseEvent OnLeftClick
Definition UIElement.cs:124
UIElement.MouseEvent OnRightMouseUp
Definition UIElement.cs:187
UIElement.MouseEvent OnRightMouseDown
Definition UIElement.cs:166
virtual void Draw(SpriteBatch spriteBatch)
Definition UIElement.cs:441
virtual void OnDeactivate()
void Append(UIElement element)
Definition UIElement.cs:412
virtual void RightDoubleClick(UIMouseEvent evt)
Definition UIElement.cs:918
virtual void RightMouseUp(UIMouseEvent evt)
Definition UIElement.cs:886
virtual void RightClick(UIMouseEvent evt)
Definition UIElement.cs:902
UIElement.MouseEvent OnRightClick
Definition UIElement.cs:208
CalculatedStyle GetInnerDimensions()
Definition UIElement.cs:718
virtual void LeftClick(UIMouseEvent evt)
Definition UIElement.cs:838
StyleDimension Left
UIElement.ScrollWheelEvent OnScrollWheel
Definition UIElement.cs:292
bool GetSnapPoint([Out] SnapPoint point)
Definition UIElement.cs:367
CalculatedStyle _innerDimensions
virtual void MouseOut(UIMouseEvent evt)
Definition UIElement.cs:951
UIElement.MouseEvent OnLeftMouseDown
Definition UIElement.cs:82
virtual void DrawSelf(SpriteBatch spriteBatch)
Definition UIElement.cs:401
virtual void ScrollWheel(UIScrollWheelEvent evt)
Definition UIElement.cs:967
UIElement< Parent > k__BackingField
virtual void LeftMouseDown(UIMouseEvent evt)
Definition UIElement.cs:806
StyleDimension MaxHeight
UIElement.ElementEvent OnUpdate
Definition UIElement.cs:313
IEnumerable< UIElement > Children
Definition UIElement.cs:53
virtual void RecalculateChildren()
Definition UIElement.cs:712
CalculatedStyle GetDimensionsBasedOnParentDimensions(CalculatedStyle parentDimensions)
Definition UIElement.cs:604
StyleDimension Width
virtual bool ContainsPoint(Vector2 point)
Definition UIElement.cs:673
virtual void ExecuteRecursively(UIElement.UIElementAction action)
Definition UIElement.cs:392
UIElement.MouseEvent OnLeftMouseUp
Definition UIElement.cs:103
virtual void Recalculate()
Definition UIElement.cs:560
StyleDimension MinHeight
virtual void LeftMouseUp(UIMouseEvent evt)
Definition UIElement.cs:822
virtual Rectangle GetViewCullingArea()
Definition UIElement.cs:700
virtual void DrawChildren(SpriteBatch spriteBatch)
Definition UIElement.cs:406
CalculatedStyle _outerDimensions
CalculatedStyle GetDimensions()
Definition UIElement.cs:745
void RemoveChild(UIElement child)
Definition UIElement.cs:429
readonly List< UIElement > Elements
virtual void OnActivate()
Definition UIElement.cs:993
void SetSnapPoint(string name, int id, [Optional] Vector2? anchor, [Optional] Vector2? offset)
Definition UIElement.cs:356
void CopyStyle(UIElement element)
Definition UIElement.cs:799
virtual void OnInitialize()
UIElement.MouseEvent OnRightDoubleClick
Definition UIElement.cs:229
SamplerState OverrideSamplerState
virtual List< SnapPoint > GetSnapPoints()
Definition UIElement.cs:543
void SetPadding(float pixels)
Definition UIElement.cs:707
virtual void LeftDoubleClick(UIMouseEvent evt)
Definition UIElement.cs:854
UIElement.MouseEvent OnMouseOver
Definition UIElement.cs:250
StyleDimension Top
bool< IsMouseHovering > k__BackingField
CalculatedStyle _dimensions
Rectangle GetClippingRectangle(SpriteBatch spriteBatch)
Definition UIElement.cs:519