public static void DrawSettingsPanel()
        {
            if (!PlayFabEditorDataService.IsDataLoaded)
            {
                return;
            }

            if (_menu != null)
            {
                _menu.DrawMenu();
                switch ((SubMenuStates)PlayFabEditorDataService.EditorView.currentSubMenu)
                {
                case SubMenuStates.StandardSettings:
                    DrawStandardSettingsSubPanel();
                    break;

                case SubMenuStates.ApiSettings:
                    DrawApiSubPanel();
                    break;

                case SubMenuStates.TitleSettings:
                    DrawTitleSettingsSubPanel();
                    break;

                case SubMenuStates.Packages:
                    DrawPackagesSubPanel();
                    break;
                }
            }
            else
            {
                RegisterMenu();
            }
        }
Ejemplo n.º 2
0
        public static void DrawSettingsPanel()
        {
            if (_menu != null)
            {
                _menu.DrawMenu();
                switch ((SubMenuStates)PlayFabEditorPrefsSO.Instance.curSubMenuIdx)
                {
                case SubMenuStates.StandardSettings:
                    DrawStandardSettingsSubPanel();
                    break;

                case SubMenuStates.ApiSettings:
                    DrawApiSubPanel();
                    break;

                case SubMenuStates.TitleSettings:
                    DrawTitleSettingsSubPanel();
                    break;
                }
            }
            else
            {
                RegisterMenu();
            }
        }
Ejemplo n.º 3
0
        public static void DrawDataPanel()
        {
            if (!PlayFabEditorDataService.IsDataLoaded)
            {
                return;
            }

            if (menu == null)
            {
                RegisterMenu();
                return;
            }

            menu.DrawMenu();
            switch ((DataMenuStates)PlayFabEditorDataService.EditorView.currentSubMenu)
            {
            case DataMenuStates.TitleData:
                if (tdViewer == null)
                {
                    tdViewer = CreateInstance <TitleDataViewer>();
                    tdViewer.RefreshTitleData();
                }
                scrollPos = GUILayout.BeginScrollView(scrollPos, PlayFabEditorHelper.uiStyle.GetStyle("gpStyleGray1"));
                tdViewer.Draw();
                GUILayout.EndScrollView();
                break;

            case DataMenuStates.TitleDataInternal:
                if (tdInternalViewer == null)
                {
                    tdInternalViewer = CreateInstance <TitleInternalDataViewer>();
                    tdInternalViewer.RefreshInternalTitleData();
                }
                scrollPos = GUILayout.BeginScrollView(scrollPos, PlayFabEditorHelper.uiStyle.GetStyle("gpStyleGray1"));
                tdInternalViewer.Draw();
                GUILayout.EndScrollView();
                break;

            default:
                using (new UnityHorizontal(PlayFabEditorHelper.uiStyle.GetStyle("gpStyleGray1")))
                {
                    GUILayout.Label("Coming Soon!", PlayFabEditorHelper.uiStyle.GetStyle("titleLabel"), GUILayout.MinWidth(EditorGUIUtility.currentViewWidth));
                }
                break;
            }
        }