private void LoadAnimationBackground(string AnimationBackgroundPath) { string Name = AnimationBackgroundPath.Substring(0, AnimationBackgroundPath.Length - 5).Substring(19); this.Text = Name + " - Project Eternity Animation Background Editor"; AnimationBackgroundViewer.Preload(); AnimationBackgroundViewer.ActiveAnimationBackground = (AnimationBackground3D)AnimationBackground.LoadAnimationBackground(Name, AnimationBackgroundViewer.content, AnimationBackgroundViewer.GraphicsDevice); PropertiesDialog = new BackgroundProperties(AnimationBackgroundViewer.ActiveAnimationBackground); PropertiesDialog.txtBackgroundStartX.Value = (decimal)AnimationBackgroundViewer.ActiveAnimationBackground.DefaultCameraPosition.X; PropertiesDialog.txtBackgroundStartY.Value = (decimal)AnimationBackgroundViewer.ActiveAnimationBackground.DefaultCameraPosition.Y; PropertiesDialog.txtBackgroundStartZ.Value = (decimal)AnimationBackgroundViewer.ActiveAnimationBackground.DefaultCameraPosition.Z; PropertiesDialog.txtBackgroundYaw.Value = (decimal)AnimationBackgroundViewer.ActiveAnimationBackground.DefaultCameraRotation.X; PropertiesDialog.txtBackgroundPitch.Value = (decimal)AnimationBackgroundViewer.ActiveAnimationBackground.DefaultCameraRotation.Y; PropertiesDialog.txtBackgroundRoll.Value = (decimal)AnimationBackgroundViewer.ActiveAnimationBackground.DefaultCameraRotation.Z; foreach (AnimationBackground3DBase ActiveBackgroundSystem in AnimationBackgroundViewer.ActiveAnimationBackground.ListBackground) { TreeNode NewTreeNode = new TreeNode(ActiveBackgroundSystem.ToString()); NewTreeNode.Tag = ActiveBackgroundSystem; lstItemChoices.Nodes.Add(NewTreeNode); foreach (string ActiveChild in ActiveBackgroundSystem.GetChild()) { NewTreeNode.Nodes.Add(ActiveChild); } } }
private void LoadAnimationBackground(string AnimationBackgroundPath) { string Name = AnimationBackgroundPath.Substring(0, AnimationBackgroundPath.Length - 5).Substring(19); this.Text = Name + " - Project Eternity Animation Background Editor"; AnimationBackgroundViewer.Preload(); AnimationBackgroundViewer.ActiveAnimationBackground = (AnimationBackground2D)AnimationBackground.LoadAnimationBackground(Name, AnimationBackgroundViewer.content, AnimationBackgroundViewer.GraphicsDevice); foreach (AnimationBackground2DBase ActiveBackgroundSystem in AnimationBackgroundViewer.ActiveAnimationBackground.ListBackground) { TreeNode NewTreeNode = new TreeNode(ActiveBackgroundSystem.ToString()); NewTreeNode.Tag = ActiveBackgroundSystem; lstItemChoices.Nodes.Add(NewTreeNode); } }