Пример #1
0
        /// <summary>
        /// Returns the first <see cref="StepWindow"/> which is currently opened.
        /// If there is none, creates and shows <see cref="StepWindow"/>.
        /// </summary>
        public static void ShowInspector()
        {
            StepWindow instance = GetWindow <StepWindow>();

            instance.Show();
            instance.Focus();
            instance.Repaint();
        }
Пример #2
0
        private void UserSelectStepNode(StepNode stepNode)
        {
            SelectStepNode(stepNode);

            if (stepNode != null)
            {
                StepWindow.ShowInspector();
            }
        }
Пример #3
0
        /// <summary>
        /// Closes currently opened <see cref="StepWindow"/>.
        /// </summary>
        public static void HideInspector()
        {
            if (IsTrainingWindowOpen == false)
            {
                return;
            }

            StepWindow instance = GetWindow <StepWindow>();

            instance.step = null;
            instance.Close();
        }
Пример #4
0
 private void OnDestroy()
 {
     MakeTemporarySave();
     StepWindow.HideInspector();
 }