Example #1
0
    /// <summary>
    /// Draw the TextEditor selection GUI.
    /// </summary>
    internal static void DrawToolGUI()
    {
        EditorGUILayout.BeginHorizontal();
        EditorGUILayout.LabelField("Text Editor:");
        EditorGUI.BeginChangeCheck();
        activeIndex = EditorGUILayout.Popup(activeIndex, displayOptions);
        if (EditorGUI.EndChangeCheck())
        {
            EditorPrefs.SetInt("FunPlus.TextEditor.ActiveIndex", activeIndex);
        }

        EditorGUILayout.EndHorizontal();

        switch (activeIndex)
        {
        case 0:
            intelliJIdea.DrawToolGUI();
            break;

        case 1:
            sublimeText.DrawToolGUI();
            break;

        case 2:
            visualStudioCode.DrawToolGUI();
            break;
        }
    }