protected void DrawDevelopmentSettings()
        {
            EditorHelpers.DrawBoldFoldout(developmentAnimation, "Development Settings");
            using (EditorGUILayout.FadeGroupScope scope = new EditorGUILayout.FadeGroupScope(developmentAnimation.faded))
            {
                if (scope.visible == true)
                {
                    // Show the enabled bool
                    debugEnable.boolValue = EditorGUILayout.Toggle("Enable Debugging", debugEnable.boolValue);
                    debugAnimation.target = debugEnable.boolValue;

                    // Draw the rest of the controls
                    using (new EditorGUI.IndentLevelScope())
                        using (EditorGUILayout.FadeGroupScope fadeScope = new EditorGUILayout.FadeGroupScope(debugAnimation.faded))
                        {
                            if (fadeScope.visible == true)
                            {
                                debugEnableScriptDebugging.boolValue = EditorGUILayout.Toggle("Debug Script", debugEnableScriptDebugging.boolValue);
                                debugBuildScriptOnly.boolValue       = EditorGUILayout.Toggle("Build Scripts Only", debugBuildScriptOnly.boolValue);
                            }
                        }

                    // Draw checkboxes
                    EditorGUILayout.PropertyField(enableStrictMode);
                    EditorGUILayout.PropertyField(enableAssertions);
                }
            }
        }
Esempio n. 2
0
        private void DrawDomainListLocation()
        {
            EditorHelpers.DrawBoldFoldout(domainListLocationAnimation, "Local Domain List Path");

            // Draw the rest of the controls
            using (EditorGUILayout.FadeGroupScope fadeScope = new EditorGUILayout.FadeGroupScope(domainListLocationAnimation.faded))
            {
                if (fadeScope.visible == true)
                {
                    // Draw the rest of the controls
                    DrawFileNamePreview(DrawDomainListLocationControls, AppendDomainListLocation);

                    // Check whether to show custom path
                    HostArchiveSetting targetSetting = (HostArchiveSetting)serializedObject.targetObject;
                    domainListPathAnimation.target = (targetSetting.IsLocalPathInWebDomainVerifierDefined == false);

                    // Animate showing this property
                    using (EditorGUILayout.FadeGroupScope innerFadeScope = new EditorGUILayout.FadeGroupScope(domainListPathAnimation.faded))
                    {
                        if (innerFadeScope.visible == true)
                        {
                            // Draw the option to fill your own path.
                            EditorGUILayout.HelpBox("Web Domain Verifier does not define a local path to create a Domain List. Specify one below:", MessageType.Info);
                            EditorGUILayout.PropertyField(domainListPath);
                        }
                    }
                }
            }
        }
Esempio n. 3
0
 protected void DrawBuildFile(System.Action drawPath, AdjustText adjustPreviewPath, string foldoutLabel)
 {
     // Draw the build folder
     EditorHelpers.DrawBoldFoldout(folderAnimation, foldoutLabel);
     using (EditorGUILayout.FadeGroupScope scope = new EditorGUILayout.FadeGroupScope(folderAnimation.faded))
     {
         if (scope.visible == true)
         {
             DrawFileNamePreview(drawPath, adjustPreviewPath);
         }
     }
 }
Esempio n. 4
0
 private void DrawInterruptions()
 {
     EditorHelpers.DrawBoldFoldout(interruptionsAnimation, "Interruptions");
     using (EditorGUILayout.FadeGroupScope scope = new EditorGUILayout.FadeGroupScope(interruptionsAnimation.faded))
     {
         if (scope.visible == true)
         {
             EditorGUILayout.PropertyField(onBuildFailed);
             EditorGUILayout.PropertyField(onBuildCancelled);
         }
     }
 }
Esempio n. 5
0
        private void DrawArchiveSettings()
        {
            EditorHelpers.DrawBoldFoldout(archiveAnimation, "Archive File Name");

            // Draw the rest of the controls
            using (EditorGUILayout.FadeGroupScope fadeScope = new EditorGUILayout.FadeGroupScope(archiveAnimation.faded))
            {
                if (fadeScope.visible == true)
                {
                    // Draw the rest of the controls
                    DrawFileNamePreview(DrawArchiveControls, AppendArchiveFileName);
                }
            }
        }
        private void DrawBuildSettingList()
        {
            // Draw foldout
            EditorHelpers.DrawBoldFoldout(allSettingsAnimation, "Platforms");

            // Draw the list
            using (EditorGUILayout.FadeGroupScope scope = new EditorGUILayout.FadeGroupScope(allSettingsAnimation.faded))
            {
                if (scope.visible == true)
                {
                    allSettingsList.List.DoLayoutList();
                }
            }
        }
 protected void DrawCustomSettings()
 {
     // Draw foldout
     EditorHelpers.DrawBoldFoldout(customSettingsAnimation, "Custom Build Settings");
     using (EditorGUILayout.FadeGroupScope scope = new EditorGUILayout.FadeGroupScope(customSettingsAnimation.faded))
     {
         if (scope.visible == true)
         {
             DrawPlatformSpecificSettings();
             EditorGUILayout.PropertyField(customScriptDefineSymbols);
             EditorGUILayout.PropertyField(customScenes);
         }
     }
 }
        protected override void DrawExtraSettings()
        {
            EditorGUILayout.Space();

            // Draw foldout
            EditorHelpers.DrawBoldFoldout(allArchivesAnimation, "Host Specific Archive Settings");

            // Draw the list
            using (EditorGUILayout.FadeGroupScope scope = new EditorGUILayout.FadeGroupScope(allArchivesAnimation.faded))
            {
                if (scope.visible == true)
                {
                    allArchiveList.List.DoLayoutList();
                }
            }
        }
Esempio n. 9
0
        private void DrawArchiveContents()
        {
            EditorHelpers.DrawBoldFoldout(contentAnimation, "Archive Contents");

            // Draw the rest of the controls
            using (EditorGUILayout.FadeGroupScope fadeScope = new EditorGUILayout.FadeGroupScope(contentAnimation.faded))
            {
                if (fadeScope.visible == true)
                {
                    // Draw the rest of the controls
                    EditorGUILayout.PropertyField(includeIndexHtml);
                    domainList.DoLayoutList();

                    // Draw the import stuff
                    EditorGUILayout.Space();
                    UnityEngine.Object testAsset = null;
                    testAsset = EditorGUILayout.ObjectField("Import Domain List", testAsset, typeof(UnityEngine.Object), false);
                    if (testAsset != null)
                    {
                        AssetBundle bundle = null;
                        try
                        {
                            // Load the bundle, and convert it to a domain list
                            bundle = AssetBundle.LoadFromFile(AssetDatabase.GetAssetPath(testAsset));
                            DomainList domainList = DomainList.Get(bundle);

                            // Decrypt the domain list
                            HostArchiveSetting setting = ((HostArchiveSetting)target);
                            setting.AcceptedDomains = DomainList.Decrypt(domainList, setting.DomainEncrypter);
                        }
                        finally
                        {
                            if (bundle != null)
                            {
                                // Clean-up
                                bundle.Unload(true);
                            }
                        }
                    }
                }
            }
        }