Ejemplo n.º 1
0
        public static void LoadBoneEditor(BfresBone bone)
        {
            BfresBoneEditor BfresBone = new BfresBoneEditor();

            BfresBone.Text = bone.Text;
            BfresBone.Dock = DockStyle.Fill;
            BfresBone.LoadBone(bone);
            LibraryGUI.Instance.LoadDockContent(BfresBone, PluginRuntime.FSHPDockState);
        }
Ejemplo n.º 2
0
        public static void LoadBoneEditor(BfresBone bone)
        {
            foreach (Control control in FirstPlugin.MainF.Controls)
            {
                if (control is DockPanel)
                {
                    if (FirstPlugin.DockedEditorS == null)
                    {
                        FirstPlugin.DockedEditorS = new DockContent();
                        FirstPlugin.DockedEditorS.Show((DockPanel)control, PluginRuntime.FSHPDockState);
                    }
                }
            }

            if (!BoneEditorIsActive(FirstPlugin.DockedEditorS, bone))
            {
                FirstPlugin.DockedEditorS.Controls.Clear();
                BfresBoneEditor BfresBone = new BfresBoneEditor();
                BfresBone.Text = bone.Text;
                BfresBone.Dock = DockStyle.Fill;
                BfresBone.LoadBone(bone);
                FirstPlugin.DockedEditorS.Controls.Add(BfresBone);
            }
        }