2using System.Collections.Generic;
4using System.Reflection;
5using System.Diagnostics;
6using System.Runtime.CompilerServices;
10using Microsoft.Xna.Framework;
11using Microsoft.Xna.Framework.Input;
12using Microsoft.Xna.Framework.Graphics;
19 public partial class CUIComponent
25 public object Data {
get;
set; }
26 protected bool disabled;
34 set => disabled = value;
53 [CUISerializable]
public bool IgnoreParentTransparency {
get;
set; }
62 set =>
CUIProps.Visible.SetValue(value);
71 set =>
CUIProps.IgnoreEvents.SetValue(value);
80 set =>
CUIProps.Revealed.SetValue(value);
bool IgnoreParentEventIgnorance
Don't inherit parent IgnoreEvents.
virtual bool Disabled
Usually means - non interactable, e.g. unclickable gray button.
bool Revealed
Visible + !IgnoreEvents.
CUIComponentProps CUIProps
Just a wrapper for CUIProps idk how to separate them better.
bool IgnoreParentZIndex
Don't inherit parent ZIndex.
bool IgnoreParentVisibility
Don't inherit parent Visibility.
object Data
Arbitrary data.
bool Visible
Invisible components are not drawn, but still can be interacted with.
bool IgnoreEvents
Won't react to mouse events.
bool ShouldPassPropsToChildren
Some props (like visible) are autopassed to all new childs see PassPropsToChild.