static public void Init()
        {
            init = true;
            window = (EditorPlusHistory)EditorWindow.GetWindow(typeof(EditorPlusHistory));
            window.title = "History & Favs";
            window.minSize = new Vector2(window.minSize.x, 57);


            Load();

            float sc = EditorPrefs.GetFloat("EditorPlusHistory.Scale", 1f);
            showLabels = EditorPrefs.GetBool("EditorPlusHistory.ShowLabels", true);
            historySize = EditorPrefs.GetInt("EditorPlusHistory.HistorySize", 25);

            //EditorPlusHistoryInternal.ForceDataUpdate();

            widgetHostFavs = new WidgetHost(window.position, StartMarginFavs, ButtonMargin + new Vector2(LockClosed.width, 0), ButtonSize, EditorPlusHistoryInternal.favorites.Count, sc, true);
            widgetHostHistory = new WidgetHost(window.position, StartMarginHist, ButtonMargin + new Vector2(LockClosed.width, 0), ButtonSize, EditorPlusHistoryInternal.favorites.Count, sc, true);

            EditorPlus.OnSkinSwitched += Load;
        }
예제 #2
0
        static public void Init()
        {
            init           = true;
            window         = (EditorPlusHistory)EditorWindow.GetWindow(typeof(EditorPlusHistory));
            window.title   = "History & Favs";
            window.minSize = new Vector2(window.minSize.x, 57);


            Load();

            float sc = EditorPrefs.GetFloat("EditorPlusHistory.Scale", 1f);

            showLabels  = EditorPrefs.GetBool("EditorPlusHistory.ShowLabels", true);
            historySize = EditorPrefs.GetInt("EditorPlusHistory.HistorySize", 25);

            //EditorPlusHistoryInternal.ForceDataUpdate();

            widgetHostFavs    = new WidgetHost(window.position, StartMarginFavs, ButtonMargin + new Vector2(LockClosed.width, 0), ButtonSize, EditorPlusHistoryInternal.favorites.Count, sc, true);
            widgetHostHistory = new WidgetHost(window.position, StartMarginHist, ButtonMargin + new Vector2(LockClosed.width, 0), ButtonSize, EditorPlusHistoryInternal.favorites.Count, sc, true);

            EditorPlus.OnSkinSwitched += Load;
        }