2using System.Collections.Generic;
4using System.Reflection;
7using Microsoft.Xna.Framework;
8using Microsoft.Xna.Framework.Input;
9using Microsoft.Xna.Framework.Graphics;
13 public class CUIPropsInterface : CUIComponent, IRefreshable
15 private CUIComponent target;
16 public CUIComponent Target
25 public CUIVerticalList Props {
get;
set; }
29 Props.RemoveAllChildren();
31 if (Target ==
null)
return;
33 CUITypeMetaData meta = CUITypeMetaData.Get(Target.GetType());
35 foreach (
string key
in meta.Serializable.Keys)
37 Props.
Append(
new CUITextBlock($
"{key} - {meta.Serializable[key].GetValue(Target)}")
44 public CUIPropsInterface() : base()
47 this[
"Props"] = Props =
new CUIVerticalList()
49 Relative =
new CUINullRect(0, 0, 1, 1),
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.
bool SerializeChildren
Is this a serialization cutoff point Parent will serialize children down to this component and stop...