2using System.Reflection;
3using System.Runtime.CompilerServices;
4using System.Collections.Generic;
5using System.Collections.Immutable;
10using Microsoft.Xna.Framework;
11using Microsoft.Xna.Framework.Graphics;
23 string savePath = Path.Combine(CUITest.IgnoredDataPath,
"123.xml");
39 FitContent =
new CUIBool2(
false,
true),
40 Direction = CUIDirection.Reverse,
42 frame[
"list"][
"header"][
"close"] =
new CUICloseButton()
48 FillEmptySpace =
new CUIBool2(
false,
true),
62 Absolute = new CUINullRect(w: 130),
66 target.FillEmptySpace =
new CUIBool2(
true,
false);
69 frame[
"list"][
"content"].
Append(wrapper);
87 frame.SaveToFile(savePath);
92 frame.
AddCommand(
"Close", (o) => frame.RemoveSelf());
93 loaded.
AddCommand(
"Close", (o) => loaded.RemoveSelf());
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.
void AddCommand(string name, Action< object > action)
Manually adds command.
Drop down list, aka Select.
Draggable and resizable container for other components.
Resizing components to it's Height and placing them sequentially.
Resizing components to it's Width and placing them sequentially.
This class contains filling methods An Action<CUIComponent> that creates some GUI and attaches it t...