Пример #1
0
 public void InitializeSceneView()
 {
     SceneRootNode = SakuraCore.GetSceneNode(IntPtr.Zero);
     ActiveNode = SakuraCore.GetSceneNode(IntPtr.Zero);
     SakuraCore.GetObjectProperties(SceneRootNode);
     List<SceneNodeProp> itemList = new List<SceneNodeProp>();
     RootProp = new SceneNodeProp(SceneRootNode);
     itemList.Add(RootProp);
     SceneViewTree.ItemsSource = itemList;
 }
Пример #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);
            }
        }