Ejemplo n.º 1
0
        private void FaceBookSetting()
        {
            EditorGUILayout.BeginVertical();
            {
                OAuth.OAuth2Setting.UseFacebook = EditorGUILayout.BeginToggleGroup("Use Facebook OAuth Services", OAuth.OAuth2Setting.UseFacebook);
                {
                    EditorGUILayout.LabelField("Facebook oAuth 2.0 Login Service", CBGUIStyleFactory.GetContentGUIStlye());

                    EditorGUILayout.BeginHorizontal();
                    {
                        EditorGUILayout.LabelField("CloudBread Url : ", CBGUIStyleFactory.GetContentGUIStlye());
                        EditorGUILayout.TextArea(CBSetting.serverAddress);
                    }
                    EditorGUILayout.EndHorizontal();

                    EditorGUILayout.BeginHorizontal();
                    {
                        EditorGUILayout.LabelField("Redirect Url : ", CBGUIStyleFactory.GetContentGUIStlye());
                        EditorGUILayout.TextArea(OAuth.OAuth2Setting.FacebookRedirectAddress);
                    }
                    EditorGUILayout.EndHorizontal();

                    EditorGUILayout.LabelField("Full Redirection Url : " + CBSetting.serverAddress + OAuth2Setting.FacebookRedirectAddress);

                    EditorGUILayout.LabelField("");


                    EditorGUILayout.BeginFadeGroup(0.0f);
                    {
                        GUILayout.Box("You can get more information about Facebook Login Service here.!", CBGUIStyleFactory.GetContentGUIStlye());


                        if (GUILayout.Button("Facebook Developer Pages", CBGUIStyleFactory.GetLinkButtonGUIStyle()))
                        {
                            Application.OpenURL("https://github.com/CloudBreadProject/");
                        }
                    }
                    EditorGUILayout.EndFadeGroup();
                }
                EditorGUILayout.EndToggleGroup();
            }
            EditorGUILayout.EndVertical();
        }
Ejemplo n.º 2
0
        private void GoogleGameSetting()
        {
            OAuth2Setting.UseGooglePlay = EditorGUILayout.BeginToggleGroup("Use Google Play OAuth Services", OAuth2Setting.UseGooglePlay);
            {
                EditorGUILayout.LabelField("Google Play Game oAuth 2.0 Login Service", CBGUIStyleFactory.GetContentGUIStlye());

                EditorGUILayout.BeginHorizontal();
                {
                    EditorGUILayout.LabelField("CloudBread Url : ", CBGUIStyleFactory.GetContentGUIStlye());
                    EditorGUILayout.TextArea(CBSetting.serverAddress);
                }
                EditorGUILayout.EndHorizontal();

                EditorGUILayout.BeginHorizontal();
                {
                    EditorGUILayout.LabelField("Redirect Url : ", CBGUIStyleFactory.GetContentGUIStlye());
                    EditorGUILayout.TextArea(OAuth.OAuth2Setting.GoogleRedirectAddress);
                }
                EditorGUILayout.EndHorizontal();

                EditorGUILayout.LabelField("Full Redirection Url : " + CBSetting.serverAddress + OAuth2Setting.GoogleRedirectAddress);

                EditorGUILayout.LabelField("");


                EditorGUILayout.BeginFadeGroup(0.0f);
                {
                    GUILayout.Box("You can get more information about Google Login Service here.!", CBGUIStyleFactory.GetContentGUIStlye());


                    if (GUILayout.Button("Google Game Play Service Pages", CBGUIStyleFactory.GetLinkButtonGUIStyle()))
                    {
                        Application.OpenURL("https://github.com/playgameservices/play-games-plugin-for-unity");
                    }
                }
                EditorGUILayout.EndFadeGroup();
            }
            EditorGUILayout.EndToggleGroup();
        }
Ejemplo n.º 3
0
        private void GeneralSetting()
        {
            GUILayout.BeginVertical();
            {
                GUILayout.Label("CloudBread Login Service - OAuth 2.0", CBGUIStyleFactory.GetTitleGUIStyle());

                GUILayout.Label("");

                GUILayout.BeginVertical();
                {
                    GUILayout.Box("Before you configure CloudBread Login Service in this Project,\n" +
                                  "go our Project sites and see that documents", CBGUIStyleFactory.GetTitle2GUIStyle());
                    GUILayout.Label("CloudBread 로그인 서비스를 시작하기 전, 아래 문서를 참조하세요.", CBGUIStyleFactory.GetTitle2GUIStyle());


                    if (GUILayout.Button("Get Start with Documents (OpenSource Project - CloudBread.)", CBGUIStyleFactory.GetLinkButtonGUIStyle()))
                    {
                        Application.OpenURL("https://github.com/CloudBreadProject/");
                    }

                    GUILayout.Label("");
                    GUILayout.Label("CloudBread 로그인 서비스");
                }
                GUILayout.EndVertical();
            }
            GUILayout.EndVertical();
        }