2using System.Reflection;
3using System.Runtime.CompilerServices;
4using System.Collections.Generic;
5using System.Collections.Immutable;
10using Microsoft.Xna.Framework;
11using Microsoft.Xna.Framework.Graphics;
17 public partial class RandomTest : FillMethods
27 BackgroundColor = Color.Black * 0.9f,
28 OutlineThickness = 4f,
29 OutlineColor = Color.White,
30 Border =
new CUIBorder(
new Color(0, 255, 255), 4),
31 Anchor =
new Vector2(0.4f, 0.5f),
34 Main[
"frame1"].
Append(
new CUICloseButton()
42 BackgroundColor = Color.Black * 0.9f,
43 OutlineThickness = 4f,
44 OutlineColor = Color.White,
45 Border =
new CUIBorder(
new Color(255, 0, 255), 4),
46 Anchor =
new Vector2(0.6f, 0.5f),
CUIAnchor is just a Vector2 This is a static class containing some helper methods.
Base class for all components.
virtual CUIComponent Append(CUIComponent child, string name=null, [CallerMemberName] string memberName="")
Adds children to the end of the list.
Draggable and resizable container for other components.