Beispiel #1
0
        public virtual void DrawSetting(SerializedProperty settings, IAndroidBuildSettings buildSettings)
        {
            EditorGUILayout.LabelField("Keystore", EditorStyles.boldLabel);
            EditorGUI.indentLevel++;
            {
                var useCustomKeystore = settings.FindPropertyRelative(nameof(_useCustomKeystore));
                EditorGUILayout.PropertyField(useCustomKeystore, new GUIContent("Use custom keystore"));

                EditorGUI.BeginDisabledGroup(!useCustomKeystore.boolValue);

                var keystoreFile = settings.FindPropertyRelative(nameof(_keystoreFile));
                EditorGUIExtensions.FilePathField(keystoreFile, "Select keystore file.", "", "");

                DrawPassword(settings, nameof(_keystorePassword), new GUIContent("Keystore Password"));

                var keystoreAliasName = settings.FindPropertyRelative(nameof(_keystoreAliasName));
                EditorGUILayout.PropertyField(keystoreAliasName, new GUIContent("Alias"));

                DrawPassword(settings, nameof(_keystoreAliasPassword), new GUIContent("Alias Password"));

                EditorGUI.EndDisabledGroup();

                _showPasswords = EditorGUILayout.Toggle(new GUIContent("Show Passwords"), _showPasswords);
            }
            EditorGUI.indentLevel--;
        }
 public virtual void DrawSetting(SerializedProperty settings, IiOSBuildSettings buildSettings)
 {
     EditorGUIExtensions.FilePathField(settings.FindPropertyRelative(nameof(_entitlementsFile)),
                                       "Select entitlement file.", "", "entitlements");
 }