Beispiel #1
0
        void DisplayRateUsSettings()
        {
                        #if VSRATE
            EditorWindowUtils.Space(2);
            rateUsSettings.isRateUsFoldoutOpened = EditorGUILayout.Foldout(rateUsSettings.isRateUsFoldoutOpened, "RATE US SETTINGS");

            if (rateUsSettings.isRateUsFoldoutOpened)
            {
                EditorWindowUtils.Space(1);

                EditorGUILayout.LabelField("Number of Stars to Accept Review");

                rateUsSettings.numberOfStarsToAcceptReview = EditorGUILayout.Slider(rateUsSettings.numberOfStarsToAcceptReview, 1f, 5f, GUILayout.Width(250));

                EditorWindowUtils.Space(1);

                EditorWindowUtils.CreateLabelField(ref rateUsSettings.email, "email", "The email adress");

                EditorWindowUtils.CreateLabelField(ref rateUsSettings.subject, "subject", "The subect of the email");

                EditorWindowUtils.CreateLabelField(ref rateUsSettings.body, "body", "The body of the email");
            }

            if (GUI.changed)
            {
                EditorUtility.SetDirty(rateUsSettings);
            }
                        #endif
        }
Beispiel #2
0
        void DisplayCommonSettings()
        {
            EditorWindowUtils.Space(2);
            commonAppSettings.isCommonFoldoutOpened = EditorGUILayout.Foldout(commonAppSettings.isCommonFoldoutOpened, "COMMON SETTINGS");

            if (commonAppSettings.isCommonFoldoutOpened)
            {
                EditorWindowUtils.Space(2);
                ANDROID_AMAZON = EditorGUILayout.BeginToggleGroup(EditorWindowUtils.CreateGUIContentFromDescriptionAndTooltip("ANDROID_AMAZON", "check it if you want to target the Amazon app shop"), ANDROID_AMAZON);
                EditorGUILayout.EndToggleGroup();

                EditorWindowUtils.CreateLabelField(ref commonAppSettings.iOS_ID, "iOS ID", "The iOS ID of your app");

                EditorWindowUtils.CreateLabelField(ref commonAppSettings.amazon_ID, "Amazon ID", "The Amazon ID of your app");

                EditorWindowUtils.CreateLabelField(ref commonAppSettings.shareTextBeforeUrl, "Share Text before URL", "The Text you want to display before your UR");

                EditorWindowUtils.CreateLabelField(ref commonAppSettings.shareTextAfterUrl, "Share Text after URL", "The Text you want to display after your URL");
            }

            if (GUI.changed)
            {
                EditorUtility.SetDirty(commonAppSettings);
            }
        }