Esempio n. 1
0
        private void ChangeSeletedNode()
        {
            PropertyTable.InitValue(SelectedNode);

            PropertyForm.Refresh();

            ObjectListBox.Items.Clear();
            ObjectListBox.Items.AddRange(Scene.GetChildNameList().ToArray());
            if (SelectedNode == null)
            {
                ObjectListBox.SelectedItem = null;
            }
            else
            {
                ObjectListBox.SelectedItem = SelectedNode.GetObjectName();
            }
        }
        public void InitValue(Core.Node t)
        {
//             SetVisible("Name", false);
//             SetVisible("Type", false);
//             SetVisible("Position", false);
//             SetVisible("Scale", false);
//             SetVisible("FrontVector", false);

            target = t;

            Name = target.GetObjectName();
            Type = target.GetClassName();

            Position.Set(target.GetPosition());
            Scale.Set(target.GetScale());
            FrontVector.Set(target.GetFrontVector());
        }