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 PropTest : FillMethods
24 ResizeToSprite =
true,
26 BackgroundSprite =
new CUISprite(
"Dev2.png")
29 Offset =
new Vector2(0.5f, 0.5f),
31 BackgroundColor = Color.White,
32 IgnoreTransparent =
true,
35 frame.BackgroundSprite =
CUISprite.Parse($
"{frame.BackgroundSprite}");
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.
Color BackgroundColor
Color of BackgroundSprite, default is black If you're using custom sprite and don't see it make sur...
CUISprite BackgroundSprite
Will be drawn in background with BackgroundColor Default is solid white 1x1 texture.
Draggable and resizable container for other components.
In fact a static class managing static things.
static void Log(object msg, Color? color=null, [CallerFilePath] string source="", [CallerLineNumber] int lineNumber=0)
Prints a message to console.
Wrapper Containing link to texture and drawing settings, like SourceRedt, DrawMode,...