private void OnGUI()
        {
            if (initialDataHasBeenCreated == false)
            {
                useRootProjectDirectoryPath = EditorGUILayout.Toggle("Use Root Directory For Install", useRootProjectDirectoryPath);
                if (useRootProjectDirectoryPath == false)
                {
                    projectDirectoryPathName = EditorGUILayout.TextField("Target Install Directory", projectDirectoryPathName);
                }

                if (GUILayout.Button("Install Game Level Toolkit"))
                {
                    CreateRequiredInitialData();
                }
            }

            if (initialDataHasBeenCreated == true)
            {
                settingsObj   = EditorGUILayout.ObjectField(settingsObj, typeof(ScriptableObject), true);
                levelsDataObj = EditorGUILayout.ObjectField(levelsDataObj, typeof(ScriptableObject), true);

                if (GUILayout.Button("Load Level"))
                {
                    LoadGameLevel();
                }

                if (GUILayout.Button("Load Master Scene"))
                {
                    LoadMasterScene.OpenMenu();
                }

                if (GUILayout.Button("Create New Level"))
                {
                    CreateNewLevel();
                }

                if (GUILayout.Button("Modify Existing Level"))
                {
                    ModifyExistingLevelWindow.OpenMenu();
                }

                if (GUILayout.Button("Modify Categories"))
                {
                    CategoriesWindow.OpenMenu();
                }

                if (GUILayout.Button("Move Install Directory"))
                {
                    MoveInstallDirectory();
                }

                if (GUILayout.Button("Uninstall Toolkit"))
                {
                    UninstallTool();
                }
            }
        }
Пример #2
0
 public static void OpenMenu()
 {
     window = GetWindow <LoadMasterScene>();
 }