// Token: 0x06000962 RID: 2402 RVA: 0x0003B254 File Offset: 0x00039454
    private void DoMenuBar(Rect rect)
    {
        GUI.enabled = !Singleton <SceneLoader> .Instance.IsLoading;
        if (MenuPageManager.Instance == null)
        {
            if (GUI.Button(new Rect(rect.x + 9f, rect.y + 6f, 100f, 32f), "Back", BlueStonez.button_white))
            {
                Singleton <GameStateController> .Instance.LeaveGame(true);
            }
        }
        else if (!MenuPageManager.Instance.IsCurrentPage(PageType.Home) && GUITools.Button(new Rect(rect.x + 9f, rect.y + 6f, 100f, 32f), new GUIContent("Back"), BlueStonez.button_white))
        {
            if (MenuPageManager.Instance.IsCurrentPage(PageType.Play) && Singleton <GameServerController> .Instance.SelectedServer != null)
            {
                PlayPageGUI.Instance.ShowServerSelection();
            }
            else if (MenuPageManager.Instance.IsCurrentPage(PageType.Training))
            {
                MenuPageManager.Instance.LoadPage(PageType.Play, false);
            }
            else
            {
                Singleton <GameStateController> .Instance.Client.Disconnect();

                MenuPageManager.Instance.LoadPage(PageType.Home, false);
            }
        }
        int num = 0;

        if (ApplicationDataManager.IsMobile)
        {
            num = 44;
        }
        if (!GameState.Current.HasJoinedGame || GamePageManager.HasPage)
        {
            Rect       position = new Rect(rect.width - 420f + (float)num, 12f, 100f, 20f);
            GUIContent content  = new GUIContent(this.PointsValue.ToString("N0"), ShopIcons.IconPoints20x20);
            GUI.color = new Color(1f, 1f, 1f, this.PointsAlpha);
            GUI.Label(position, content, BlueStonez.label_interparkbold_13pt);
            Rect       position2 = new Rect(rect.width - 310f + (float)num, 12f, 100f, 20f);
            GUIContent content2  = new GUIContent(this.CreditsValue.ToString("N0"), ShopIcons.IconCredits20x20);
            GUI.color = new Color(1f, 1f, 1f, this.CreditsAlpha);
            GUI.Label(position2, content2, BlueStonez.label_interparkbold_13pt);
            GUI.color = Color.white;
            if (GUITools.Button(new Rect(rect.width - 200f + (float)num, rect.y + 9f, 100f, 26f), new GUIContent("Get Credits", LocalizedStrings.ClickHereBuyCreditsMsg), BlueStonez.buttongold_medium))
            {
                ApplicationDataManager.OpenBuyCredits();
            }
        }
        if (!ApplicationDataManager.IsMobile)
        {
            GUIContent content3 = (!Screen.fullScreen) ? new GUIContent(string.Empty, GlobalUiIcons.QuadpanelButtonFullscreen, "Enter Fullscreen mode.") : new GUIContent(string.Empty, GlobalUiIcons.QuadpanelButtonNormalize, "Return to windowed mode.");
            if (GUI.Button(new Rect((float)(Screen.width - 88), this._yOffset, 44f, 44f), content3, BlueStonez.buttondark_medium))
            {
                ScreenResolutionManager.IsFullScreen = !Screen.fullScreen;
            }
        }
        this._optionsDropdown.SetRect(new Rect((float)(Screen.width - 44), this._yOffset, 44f, 44f));
        this._optionsDropdown.Draw();
    }