Ejemplo n.º 1
0
        private static void RenderAdvancedView(MVCEditor editor)
        {
            EditorGUILayout.HelpBox(
                "Advanced view settings should NOT be touched in general cases.\nUnless you have full understanding" +
                "of this framework's process, it's highly recommended to just leave the settings as-is.",
                MessageType.Warning
                );

            RenderSpace();

            EditorGUILayout.LabelField(
                "Current workspace directory: " + NyanPath.EditorRelativePath(MvcWorkspace.WorkspacePath)
                );
            EditorGUILayout.HelpBox(
                "If you change the workspace directory, you must move/delete script files already created in " +
                "the previous directory.",
                MessageType.Warning
                );
            if (GUILayout.Button("Change workspace directory"))
            {
                MVCEditor.SelectWorkspaceDirectory();
            }

            RenderSpace();

            EditorGUILayout.LabelField("Default base class of MVC views.");
            Config.SetBaseClassName(EditorGUILayout.TextField(
                                        "BaseClassName",
                                        Config.BaseClassName
                                        ));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Renders editor gui.
 /// </summary>
 public static void Render(MVCEditor editor)
 {
     GUILayout.Label("Select a new or existing MVC workspace.");
     if (GUILayout.Button("Select directory"))
     {
         MVCEditor.SelectWorkspaceDirectory();
     }
 }