private void OnGuiAuthenticated()
        {
            GUI.skin    = PlayFabEditorHelper.uiStyle;
            GUI.enabled = blockingRequests.Count == 0 && !EditorApplication.isCompiling;
            using (new UnityVertical())
            {
                //PlayFabEditorMenu.DrawMenu();

                switch ((Menu.MenuStates)PlayFabEditorPrefsSO.Instance.curMainMenuIdx)
                {
                case Menu.MenuStates.Sdk:
                    PlayFabEditorSDKTools.DrawSdkPanel();
                    break;

                case Menu.MenuStates.Settings:
                    PlayFabEditorSettings.DrawSettingsPanel();
                    break;

                case Menu.MenuStates.Help:
                    PlayFabEditorHelpMenu.DrawHelpPanel();
                    break;

                case Menu.MenuStates.Data:
                    PlayFabEditorDataMenu.DrawDataPanel();
                    break;

                case Menu.MenuStates.Tools:
                    PlayFabEditorToolsMenu.DrawToolsPanel();
                    break;

                case Menu.MenuStates.Packages:
                    PlayFabEditorPackages.DrawPackagesMenu();
                    break;

                default:
                    break;
                }

                using (new UnityVertical(PlayFabEditorHelper.uiStyle.GetStyle("gpStyleGray1"), GUILayout.ExpandHeight(true), GUILayout.ExpandWidth(true)))
                {
                    GUILayout.FlexibleSpace();
                }

                // help tag at the bottom of the help menu.
                if ((Menu.MenuStates)PlayFabEditorPrefsSO.Instance.curMainMenuIdx == Menu.MenuStates.Help)
                {
                    DisplayHelpMenu();
                }
            }

            Repaint();
        }
Example #2
0
        private void OnGuiInternal()
        {
            GUI.skin = PlayFabEditorHelper.uiStyle;

            using (new UnityVertical())
            {
                //Run all updaters prior to drawing;
                PlayFabEditorHeader.DrawHeader();

                GUI.enabled = blockingRequests.Count == 0 && !EditorApplication.isCompiling;

                if (PlayFabEditorAuthenticate.IsAuthenticated())
                {
                    PlayFabEditorMenu.DrawMenu();

                    switch (PlayFabEditorMenu._menuState)
                    {
                    case PlayFabEditorMenu.MenuStates.Sdks:
                        PlayFabEditorSDKTools.DrawSdkPanel();
                        break;

                    case PlayFabEditorMenu.MenuStates.Settings:
                        PlayFabEditorSettings.DrawSettingsPanel();
                        break;

                    case PlayFabEditorMenu.MenuStates.Help:
                        PlayFabEditorHelpMenu.DrawHelpPanel();
                        break;

                    case PlayFabEditorMenu.MenuStates.Data:
                        PlayFabEditorDataMenu.DrawDataPanel();
                        break;

                    case PlayFabEditorMenu.MenuStates.Tools:
                        PlayFabEditorToolsMenu.DrawToolsPanel();
                        break;

                    case PlayFabEditorMenu.MenuStates.Packages:
                        PlayFabEditorPackages.DrawPackagesMenu();
                        break;

                    default:
                        break;
                    }
                }
                else
                {
                    PlayFabEditorAuthenticate.DrawAuthPanels();
                }

                using (new UnityVertical(PlayFabEditorHelper.uiStyle.GetStyle("gpStyleGray1"), GUILayout.ExpandHeight(true), GUILayout.ExpandWidth(true)))
                {
                    GUILayout.FlexibleSpace();
                }

                // help tag at the bottom of the help menu.
                if (PlayFabEditorMenu._menuState == PlayFabEditorMenu.MenuStates.Help)
                {
                    DisplayHelpMenu();
                }
            }

            PruneBlockingRequests();

            Repaint();
        }