public void UpdateValues()
 {
     this.UpdateValue(_linkedBox.Name);
     foreach (ControlTreeNode node in Nodes)
     {
         if (node.Name == "Faces")
         {
             foreach (TreeNodeFace faceNode in node.Nodes)
             {
                 faceNode.UpdateValues();
             }
         }
         if (node.Name == "Shade")
         {
             TreeNodeBool shadeNode = (TreeNodeBool)node;
             shadeNode.UpdateValue(_linkedBox.Shade);
         }
         if (node.Name == "From")
         {
             TreeNodeVector3 fromNode = (TreeNodeVector3)node;
             fromNode.UpdateValue(_linkedBox.From);
         }
         if (node.Name == "To")
         {
             TreeNodeVector3 toNode = (TreeNodeVector3)node;
             toNode.UpdateValue(_linkedBox.To);
         }
         if (node.Name == "Rotation")
         {
             TreeNodeRotation rotNode = (TreeNodeRotation)node;
             rotNode.UpdateValues();
         }
     }
 }
Exemple #2
0
 public void UpdateValues()
 {
     foreach (ControlTreeNode node in Nodes)
     {
         if (node.Name == "Axis")
         {
             TreeNodeArray axNode = (TreeNodeArray)node;
             axNode.UpdateValue(_linkedRotation.Axis);
         }
         if (node.Name == "Angle")
         {
             TreeNodeFloat angNode = (TreeNodeFloat)node;
             angNode.UpdateValue(_linkedRotation.Angle);
         }
         if (node.Name == "Origin")
         {
             TreeNodeVector3 orNode = (TreeNodeVector3)node;
             orNode.UpdateValue(_linkedRotation.Origin);
         }
         if (node.Name == "Rescale")
         {
             TreeNodeBool rescaleNode = (TreeNodeBool)node;
             rescaleNode.UpdateValue(_linkedRotation.Rescale);
         }
     }
 }
 public void UpdateValues()
 {
     foreach (ControlTreeNode node in Nodes)
     {
         if (node.Name == "Visable")
         {
             TreeNodeBool visableNode = (TreeNodeBool)node;
             visableNode.UpdateValue(_linkedFace.Visible);
         }
         if (node.Name == "Texture")
         {
             TreeNodeArray texNode = (TreeNodeArray)node;
             texNode.UpdateValue(_linkedFace.TextureName.Substring(1));
         }
         if (node.Name == "UV")
         {
             TreeNodeVector4 uvNode = (TreeNodeVector4)node;
             uvNode.UpdateValue(_linkedFace.UV);
         }
         if (node.Name == "Rotation")
         {
             TreeNodeInt rotNode = (TreeNodeInt)node;
             rotNode.UpdateValue(_linkedFace.Rotation);
         }
         if (node.Name == "CullFace")
         {
             TreeNodeArray cullNode = (TreeNodeArray)node;
             cullNode.UpdateValue(_linkedFace.CullFace);
         }
         if (node.Name == "TintIndex")
         {
             TreeNodeInt tintNode = (TreeNodeInt)node;
             tintNode.UpdateValue(_linkedFace.TintIndex);
         }
     }
 }