예제 #1
0
        public void DrawGUI(string dir)
        {
            var backup = GUI.enabled;

            try
            {
                GUI.enabled = true;
                EditorGUILayout.Space();
                EditorGUILayout.LabelField("Select Expression", EditorStyles.boldLabel);

                m_mode = GUILayout.Toolbar(m_mode, MODES);
                switch (m_mode)
                {
                case 0:
                    SelectGUI(dir);
                    break;

                case 1:
                    m_clipList.GUI();
                    break;

                default:
                    throw new NotImplementedException();
                }
            }
            finally
            {
                GUI.enabled = backup;
            }
        }
예제 #2
0
        public void GUI()
        {
            EditorGUILayout.Space();
            EditorGUILayout.LabelField("Select Expression", EditorStyles.boldLabel);

            m_mode = GUILayout.Toolbar(m_mode, MODES);
            switch (m_mode)
            {
            case 0:
                SelectGUI();
                break;

            case 1:
                m_clipList.GUI();
                break;

            default:
                throw new NotImplementedException();
            }
        }