private void DrawOnekeyPackMenus(ProjectBuildSetting mOnekeyPackSettings)
        {
            EditorGUILayout.Space();
            using (new QuickEditorGUILayout.HorizontalBlock())
            {
                //if (GUILayout.Button("Reset"))
                //{
                //    mOnekeyPackSettings.ApplyDefaults();
                //}
                QuickEditorGUIStaticAPI.Button(new GUIContent("Apply Setting", EditorGUIUtility.FindTexture("vcs_check")), mOnekeyPackSettings.ApplyDefaults);

                if (GUILayout.Button(new GUIContent("Apply Setting", EditorGUIUtility.FindTexture("vcs_check"))))
                {
                    mOnekeyPackSettings.ApplyDefaults();
                }
                if (GUILayout.Button(new GUIContent("Player Setting", EditorGUIUtility.FindTexture("EditorSettings Icon")), GUILayout.Height(21), GUILayout.Width(110)))
                {
                    EditorApplication.ExecuteMenuItem("Edit/Project Settings/Player");
                }

                //if (GUILayout.Button("Reset"))
                //{
                //    mOnekeyPackSettings.ApplyDefaults();
                //}
            }
        }
 private void DrawOnekeyPackIOSSettings(ProjectBuildSetting settings)
 {
     QuickEditorGUIStaticAPI.DrawFoldableBlock(ref mIOSSettingsFoldout, "IOS Setting", () =>
     {
         settings.iOSScriptingBackend = (ScriptingImplementation)EditorGUILayout.EnumPopup("Scripting Backend", settings.iOSScriptingBackend);
         settings.iOSTargetDevice     = (iOSTargetDevice)EditorGUILayout.EnumPopup("Target Device", settings.iOSTargetDevice);
         settings.iOSSdkVersion       = (iOSSdkVersion)EditorGUILayout.EnumPopup("Target SDK", settings.iOSSdkVersion);
     });
 }
        private void DrawOnekeyPackGeneralSettings(ProjectBuildSetting settings)
        {
            QuickEditorGUIStaticAPI.DrawFoldableBlock(ref mGeneralSettingsFoldout, "Application Build Setting", () =>
            {
                QuickEditorGUIStaticAPI.DragAndDropTextField("name", ref settings.productName);

                QuickEditorGUIStaticAPI.TextField("Product Name", ref settings.productName);
                QuickEditorGUIStaticAPI.TextField("Company Name", ref settings.companyName);
                QuickEditorGUIStaticAPI.TextField("Bundle Identifier", ref settings.applicationIdentifier);

                QuickEditorGUIStaticAPI.TextField("Version", ref settings.Version);
                QuickEditorGUIStaticAPI.TextField("Bundle Version Code", ref settings.BundleVersionCode);
                QuickEditorGUIStaticAPI.FileTextField("splashScreenAssetPath", ref settings.splashScreenAssetPath, "选择文件", "png");
                QuickEditorGUIStaticAPI.FileTextField("iconAssetPath", ref settings.iconAssetPath, "选择文件", "png");
            });
        }
        private void DrawOnekeyPackAndroidSettings(ProjectBuildSetting settings)
        {
            QuickEditorGUIStaticAPI.DrawFoldableBlock(ref mAndroidSettingsFoldout, "Android Setting", () =>
            {
                QuickEditorGUIStaticAPI.FileTextField("KeystoreName", ref settings.AndroidKeystoreName, "选择文件", "keystore");

                QuickEditorGUIStaticAPI.TextField("KeystorePass", ref settings.AndroidKeystorePass);
                settings.AndroidKeystorePass             = EditorGUILayout.TextField("KeystorePass", settings.AndroidKeystorePass);
                settings.AndroidKeyaliasName             = EditorGUILayout.TextField("KeyaliasName", settings.AndroidKeyaliasName);
                settings.AndroidKeyaliasPass             = EditorGUILayout.TextField("KeyaliasPass", settings.AndroidKeyaliasPass);
                settings.ForceSDCardPermission           = EditorGUILayout.Toggle("ForceSDCardPermission", settings.ForceSDCardPermission);
                settings.AndroidTargetDevice             = (AndroidArchitecture)EditorGUILayout.EnumPopup("Device Filter", settings.AndroidTargetDevice);
                settings.AndroidMinSdkVersion            = (AndroidSdkVersions)EditorGUILayout.EnumPopup("Min API Level", settings.AndroidMinSdkVersion);
                settings.AndroidPreferredInstallLocation = (AndroidPreferredInstallLocation)EditorGUILayout.EnumPopup("Install Location", settings.AndroidPreferredInstallLocation);
                settings.AndroidScriptingBackend         = (ScriptingImplementation)EditorGUILayout.EnumPopup("Scripting Backend", settings.AndroidScriptingBackend);
            });
        }
Exemple #5
0
 public void ApplySettings(ProjectBuildSetting builder)
 {
 }
 protected override void OnEnable()
 {
     mAppBuildSetting            = ProjectBuildSetting.Current;
     mSerializedObject           = new SerializedObject(mAppBuildSetting);
     Selection.selectionChanged += OnSelectionChanged;
 }