Esempio n. 1
0
        void OnEnable()
        {
            SetTitle("Asmdef Editor", EditorIcon.assetIcon_AssemblyDefinition);
            E.Load();

            m_HorizontalSplitter = new UnityEditorSplitterState(0.4f, 0.6f);

            Refresh();
            m_waitSpinIcon = new IconWaitSpin(Repaint);
        }
Esempio n. 2
0
        /////////////////////////////////////////
        public static void DrawGUI()
        {
            E.Load();

            ScopeChange.Begin();

            E.i.enablePackageAsmdef = HEditorGUILayout.ToggleLeft("enablePackageAsmdef".nicify(), E.i.enablePackageAsmdef);

            if (ScopeChange.End())
            {
                //s_changed = true;
                E.Save();
            }
        }
Esempio n. 3
0
        public override void OnDefaultGUI()
        {
            E.Load();
            ScopeDisable.BeginIsCompiling();
            DrawToolBar();

            UnityEditorSplitterGUILayout.BeginHorizontalSplit(m_HorizontalSplitter);
            ScopeVertical.Begin();
            DrawLeftPane();
            ScopeVertical.End();
            ScopeVertical.Begin(HEditorStyles.dopesheetBackground);
            DrawRightPane();
            ScopeVertical.End();
            UnityEditorSplitterGUILayout.EndHorizontalSplit();

            ScopeDisable.End();

            if (EditorApplication.isCompiling)
            {
                var rc = position;
                rc.x = rc.y = 0;
                GUI.Label(rc.AlignCenter(100, 20), EditorHelper.TempContent($"コンパイル中", m_waitSpinIcon), GUI.skin.box);
            }
        }