/////////////////////////////////////////

        public static void DrawGUI()
        {
            //E.Load();
            P.Load();
            var targetGroupList = PlatformUtils.GetSupportList();

            ScopeIsCompile.Begin();

            ScopeVertical.Begin();
            HEditorGUILayout.HeaderTitle("Platform");
            GUILayout.Space(8);
            foreach (var t in targetGroupList)
            {
                ScopeChange.Begin();

                var _b = HEditorGUILayout.ToggleBox(P.GetPlatform(t).enable, t.Icon(), t.GetName());
                if (ScopeChange.End())
                {
                    P.GetPlatform(t).enable = _b;
                    P.Save();
                    BuildAssistWindow.ChangeActiveTarget();
                }
            }
            ScopeVertical.End();

            ScopeIsCompile.End();
        }
        public static void DrawGUI()
        {
            E.Load();
            P.Load();
            var targetGroupList = PlatformUtils.GetSupportList();

            ScopeIsCompile.Begin();

            ScopeVertical.Begin();
            HEditorGUILayout.HeaderTitle("Platform");
            GUILayout.Space(8);
            foreach (var t in targetGroupList)
            {
                ScopeChange.Begin();

                var _b = HEditorGUILayout.ToggleBox(P.i.supportPlatform[(int)t], t.Icon(), t.GetName());
                if (ScopeChange.End())
                {
                    P.i.supportPlatform[(int)t] = _b;
                    P.Save();
                    //BuildAssistWindow.ChangeActiveTarget();
                    Utils.m_treeView_EditorSymbols = null;
                }
            }
            ScopeVertical.End();

            ScopeIsCompile.End();
        }
        public static void DrawGUI()
        {
            E.Load();
            Helper.New(ref m_treeView_AutoSymbols);

            ScopeIsCompile.Begin();

            HGUIToolbar.Begin();
            if (HGUIToolbar.Button(EditorIcon.toolbar_plus))
            {
                _add();
            }
            ScopeDisable.Begin(!m_treeView_AutoSymbols.HasSelection());
            if (HGUIToolbar.Button(EditorIcon.toolbar_minus))
            {
                _remove();
            }
            ScopeDisable.End();

            GUILayout.Space(4);

            ScopeChange.Begin();
            var _b = HEditorGUILayout.ToggleLeft(S._AutomaticsettingatInitializeOnLoad, E.i.m_autoSetDidReloadScripts);

            if (ScopeChange.End())
            {
                E.i.m_autoSetDidReloadScripts = _b;
                E.Save();
            }
            GUILayout.FlexibleSpace();

            if (!Utils.changeSetting)
            {
                if (HGUIToolbar.Button(SS._Apply))
                {
                    Utils.ApplySymbols();
                }
            }
            else
            {
                if (HGUIToolbar.Button(EditorHelper.TempContent(SS._Apply, EditorIcon.warning)))
                {
                    Utils.ApplySymbols();
                }
            }
            HGUIToolbar.End();

            /////////////
            ///
            using (new GUILayoutScope(1, 0)) {
                m_treeView_AutoSymbols.DrawLayoutGUI();
            }

            ScopeIsCompile.End();
        }
        public static void DrawGUI()
        {
            E.Load();
            Helper.New(ref m_treeView_ActiveSymbols);
            ScopeIsCompile.Begin();

            /////////////
            ///
            using (new GUILayoutScope(1, 0)) {
                m_treeView_ActiveSymbols.DrawLayoutGUI();
            }

            ScopeIsCompile.End();
        }
        public static void DrawGUI()
        {
            E.Load();
            Helper.New(ref Utils.m_treeView_EditorSymbols);

            ScopeIsCompile.Begin();

            HGUIToolbar.Begin();


            ScopeDisable.Begin(Utils.activeSymbol); if (HGUIToolbar.Button(EditorIcon.toolbar_plus))
            {
                _add();
            }
            ScopeDisable.Begin(!Utils.m_treeView_EditorSymbols.HasSelection());
            if (HGUIToolbar.Button(EditorIcon.toolbar_minus))
            {
                _remove();
            }
            ScopeDisable.End();


            GUILayout.FlexibleSpace();

            if (!Utils.activeSymbol)
            {
                ScopeDisable.Begin(!Utils.changeEditorSymbols);
                if (!Utils.changeEditorSymbols)
                {
                    HGUIToolbar.Button(SS._Apply);
                }
                else
                {
                    if (HGUIToolbar.Button(EditorHelper.TempContent(SS._Apply, EditorIcon.warning)))
                    {
                        _set();
                    }
                }
                ScopeDisable.End();
            }


            HGUIToolbar.End();

            /////////////////
            using (new GUILayoutScope(1, 0)) {
                Utils.m_treeView_EditorSymbols.DrawLayoutGUI();
            }
            ScopeIsCompile.End();
        }
Exemple #6
0
        /////////////////////////////////////////
        public override void OnDefaultGUI()
        {
            ScopeIsCompile.Begin();

            DrawToolBar();

            var ww = (position.width - 40) * 0.5f;

            ScopeHorizontal.Begin();

            /////////////////////////////////////////
            ScopeVertical.Begin(GUILayout.Width(ww));
            DrawLeftPane();
            ScopeVertical.End();

            /////////////////////////////////////////
            ScopeVertical.Begin(HEditorStyles.dopesheetBackground, GUILayout.Width(40));
            GUILayout.FlexibleSpace();

            ScopeDisable.Begin(!m_treeViewL.HasSelection());
            if (GUILayout.Button(">>"))
            {
                m_treeViewL.選択パッケージをアンインストール指定する();
            }
            ScopeDisable.End();

            GUILayout.Space(16);
            ScopeDisable.Begin(!m_treeViewR.HasSelection());
            if (GUILayout.Button("<<"))
            {
                m_treeViewR.選択パッケージをインストール指定する();
            }
            ScopeDisable.End();

            GUILayout.FlexibleSpace();
            ScopeVertical.End();

            /////////////////////////////////////////
            ScopeVertical.Begin(HEditorStyles.dopesheetBackground, GUILayout.Width(ww));
            DrawRightPane();
            ScopeVertical.End();

            ScopeHorizontal.End();
            ScopeIsCompile.End();
        }