2using System.Collections.Generic;
6using Microsoft.Xna.Framework;
7using Microsoft.Xna.Framework.Input;
8using Microsoft.Xna.Framework.Graphics;
18 public static void Open(
string msg)
26 Palette = PaletteOrder.Quaternary;
44 Style = CUIStylePrefab.Main,
55 [
"Padding"] =
"[10,10]",
58 this[
"layout"][
"ok"] =
new CUIButton(
"Ok")
63 [
"Padding"] =
"[10,10]",
65 AddOnMouseDown = (e) => this.RemoveSelf(),
CUIAnchor is just a Vector2 This is a static class containing some helper methods.
CUIBool2 FillEmptySpace
Will be resized to fill empty space in list components.
PaletteOrder Palette
This palette will be used to resolve palette styles Primary, Secondary, Tertiary,...
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.
CUIStyle Style
Allows you to assing parsable string or link to CUIPalette to any prop It's indexable,...
Vector2 Anchor
this point of this component
Draggable and resizable container for other components.
In fact a static class managing static things.
static CUIMainComponent TopMain
Orchestrates Drawing and updates, there could be only one CUI.TopMain is located above vanilla GUI.
Simple dialog box with a message and ok button use public static void Open(string msg) to open it.
In Fact just an observable dict.
Resizing components to it's Width and placing them sequentially.