protected override void OnGUIWindow()
        {
            GUIStyle _subTitleStyle = new GUIStyle("BoldLabel");

            _subTitleStyle.wordWrap = true;

            GUILayout.BeginVertical(UnityEditorUtility.kOuterContainerStyle);
            {
                UnityEditorUtility.DrawLabel("Registration Status", _subTitleStyle, UnityEditorUtility.Alignment.Center);
                GUILayout.Space(2f);
                DrawProperty("m_authorizationStatus", GUIStyle.none);
                GUILayout.Space(2f);
            }
            GUILayout.EndVertical();
            GUILayout.Space(5f);

            GUILayout.BeginVertical(UnityEditorUtility.kOuterContainerStyle);
            {
                UnityEditorUtility.DrawLabel("Contacts", _subTitleStyle, UnityEditorUtility.Alignment.Center);
                GUILayout.Space(2f);
                DrawChildProperties("m_contactsList", GUIStyle.none);
                GUILayout.Space(2f);
            }
            GUILayout.EndVertical();
        }
        protected override void OnGUIWindow()
        {
            GUIStyle _subTitleStyle = new GUIStyle("BoldLabel");

            _subTitleStyle.wordWrap = true;

            // Draw properties
            GUILayout.BeginVertical(UnityEditorUtility.kOuterContainerStyle);
            {
                UnityEditorUtility.DrawLabel("Registration Status", _subTitleStyle, UnityEditorUtility.Alignment.Center);
                GUILayout.Space(2f);
                DrawProperties(GUIStyle.none);
                GUILayout.Space(2f);
            }
            GUILayout.EndVertical();
            GUILayout.Space(5f);

            GUILayout.BeginVertical(UnityEditorUtility.kOuterContainerStyle);
            {
                UnityEditorUtility.DrawLabel("Validate Notification Payload", _subTitleStyle, UnityEditorUtility.Alignment.Center);
                GUILayout.Space(2f);
                if (GUILayout.Button("Push Notification"))
                {
                    EditorApplication.ExecuteMenuItem(Menu.kMenuItemPushNotification);
                }
                GUILayout.Space(2f);
            }
            GUILayout.EndVertical();
            GUILayout.Space(5f);

            GUILayout.BeginVertical(UnityEditorUtility.kOuterContainerStyle);
            {
                UnityEditorUtility.DrawLabel("Notification Bar", _subTitleStyle, UnityEditorUtility.Alignment.Center);
                GUILayout.Space(2f);
                LayoutLocalNotifications();
                LayoutRemoteNotifications();
                GUILayout.Space(2f);
            }
            GUILayout.EndVertical();
        }
示例#3
0
        protected override void OnGUIWindow()
        {
            GUIStyle _subTitleStyle = new GUIStyle("BoldLabel");

            _subTitleStyle.wordWrap = true;

            // Draw properties
            GUILayout.BeginVertical(UnityEditorUtility.kOuterContainerStyle);
            {
                UnityEditorUtility.DrawLabel("Registered Users", _subTitleStyle, UnityEditorUtility.Alignment.Center);
                GUILayout.Space(2f);
                DrawChildProperties("m_registeredUsers", GUIStyle.none);
                GUILayout.Space(2f);
            }
            GUILayout.EndVertical();
            GUILayout.Space(5f);

            GUILayout.BeginVertical(UnityEditorUtility.kOuterContainerStyle);
            {
                UnityEditorUtility.DrawLabel("Leaderboards", _subTitleStyle, UnityEditorUtility.Alignment.Center);
                GUILayout.Space(2f);
                DrawChildProperties("m_leaderboardList", GUIStyle.none);
                GUILayout.Space(2f);
            }
            GUILayout.EndVertical();
            GUILayout.Space(5f);

            GUILayout.BeginVertical(UnityEditorUtility.kOuterContainerStyle);
            {
                UnityEditorUtility.DrawLabel("Achievement Descriptions", _subTitleStyle, UnityEditorUtility.Alignment.Center);
                GUILayout.Space(2f);
                DrawChildProperties("m_achievementDescriptionList", GUIStyle.none);
                GUILayout.Space(2f);
            }
            GUILayout.EndVertical();
        }