private void OnGUI()
        {
            GUILayout.Label("KEngine Installer", headerStyle);
            EditorGUILayout.Separator();
            InstallType = (KEngineInstallType)EditorGUILayout.EnumPopup("Install Type", InstallType);
            CopyType    = (KEngineCopyType)EditorGUILayout.EnumPopup("Copy File Type", CopyType);

            _addonAssetDep = EditorGUILayout.Toggle("[Addon]Asset Dep", _addonAssetDep);
            if (_addonAssetDep)
            {
                _addonNGUI = EditorGUILayout.Toggle("[Addon]NGUI AssetDep", _addonNGUI);
            }

            EditorGUILayout.HelpBox("Select KEngine git source project to install", MessageType.Info);

            if (GUILayout.Button("Select Git Project to Install"))
            {
                DynamicInstall();
            }

            EditorGUILayout.Space();
            GUILayout.Label("=== UnInstall ==");
            _deleteKEngineConfigTxt = EditorGUILayout.Toggle("Uninstall with KEngineConfig.txt", _deleteKEngineConfigTxt);

            if (GUILayout.Button("UnInstall"))
            {
                UnInstall();
                if (_deleteKEngineConfigTxt)
                {
                    AssetDatabase.DeleteAsset("Assets/Resources/KEngineConfig.txt");
                    _deleteKEngineConfigTxt = true;
                }
            }
        }
示例#2
0
        private void OnGUI()
        {
            GUILayout.Label("KEngine Installer", headerStyle);
            EditorGUILayout.Separator();
            InstallType = (KEngineInstallType)EditorGUILayout.EnumPopup("Install Type", InstallType);
            CopyType = (KEngineCopyType)EditorGUILayout.EnumPopup("Copy File Type", CopyType);

            _addonAssetDep = EditorGUILayout.Toggle("[Addon]Asset Dep", _addonAssetDep);
            if (_addonAssetDep)
                _addonNGUI = EditorGUILayout.Toggle("[Addon]NGUI AssetDep", _addonNGUI);

            EditorGUILayout.HelpBox("Select KEngine git source project to install", MessageType.Info);

            if (GUILayout.Button("Select Git Project to Install"))
            {
                DynamicInstall();
            }

            EditorGUILayout.Space();
            GUILayout.Label("=== UnInstall ==");
            _deleteKEngineConfigTxt = EditorGUILayout.Toggle("Uninstall with KEngineConfig.txt", _deleteKEngineConfigTxt);

            if (GUILayout.Button("UnInstall"))
            {
                UnInstall();
                if (_deleteKEngineConfigTxt)
                {
                    AssetDatabase.DeleteAsset("Assets/Resources/KEngineConfig.txt");
                    _deleteKEngineConfigTxt = true;
                }
            }
        }