예제 #1
0
	private void Actions() {
		SocialPlatfromSettings.Instance.ShowActions = EditorGUILayout.Foldout(SocialPlatfromSettings.Instance.ShowActions, "More Actions");
		if(SocialPlatfromSettings.Instance.ShowActions) {
				
			if(!PluginsInstalationUtil.IsFacebookInstalled) {
				GUI.enabled = false;
			}	
				
			EditorGUILayout.BeginHorizontal();
			EditorGUILayout.Space();
				
			if(GUILayout.Button("Remove Facebook SDK",  GUILayout.Width(160))) {
				PluginsInstalationUtil.Remove_FB_SDK_WithDialog();
			}

			if(GUILayout.Button("Reset Settings",  GUILayout.Width(160))) {
				ResetSettings();
			}
				
			GUI.enabled = true;


			EditorGUILayout.EndHorizontal();
			EditorGUILayout.Space();
				
				
			EditorGUILayout.BeginHorizontal();
			EditorGUILayout.Space();
			
				
			if(GUILayout.Button("Load Example Settings",  GUILayout.Width(160))) {
				LoadExampleSettings();
			}
				

			if(GUILayout.Button("Reinstall",  GUILayout.Width(160))) {
				PluginsInstalationUtil.Android_UpdatePlugin();
				PluginsInstalationUtil.IOS_UpdatePlugin();
				UpdateVersionInfo();
				
			}

				
			EditorGUILayout.EndHorizontal();	
			EditorGUILayout.Space();


			EditorGUILayout.BeginHorizontal();
			EditorGUILayout.Space();

			if(GUILayout.Button("Remove",  GUILayout.Width(160))) {
				SA_RemoveTool.RemovePlugins();
			}
				
			EditorGUILayout.EndHorizontal();	
		}
	}
    private void Actions()
    {
        EditorGUILayout.Space();
        GoogleMobileAdSettings.Instance.ShowActions = EditorGUILayout.Foldout(GoogleMobileAdSettings.Instance.ShowActions, "More Actions");
        if (GoogleMobileAdSettings.Instance.ShowActions)
        {
            EditorGUILayout.BeginHorizontal();
            EditorGUILayout.Space();

            if (GUILayout.Button("Open Manifest ", GUILayout.Width(160)))
            {
                UnityEditorInternal.InternalEditorUtility.OpenFileAtLineExternal("Assets" + AN_ManifestManager.MANIFEST_FILE_PATH, 1);
            }

            if (GUILayout.Button("Reset Settings", GUILayout.Width(160)))
            {
                ResetSettings();
            }

            EditorGUILayout.EndHorizontal();
            EditorGUILayout.Space();

            EditorGUILayout.BeginHorizontal();
            EditorGUILayout.Space();


            if (GUILayout.Button("Load Example Settings", GUILayout.Width(160)))
            {
                LoadExampleSettings();
            }

            if (GUILayout.Button("Reinstall", GUILayout.Width(160)))
            {
                PluginsInstalationUtil.Android_InstallPlugin();
                PluginsInstalationUtil.IOS_InstallPlugin();
                UpdateVersionInfo();
            }


            EditorGUILayout.EndHorizontal();
            EditorGUILayout.Space();


            EditorGUILayout.BeginHorizontal();
            EditorGUILayout.Space();

            if (GUILayout.Button("Remove", GUILayout.Width(160)))
            {
                SA_RemoveTool.RemovePlugins();
            }

            EditorGUILayout.EndHorizontal();
        }
    }
예제 #3
0
    private void OtherSettins()
    {
        IOSNativeSettings.Instance.ShowOtherParams = EditorGUILayout.Foldout(IOSNativeSettings.Instance.ShowOtherParams, "More Actions");
        if (IOSNativeSettings.Instance.ShowOtherParams)
        {
            EditorGUI.BeginChangeCheck();


            EditorGUILayout.BeginHorizontal();
            EditorGUILayout.LabelField(DisablePluginLogsNote);
            IOSNativeSettings.Instance.DisablePluginLogs = EditorGUILayout.Toggle(IOSNativeSettings.Instance.DisablePluginLogs);
            EditorGUILayout.EndHorizontal();


            EditorGUILayout.Space();

            EditorGUILayout.BeginHorizontal();
            if (GUILayout.Button("Remove IOS Native", GUILayout.Width(140)))
            {
                SA_RemoveTool.RemovePlugins();
            }
            EditorGUILayout.EndHorizontal();
        }
    }
    private void Actions()
    {
        SocialPlatfromSettings.Instance.ShowActions = EditorGUILayout.Foldout(SocialPlatfromSettings.Instance.ShowActions, "More Actions");
        if (SocialPlatfromSettings.Instance.ShowActions)
        {
            if (!IsFacebookInstalled)
            {
                GUI.enabled = false;
            }

            EditorGUILayout.BeginHorizontal();
            EditorGUILayout.Space();

            if (GUILayout.Button("Remove Facebook SDK", GUILayout.Width(160)))
            {
                bool result = EditorUtility.DisplayDialog(
                    "Removing Facebook SDK",
                    "Warning action can not be undone without reimporting the plugin",
                    "Remove",
                    "Cansel");
                if (result)
                {
                    PluginsInstalationUtil.Remove_FB_SDK();
                }
            }

            if (GUILayout.Button("Reset Settings", GUILayout.Width(160)))
            {
                ResetSettings();
            }

            GUI.enabled = true;


            EditorGUILayout.EndHorizontal();
            EditorGUILayout.Space();


            EditorGUILayout.BeginHorizontal();
            EditorGUILayout.Space();


            if (GUILayout.Button("Load Example Settings", GUILayout.Width(160)))
            {
                LoadExampleSettings();
            }


            if (GUILayout.Button("Reinstall", GUILayout.Width(160)))
            {
                PluginsInstalationUtil.Android_UpdatePlugin();
                PluginsInstalationUtil.IOS_UpdatePlugin();
                UpdateVersionInfo();
            }


            EditorGUILayout.EndHorizontal();
            EditorGUILayout.Space();


            EditorGUILayout.BeginHorizontal();
            EditorGUILayout.Space();

            if (GUILayout.Button("Remove", GUILayout.Width(160)))
            {
                SA_RemoveTool.RemovePlugins();
            }

            EditorGUILayout.EndHorizontal();
        }
    }
    private void MoreActions()
    {
        IOSNativeSettings.Instance.ShowOtherParams = EditorGUILayout.Foldout(IOSNativeSettings.Instance.ShowOtherParams, "More Actions");
        if (IOSNativeSettings.Instance.ShowOtherParams)
        {
            EditorGUI.BeginChangeCheck();


            EditorGUILayout.BeginHorizontal();
            EditorGUILayout.LabelField(DisablePluginLogsNote);
            IOSNativeSettings.Instance.DisablePluginLogs = EditorGUILayout.Toggle(IOSNativeSettings.Instance.DisablePluginLogs);
            EditorGUILayout.EndHorizontal();


            EditorGUILayout.Space();

            EditorGUILayout.BeginHorizontal();
            if (GUILayout.Button("Load Example Settings", GUILayout.Width(140)))
            {
                PlayerSettings.applicationIdentifier = "com.stansassets.iosnative.dev";
                IOSNativeSettings.Instance.InAppProducts.Clear();

                IOSProductTemplate SmallPack = new IOSProductTemplate();
                SmallPack.IsOpen      = false;
                SmallPack.Id          = "your.product.id1.here";
                SmallPack.PriceTier   = ISN_InAppPriceTier.Tier1;
                SmallPack.DisplayName = "Small Pack";
                SmallPack.ProductType = ISN_InAppType.Consumable;


                IOSProductTemplate NonConsumablePack = new IOSProductTemplate();
                NonConsumablePack.IsOpen      = false;
                NonConsumablePack.Id          = "your.product.id2.here";
                NonConsumablePack.PriceTier   = ISN_InAppPriceTier.Tier2;
                NonConsumablePack.DisplayName = "Non Consumable Pack";
                NonConsumablePack.ProductType = ISN_InAppType.Consumable;

                IOSNativeSettings.Instance.InAppProducts.Add(SmallPack);
                IOSNativeSettings.Instance.InAppProducts.Add(NonConsumablePack);



                IOSNativeSettings.Instance.Leaderboards.Clear();
                GK_Leaderboard Leaderboard1 = new GK_Leaderboard("your.ios.leaderbord1.id");
                Leaderboard1.IsOpen     = false;
                Leaderboard1.Info.Title = "Leaderboard 1";

                IOSNativeSettings.Instance.Leaderboards.Clear();
                GK_Leaderboard Leaderboard2 = new GK_Leaderboard("your.ios.leaderbord2.id");
                Leaderboard2.IsOpen     = false;
                Leaderboard2.Info.Title = "Leaderboard 2";

                IOSNativeSettings.Instance.Leaderboards.Add(Leaderboard1);
                IOSNativeSettings.Instance.Leaderboards.Add(Leaderboard2);


                IOSNativeSettings.Instance.Achievements.Clear();
                GK_AchievementTemplate Achievement1 = new GK_AchievementTemplate();
                Achievement1.Id     = "your.achievement.id1.here";
                Achievement1.IsOpen = false;
                Achievement1.Title  = "Achievement 1";


                GK_AchievementTemplate Achievement2 = new GK_AchievementTemplate();
                Achievement2.Id     = "your.achievement.id2.here";
                Achievement2.IsOpen = false;
                Achievement2.Title  = "Achievement 2";

                GK_AchievementTemplate Achievement3 = new GK_AchievementTemplate();
                Achievement3.Id     = "your.achievement.id3.here";
                Achievement3.IsOpen = false;
                Achievement3.Title  = "Achievement 3";

                IOSNativeSettings.Instance.Achievements.Add(Achievement1);
                IOSNativeSettings.Instance.Achievements.Add(Achievement2);
                IOSNativeSettings.Instance.Achievements.Add(Achievement3);

                IOSNativeSettings.Instance.SoomlaEnvKey  = "3c3df370-ad80-4577-8fe5-ca2c49b2c1b4";
                IOSNativeSettings.Instance.SoomlaGameKey = "db24ba61-3aa7-4653-a3f7-9c613cb2c0f3";
            }


            if (GUILayout.Button("Remove IOS Native", GUILayout.Width(140)))
            {
                SA_RemoveTool.RemovePlugins();
            }



            EditorGUILayout.EndHorizontal();
        }
    }
예제 #6
0
    private void OtherSettins()
    {
        IOSNativeSettings.Instance.ShowCameraAndGalleryParams = EditorGUILayout.Foldout(IOSNativeSettings.Instance.ShowCameraAndGalleryParams, "Camera And Gallery");
        if (IOSNativeSettings.Instance.ShowCameraAndGalleryParams)
        {
            CameraAndGallery();
        }

        EditorGUILayout.Space();

        IOSNativeSettings.Instance.ShowOtherParams = EditorGUILayout.Foldout(IOSNativeSettings.Instance.ShowOtherParams, "Settings");
        if (IOSNativeSettings.Instance.ShowOtherParams)
        {
            EditorGUI.BeginChangeCheck();
            EditorGUILayout.BeginHorizontal();
            EditorGUILayout.LabelField(EnablePushNotification);
            IOSNativeSettings.Instance.EnablePushNotificationsAPI = EditorGUILayout.Toggle(IOSNativeSettings.Instance.EnablePushNotificationsAPI);
            EditorGUILayout.EndHorizontal();

            if (IOSNativeSettings.Instance.EnablePushNotificationsAPI)
            {
                EditorGUI.indentLevel++;
                EditorGUILayout.BeginHorizontal();
                EditorGUILayout.LabelField(UseOneSignalLabel);
                IOSNativeSettings.Instance.UseOneSignal = EditorGUILayout.Toggle(IOSNativeSettings.Instance.UseOneSignal);
                EditorGUILayout.EndHorizontal();
                EditorGUI.indentLevel--;
            }


            if (EditorGUI.EndChangeCheck())
            {
                UpdatePluginSettings();
            }


            EditorGUI.BeginChangeCheck();
            EditorGUILayout.BeginHorizontal();
            EditorGUILayout.LabelField(DisablePluginLogsNote);
            IOSNativeSettings.Instance.DisablePluginLogs = EditorGUILayout.Toggle(IOSNativeSettings.Instance.DisablePluginLogs);
            EditorGUILayout.EndHorizontal();
            EditorGUILayout.Space();


            EditorGUILayout.BeginHorizontal();
            if (GUILayout.Button("Remove IOS Native", GUILayout.Width(140)))
            {
                SA_RemoveTool.RemovePlugins();
            }

            EditorGUILayout.EndHorizontal();
            EditorGUILayout.Space();


            EditorGUILayout.BeginHorizontal();
            if (GUILayout.Button("Remove OneSigal SKD", GUILayout.Width(140)))
            {
                bool remove = EditorUtility.DisplayDialog("Remove OneSigal SKD", "Are you sure you want to remove OneSigal SKD?", "Ok", "Cancel");
                if (remove)
                {
                    SA_RemoveTool.RemoveOneSignal();
                }
            }
            EditorGUILayout.EndHorizontal();
        }
    }