Exemplo n.º 1
0
        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();
                //}
            }
        }
Exemplo n.º 2
0
 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);
     });
 }
Exemplo n.º 3
0
        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");
            });
        }
Exemplo n.º 4
0
        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);
            });
        }
Exemplo n.º 5
0
 public void ApplySettings(ProjectBuildSetting builder)
 {
 }
Exemplo n.º 6
0
 protected override void OnEnable()
 {
     mAppBuildSetting            = ProjectBuildSetting.Current;
     mSerializedObject           = new SerializedObject(mAppBuildSetting);
     Selection.selectionChanged += OnSelectionChanged;
 }