Esempio n. 1
0
        private void DrawAdmobUI()
        {
            if (UM_DefinesResolver.IsAdMobInstalled)
            {
                EditorGUILayout.HelpBox("Google Mobile Ads SDK Installed!", MessageType.Info);
                DrawAdMobSettings();
            }
            else
            {
                EditorGUILayout.HelpBox("Google Mobile Ads SDK Missing!", MessageType.Warning);
                using (new SA_GuiBeginHorizontal()) {
                    GUILayout.FlexibleSpace();
                    var click = GUILayout.Button("Import SDK", EditorStyles.miniButton, GUILayout.Width(120));
                    if (click)
                    {
                        SA_PackageManager.DownloadAndImport("Google Mobiel Ads SDK", AD_MOB_SDK_DOWNLOAD_URL, interactive: false);
                    }

                    var refreshClick = GUILayout.Button("Refresh", EditorStyles.miniButton, GUILayout.Width(120));
                    if (refreshClick)
                    {
                        UM_DefinesResolver.ProcessAssets();
                    }
                }
            }
        }
Esempio n. 2
0
        private static void DrawUnityAdsUI()
        {
            if (UM_DefinesResolver.IsUnityAdsInstalled)
            {
                DrawUnityAdsSettins();
            }
            else
            {
                EditorGUILayout.HelpBox("Unity Monetization SDK Missing!", MessageType.Warning);
                using (new SA_GuiBeginHorizontal()) {
                    GUILayout.FlexibleSpace();
                    var click = GUILayout.Button("Download SDK", EditorStyles.miniButton, GUILayout.Width(120));
                    if (click)
                    {
                        Application.OpenURL(UNITY_ADS_SDK_DOWNLOAD_URL);
                    }

                    var refreshClick = GUILayout.Button("Refresh", EditorStyles.miniButton, GUILayout.Width(120));
                    if (refreshClick)
                    {
                        UM_DefinesResolver.ProcessAssets();
                    }
                }
            }
        }
Esempio n. 3
0
        protected override void OnServiceUI()
        {
            using (new SA_WindowBlockWithSpace(new GUIContent("Playmaker"))) {
                if (UM_DefinesResolver.IsPlayMakerInstalled)
                {
                    EditorGUILayout.HelpBox("PlayMaker Plugin Installed!", MessageType.Info);
                    DrawPlayMakerSettings();
                }
                else
                {
                    EditorGUILayout.HelpBox("PlayMaker Plugin is Missing!", MessageType.Warning);
                    using (new SA_GuiBeginHorizontal()) {
                        GUILayout.FlexibleSpace();
                        var click = GUILayout.Button("Get Playmaker", EditorStyles.miniButton, GUILayout.Width(120));
                        if (click)
                        {
                            Application.OpenURL(PLAYMAKER_STORE_URL);
                        }

                        var refreshClick = GUILayout.Button("Refresh", EditorStyles.miniButton, GUILayout.Width(120));
                        if (refreshClick)
                        {
                            UM_DefinesResolver.ProcessAssets();
                        }
                    }

                    EditorGUILayout.Space();
                    EditorGUILayout.HelpBox("Dev mode section!", MessageType.Info);
                    #if SA_DEVELOPMENT_PROJECT
                    DrawPlayMakerSettings();
                    #endif
                }
            }
        }