Esempio n. 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();
        }
Esempio n. 2
0
        private void UserSelectStepNode(StepNode stepNode)
        {
            SelectStepNode(stepNode);

            if (stepNode != null)
            {
                StepWindow.ShowInspector();
            }
        }
Esempio n. 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();
        }
Esempio n. 4
0
 private void OnDestroy()
 {
     MakeTemporarySave();
     StepWindow.HideInspector();
 }