25 {
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 });
35
37
38 string savePath = Path.Combine(CUITest.IgnoredDataPath, "123.xml");
39 Main.SaveToFile(savePath, CUIAttribute.Calculated);
40 }
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.