2using System.Reflection;
3using System.Runtime.CompilerServices;
4using System.Collections.Generic;
5using System.Collections.Immutable;
10using Microsoft.Xna.Framework;
11using Microsoft.Xna.Framework.Graphics;
21 public partial class SerializationTest : FillMethods
23 [HideFromAutoTestRunner]
26 Main.
Append(
new CUIFrame(
null,
null, 0.2f, 0.2f) { Anchor = CUIAnchor.TopLeft });
27 Main.
Append(
new CUIFrame(
null,
null, 0.2f, 0.2f) { Anchor = CUIAnchor.TopCenter });
28 Main.
Append(
new CUIFrame(
null,
null, 0.2f, 0.2f) { Anchor = CUIAnchor.TopRight });
29 Main.
Append(
new CUIFrame(
null,
null, 0.2f, 0.2f) { Anchor = CUIAnchor.CenterLeft });
30 Main.
Append(
new CUIFrame(
null,
null, 0.2f, 0.2f) { Anchor = CUIAnchor.Center });
31 Main.
Append(
new CUIFrame(
null,
null, 0.2f, 0.2f) { Anchor = CUIAnchor.CenterRight });
32 Main.
Append(
new CUIFrame(
null,
null, 0.2f, 0.2f) { Anchor = CUIAnchor.BottomLeft });
33 Main.
Append(
new CUIFrame(
null,
null, 0.2f, 0.2f) { Anchor = CUIAnchor.BottomCenter });
34 Main.
Append(
new CUIFrame(
null,
null, 0.2f, 0.2f) { Anchor = CUIAnchor.BottomRight });
38 string savePath = Path.Combine(CUITest.IgnoredDataPath,
"123.xml");
39 Main.SaveToFile(savePath, CUIAttribute.Calculated);
Base class for all components.
CUIMainComponent MainComponent
Link to CUIMainComponent, passed to children.
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.
void Step()
Forses 1 layout update step, even when Frozen.