Exemplo n.º 1
0
 void OnGuiFacebookAdSetting()
 {
     EditorGUILayout.BeginVertical();
     EditorGUILayout.BeginHorizontal();
     AdGUIHelper.AvailableIcon(AdsMasterProcessor.fbadsDetector.IsValid, AvailableIcon, NotAvailableIcon);
     Settings.IsFbAdActived = AdGUIHelper.ActiveToggle(Settings.IsFbAdActived, ToggleOnIcon, ToggleOffIcon);
     GUILayout.FlexibleSpace();
     if (AdGUIHelper.Button(DashboardIcon, AdString.open_dashboard_btn_hint))
     {
         Application.OpenURL("https://developers.facebook.com/apps/");
     }
     if (AdGUIHelper.Button(DownloadIcon, AdString.download_sdk_btn_hint))
     {
         Application.OpenURL("https://developers.facebook.com/docs/unity");
     }
     EditorGUILayout.EndHorizontal();
     GUILayout.Space(4f);
     if (Settings.IsFbAdActived)
     {
         //
         OnFBInterstitialSettings();
         //
         OnFBBannerSettings();
         //
         //OnFBRewardedSettings();
         //
         OnFbNativeSettings();
         GUILayout.Space(10f);
     }
     EditorGUILayout.EndVertical();
 }
Exemplo n.º 2
0
        void OnGUIAdmobSetting()
        {
            EditorGUILayout.BeginVertical();

            EditorGUILayout.BeginHorizontal();
            AdGUIHelper.AvailableIcon(AdsMasterProcessor.admobDetector.IsValid, AvailableIcon, NotAvailableIcon);

            Settings.IsAdmobActived = AdGUIHelper.ActiveToggle(Settings.IsAdmobActived, ToggleOnIcon, ToggleOffIcon);
            GUILayout.FlexibleSpace();
            if (AdGUIHelper.Button(DashboardIcon, AdString.open_dashboard_btn_hint))
            {
                Application.OpenURL("http://apps.admob.com/");
            }
            if (AdGUIHelper.Button(DownloadIcon, AdString.download_sdk_btn_hint))
            {
                Application.OpenURL("https://github.com/googleads/googleads-mobile-unity/releases");
            }
            EditorGUILayout.EndHorizontal();

            GUILayout.Space(4f);
            if (Settings.IsAdmobActived)
            {
                OnGUIAdmobInterstitialSettings();
                OnGUIAdmobBanner();
                OnGUIAdmobRewarded();
            }
            EditorGUILayout.EndVertical();
        }
Exemplo n.º 3
0
 void OnGUIChartBoostSetting()
 {
     EditorGUILayout.BeginVertical();
     EditorGUILayout.BeginHorizontal();
     AdGUIHelper.AvailableIcon(AdsMasterProcessor.chartboostDetector.IsValid, AvailableIcon, NotAvailableIcon);
     Settings.IsChartBoostActived = AdGUIHelper.ActiveToggle(Settings.IsChartBoostActived, ToggleOnIcon, ToggleOffIcon);
     GUILayout.FlexibleSpace();
     if (AdGUIHelper.Button(DashboardIcon, AdString.open_dashboard_btn_hint))
     {
         Application.OpenURL("https://dashboard.chartboost.com/");
     }
     if (AdGUIHelper.Button(DownloadIcon, AdString.download_sdk_btn_hint))
     {
         Application.OpenURL("https://answers.chartboost.com/en-us/articles/download");
     }
     EditorGUILayout.EndHorizontal();
     GUILayout.Space(4f);
     if (Settings.IsChartBoostActived)
     {
         EditorGUILayout.BeginHorizontal();
         GUILayout.FlexibleSpace();
         if (GUILayout.Button("Open ChartBoost Settings"))
         {
             Selection.activeObject = Resources.Load("ChartboostSettings");
         }
         GUILayout.FlexibleSpace();
         EditorGUILayout.EndHorizontal();
     }
     EditorGUILayout.EndVertical();
 }
Exemplo n.º 4
0
        void OnGUIVungleSetting()
        {
            EditorGUILayout.BeginVertical();
            EditorGUILayout.BeginHorizontal();
            AdGUIHelper.AvailableIcon(AdsMasterProcessor.vungleDetector.IsValid, AvailableIcon, NotAvailableIcon);
            Settings.IsVungleActived = AdGUIHelper.ActiveToggle(Settings.IsVungleActived, ToggleOnIcon, ToggleOffIcon);
            GUILayout.FlexibleSpace();
            if (AdGUIHelper.Button(DashboardIcon, AdString.open_dashboard_btn_hint))
            {
                Application.OpenURL("https://dashboard.vungle.com/dashboard/accounts/pub");
            }
            if (AdGUIHelper.Button(DownloadIcon, AdString.download_sdk_btn_hint))
            {
                Application.OpenURL("https://v.vungle.com/sdk");
            }
            EditorGUILayout.EndHorizontal();
            GUILayout.Space(4f);
            if (Settings.IsVungleActived)
            {
                EditorGUILayout.BeginVertical();
                AdGUIHelper.Session("Android");
                AdGUIHelper.BeginGroupedControls();
                EditorGUI.indentLevel++;
                Settings.localConfig.VungleAndroidAppId = EditorGUILayout.TextField("App Id", Settings.localConfig.VungleAndroidAppId).Trim();
                Settings.localConfig.VungleAndroidDefaultPlacementId = EditorGUILayout.TextField("Default Placement Id", Settings.localConfig.VungleAndroidDefaultPlacementId).Trim();
                EditorGUI.indentLevel--;
                AdGUIHelper.EndGroupedControls();

                AdGUIHelper.Session("iOS");
                AdGUIHelper.BeginGroupedControls();
                EditorGUI.indentLevel++;
                Settings.localConfig.VungleIOSAppId = EditorGUILayout.TextField("App Id", Settings.localConfig.VungleIOSAppId).Trim();
                Settings.localConfig.VungleIOSDefaultPlacementId = EditorGUILayout.TextField("Default Placement Id", Settings.localConfig.VungleIOSDefaultPlacementId).Trim();
                EditorGUI.indentLevel--;
                AdGUIHelper.EndGroupedControls();

                EditorGUILayout.EndVertical();
            }
            EditorGUILayout.EndVertical();
        }
Exemplo n.º 5
0
        void OnGUIUnityAdSetting()
        {
            EditorGUILayout.BeginVertical();

            EditorGUILayout.BeginHorizontal();
            Settings.IsUnityAdActived = AdGUIHelper.ActiveToggle(Settings.IsUnityAdActived, ToggleOnIcon, ToggleOffIcon);
            GUILayout.FlexibleSpace();
            if (AdGUIHelper.Button(DashboardIcon, AdString.open_dashboard_btn_hint))
            {
                Application.OpenURL("https://operate.dashboard.unity3d.com/");
            }
            EditorGUILayout.EndHorizontal();

            GUILayout.Space(4f);
            if (Settings.IsUnityAdActived)
            {
                AdGUIHelper.Session("Android");
                AdGUIHelper.BeginGroupedControls();
                EditorGUI.indentLevel++;
                Settings.localConfig.UnityAdIdAndroid = EditorGUILayout.TextField("Android Id", Settings.localConfig.UnityAdIdAndroid).Trim();
                Settings.localConfig.UnityAdAndroidVideoPlacementId    = EditorGUILayout.TextField("Video Placement Id", Settings.localConfig.UnityAdAndroidVideoPlacementId).Trim();
                Settings.localConfig.UnityAdAndroidRewardedPlacementId = EditorGUILayout.TextField("Rewarded Placement Id", Settings.localConfig.UnityAdAndroidRewardedPlacementId).Trim();
                EditorGUI.indentLevel--;
                AdGUIHelper.EndGroupedControls();

                AdGUIHelper.Session("iOS");
                AdGUIHelper.BeginGroupedControls();
                EditorGUI.indentLevel++;
                Settings.localConfig.UnityAdIdIOS = EditorGUILayout.TextField("Game Id", Settings.localConfig.UnityAdIdIOS).Trim();
                Settings.localConfig.UnityAdIOSVideoPlacementId    = EditorGUILayout.TextField("Video Placement Id", Settings.localConfig.UnityAdIOSVideoPlacementId).Trim();
                Settings.localConfig.UnityAdIOSRewardedPlacementId = EditorGUILayout.TextField("Rewarded Placement Id", Settings.localConfig.UnityAdIOSRewardedPlacementId).Trim();
                EditorGUI.indentLevel--;
                AdGUIHelper.EndGroupedControls();
            }
            EditorGUILayout.EndVertical();
        }