2using System.Reflection;
3using System.Runtime.CompilerServices;
4using System.Collections.Generic;
5using System.Collections.Immutable;
10using Microsoft.Xna.Framework;
11using Microsoft.Xna.Framework.Graphics;
17 public partial class RandomTest : FillMethods
20 [HideFromAutoTestRunner]
23 Main[
"bottomFrame"] =
new CUIFrame(0.6f, 0.2f, 0.3f, 0.4f)
28 Main[
"bottomFrame"][
"button"] =
new CUIButton(
"press me")
37 Border =
new CUIBorder(),
38 ConsumeMouseClicks =
true,
51 frame[
"list"][
"content"] =
new CUIWater()
53 FillEmptySpace =
new CUIBool2(
false,
true),
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.
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.
Resizing components to it's Width and placing them sequentially.
Just an example of what CUICanvas can be used for.