void OnGUI() { if (GUILayout.Button(new GUIContent("Generate Enums", "This generates the Enum files from the values stored in the Config files."))) { EditorPrefs.SetBool(GdOrganizerWatcher.RegenerationTriggeredKey, true); GdOrganizerWatcher.Regenerate(); } EditorGUILayout.Space(5); if (GUILayout.Button(new GUIContent("Generate Property Definitions", "This regenerates all property definition files."))) { GdOrganizerEditorUtils.GenerateAllGroupDefinitions(); GdOrganizerEditorUtils.GeneratePropertyDefinitionsForAllTypes(); } EditorGUILayout.Space(5); if (GUILayout.Button(new GUIContent("Generate All", "This runs the full pipeline"))) { EditorPrefs.SetBool(GdOrganizerWatcher.RegenerationTriggeredKey, true); GdOrganizerWatcher.Regenerate(); GdOrganizerEditorUtils.GenerateAllGroupDefinitions(); GdOrganizerEditorUtils.GeneratePropertyDefinitionsForAllTypes(); } /* * GUILayout.Label("Base Settings", EditorStyles.boldLabel); * myString = EditorGUILayout.TextField("Text Field", myString); * * groupEnabled = EditorGUILayout.BeginToggleGroup("Optional Settings", groupEnabled); * myBool = EditorGUILayout.Toggle("Toggle", myBool); * myFloat = EditorGUILayout.Slider("Slider", myFloat, -3, 3); * EditorGUILayout.EndToggleGroup(); */ }
static void Init() { GdOrganizerEditorUtils.LoadSettingsFile(); GdOrganizerEditorUtils.CreateConfigFiles(); // Get existing open window or if none, make a new one: GdOrganizerWindow window = (GdOrganizerWindow)EditorWindow.GetWindow(typeof(GdOrganizerWindow), false, "GD-Organizer", true); window.Show(); }