Ejemplo n.º 1
0
        public void BaseOnGUI()
        {
            HandleVersionCheck();

            isDirty = false;

            if (Event.current.IsKeyDown(KeyCode.W) && Event.current.control)
            {
                if (window != null)
                {
                    window.Close();
                }
                Event.current.UseEvent();
            }
            if (InAudioInstanceFinder.Instance != null && InAudioInstanceFinder.DataManager != null && InAudioInstanceFinder.DataManager.Loaded)
            {
                var root = Root();
                if (GUIData != null)
                {
                    int id           = GUIData.SelectedNode;
                    var selectedNode = UpdateSelectedNode(root, id);
                    GUIData.SelectedNode = selectedNode != null ? selectedNode._ID : 0;
                    GUIData.Position     = treeDrawer.ScrollPosition;
                    EditorUtility.SetDirty(InAudioInstanceFinder.InAudioGuiUserPrefs);
                }
            }
        }
Ejemplo n.º 2
0
        protected void BaseOnGUI()
        {
            isDirty = false;

            /*if (!UndoHelper.IsNewUndo)
             * {
             *  if (inspectorSkin == null)
             *  {
             *      inspectorSkin = CreaterGUIHelper.GetEditorSkin();
             *  }
             * }*/

            if (Event.current.IsKeyDown(KeyCode.W) && Event.current.control)
            {
                if (window != null)
                {
                    window.Close();
                }
                Event.current.Use();
            }

            var root         = Root();
            int id           = GUIData.SelectedNode;
            var selectedNode = UpdateSelectedNode(root, id);

            EditorUtility.SetDirty(InAudioInstanceFinder.InAudioGuiUserPrefs);
            GUIData.SelectedNode = selectedNode != null ? selectedNode.ID : 0;
            GUIData.Position     = treeDrawer.ScrollPosition;
        }