예제 #1
0
        public bool Draw()
        {
            if (dirty)
            {
                RefreshView(cacheAssetList);
            }


            if (fc.nChunks2 > 0 && fc.nScaned < fc.nChunks2)
            {
                FR2_Cache api = FR2_Cache.Api;
                float     w   = EditorGUIUtility.labelWidth;
                EditorGUIUtility.labelWidth = 70f;
                api.priority = EditorGUILayout.IntSlider("Priority", api.priority, 0, 5);
                EditorGUIUtility.labelWidth = w;

                Rect  rect = GUILayoutUtility.GetRect(1, Screen.width, 18f, 18f);
                float p    = fc.nScaned / (float)fc.nChunks2;

                EditorGUI.ProgressBar(rect, p, string.Format("Scanning {0} / {1}", fc.nScaned, fc.nChunks2));
                GUILayout.FlexibleSpace();
                return(true);
            }

            DrawHeader();
            groupDrawer.Draw();
            return(false);
        }
예제 #2
0
            //private float sizeRatio {
            //    get{
            //        if(FR2_Window.window != null)
            //            return FR2_Window.window.sizeRatio;
            //        return .3f;
            //    }
            //}

            public void Draw()
            {
                if (dirty)
                {
                    ApplyFiter();
                }

                if (refs == null)
                {
                    return;
                }

                // Rect rect = FR2_Window.window == null ? new Rect(): FR2_Window.window.GetBotPanelRect();
                // GUILayout.BeginArea(rect);
                groupIgnore.Draw();
                // GUILayout.EndArea();
            }
예제 #3
0
        // public void Draw(string searchLable ="", bool showRefreshSceneCache = false)
        public bool Draw()
        {
            if (refs == null || refs.Count == 0)
            {
                return(false);
            }

            if (dirty || list == null)
            {
                ApplyFilter();
            }

            // if (showSearch)
            DrawSearch(Lable, isDrawRefreshSceneCache);
            // DrawSearch(searchLable,showRefreshSceneCache);

            if (!showContent)
            {
                return(false);
            }

            groupDrawer.Draw();
            return(false);
        }