Пример #1
0
 public void RefreshDependencies()
 {
     if (_setting_useDependencyChecker)
     {
         DependencyChecker.Refresh();
     }
 }
Пример #2
0
        public override void OnEnable()
        {
            EditorApplication.projectWindowItemOnGUI -= Draw;
            EditorApplication.projectWindowItemOnGUI += Draw;

            EditorApplication.update -= Update;
            EditorApplication.update += Update;

            if (EditorGUIUtility.isProSkin)
            {
                _colorMap = new Dictionary <string, Color>()
                {
                    { "png", new Color(0.8f, 0.8f, 1.0f) },
                    { "psd", new Color(0.5f, 0.8f, 1.0f) },
                    { "tga", new Color(0.8f, 0.5f, 1.0f) },

                    { "cs", new Color(0.5f, 1.0f, 0.5f) },
                    { "js", new Color(0.8f, 1.0f, 0.3f) },
                    { "boo", new Color(0.3f, 1.0f, 0.8f) },

                    { "mat", new Color(1.0f, 0.8f, 0.8f) },
                    { "shader", new Color(1.0f, 0.5f, 0.5f) },

                    { "wav", new Color(0.8f, 0.4f, 1.0f) },
                    { "mp3", new Color(0.8f, 0.4f, 1.0f) },
                    { "ogg", new Color(0.8f, 0.4f, 1.0f) },
                }
            }
            ;
            else
            {
                _colorMap = new Dictionary <string, Color>()
                {
                    { "png", new Color(0.0f, 0.0f, 1.0f) },
                    { "psd", new Color(0.7f, 0.2f, 1.0f) },
                    { "tga", new Color(0.2f, 0.7f, 1.0f) },

                    { "cs", new Color(0.0f, 0.5f, 0.0f) },
                    { "js", new Color(0.5f, 0.5f, 0.0f) },
                    { "boo", new Color(0.0f, 0.5f, 0.5f) },

                    { "mat", new Color(0.2f, 0.8f, 0.8f) },
                    { "shader", new Color(1.0f, 0.5f, 0.5f) },

                    { "wav", new Color(0.8f, 0.4f, 1.0f) },
                    { "mp3", new Color(0.8f, 0.4f, 1.0f) },
                    { "ogg", new Color(0.8f, 0.4f, 1.0f) },
                }
            };

            //_specialPaths = new Dictionary<string, string>()
            //{
            //    {"WebPlayerTemplates", "WebPlayerTemplates - excluded from build"}
            //};

            _needHackScrollbarWidthForDrawing = Common.UnityVersion() < Common.UnityVersion("4.0.0b8");

            ReadSettings();

            if (File.Exists(Common.TempRecompilationList))
            {
                CheckScriptInfo(File.ReadAllText(Common.TempRecompilationList));
                File.Delete(Common.TempRecompilationList);
            }

            //SetProjectWindowFoldersFirst( _setting_showFoldersFirst );

            if (Common.ProjectWindow != null)
            {
                Common.ProjectWindow.Repaint();
            }

            if (_setting_useDependencyChecker)
            {
                DependencyChecker.Refresh();
            }
        }//