2using System.Reflection;
3using System.Runtime.CompilerServices;
4using System.Collections.Generic;
5using System.Collections.Immutable;
10using Microsoft.Xna.Framework;
11using Microsoft.Xna.Framework.Graphics;
18 public partial class SerializationTest : FillMethods
22 public CustomWrapper()
36 this[
"B"].OnMouseEnter += (e) =>
this[
"B"].
BackgroundColor = Color.Blue;
37 this[
"B"].OnMouseLeave += (e) =>
this[
"B"].
BackgroundColor = Color.Yellow;
41 [HideFromAutoTestRunner]
50 frame[
"A"] =
new CustomWrapper();
55 BackgroundColor = Color.Magenta,
58 string s = frame.Serialize();
62 CUI.
Log(frame.Serialize());
CUIAnchor is just a Vector2 This is a static class containing some helper methods.
Base class for all components.
CUINullRect Relative
Relative to parent size and position, [0..1].
virtual CUIComponent Append(CUIComponent child, string name=null, [CallerMemberName] string memberName="")
Adds children to the end of the list.
Color BackgroundColor
Color of BackgroundSprite, default is black If you're using custom sprite and don't see it make sur...
Vector2 Anchor
this point of this component
bool MergeSerialization
If true it won't be deserialized, Instead its children will be detached and attached to the compone...
Draggable and resizable container for other components.
In fact a static class managing static things.
static void Log(object msg, Color? color=null, [CallerFilePath] string source="", [CallerLineNumber] int lineNumber=0)
Prints a message to console.