private void OnGUI()
        {
            if (GUILayout.Button("Create New Category"))
            {
                CreateCategoryWindow.OpenMenu();
            }

            if (GUILayout.Button("Rename Existing Category"))
            {
                RenameCategoryWindow.OpenMenu();
            }
        }
Example #2
0
 public static void OpenMenu()
 {
     window = GetWindow <CreateCategoryWindow>("Create New Category");
 }