Example #1
0
        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;
        }
Example #2
0
        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);
            }
        }
Example #3
0
 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);
        }
     }
 }