public void Initialize(SakuraCore.SPropertyData property) { PropertyData = property; ParamName.Text = property.PropName; string val = SakuraCore.GetStringProp(property.SObject, property.PropName, property.SourceType); ValueBox.Text = val; }
public void RefreshActiveNode(IntPtr NewNode) { ActiveNode = NewNode; SceneViewTab.Header = SakuraCore.GetStringProp(NewNode, "Name"); var props = SakuraCore.GetObjectProperties(NewNode); PropertySetters.Clear(); DetailsDock.Children.Clear(); foreach (var prop in props) { RegistNewSetter(prop); } }
public SceneNodeProp(IntPtr node) { SceneNode = node; DisplayName = SakuraCore.GetStringProp(SceneNode, "Name"); Children = new List<SceneNodeProp>(); if (node != null) { for(uint i = 0; i < SakuraCore.GetChildrenNum(SceneNode); i++) { IntPtr cd = SakuraCore.GetSceneNode(SceneNode, i); var childNode = new SceneNodeProp(cd); Children.Add(childNode); } } }