/// <summary> /// Selects a bone and displays information /// </summary> /// <param name="sender"></param> /// <param name="args"></param> private void SelectBone(object sender, EventArgs args) { if (SelectedSkeleton != null) { SelectedSkeleton.ClearSelection(); } if (BoneList.SelectedNode == null) { BoneEditor.Visible = false; return; } ((SBBone)BoneList.SelectedNode.Tag).Selected = true; BoneEditor.BindBone((SBBone)BoneList.SelectedNode.Tag); BoneEditor.Visible = true; }
/// <summary> /// Selects a bone and display the bone tool strip /// </summary> /// <param name="bone"></param> public void SelectBone(SBBone bone) { ResetControls(); BoneEditor.BindBone(bone); BoneEditor.Visible = true; }
/// <summary> /// Resets and hides all controls /// </summary> public void ResetControls() { BoneEditor.HideControl(); MeshPanel.Visible = false; animationBar.Visible = false; }