void OpenTeamWindow()
    {
        if (false == GameManager.gameManager.PlayerDataPool.IsHaveTeam() &&
            null != Singleton <ObjManager> .GetInstance().MainPlayer)
        {
            Singleton <ObjManager> .GetInstance().MainPlayer.ReqInviteTeam(GlobeVar.INVALID_GUID);
        }

        RelationLogic.m_OpenWay = RelationLogic.OPEN_WAY.MISSION_TEAM;
        RelationLogic.OpenTeamWindow(RelationTeamWindow.TeamTab.TeamTab_TeamInfo);
    }
示例#2
0
    public void OnTabClicked(TabButton curTab)
    {
        if (!m_bEnableClick)
        {
            return;
        }

        if (curHighLightTab == curTab)
        {
            #region
            //策划需求双击主界面上任务界面的任务按钮和组队按钮,分别打开任务界面和组队界面。
            if (curTab != null)
            {
                switch (curTab.name)
                {
                case "Tab1-Mission":
                    MissionLogLogic.IsOpenFromMissionDialog = true;
                    if (PlayerFrameLogic.Instance() != null)
                    {
                        PlayerFrameLogic.Instance().PlayerFrameHeadOnClick();
                    }
                    UIManager.ShowUI(UIInfo.MissionLogRoot);
                    break;

                case "Tab2-Team":
                    RelationLogic.m_OpenWay = RelationLogic.OPEN_WAY.MISSION_TEAM;
                    if (GameManager.gameManager.PlayerDataPool.TeamInfo != null && Games.GlobeDefine.GlobeVar.INVALID_ID != GameManager.gameManager.PlayerDataPool.TeamInfo.TeamID)
                    {
                        RelationLogic.OpenTeamWindow(RelationTeamWindow.TeamTab.TeamTab_TeamInfo);
                    }
                    else
                    {
                        RelationLogic.OpenTeamWindow(RelationTeamWindow.TeamTab.TeamTab_NearTeam);
                    }
                    break;

                default:
                    break;
                }
            }
            #endregion
            return;
        }
        if (RelationFriendWindow.Instance() != null && RelationFriendWindow.Instance().m_OtherWindows.activeSelf)
        {
            RelationFriendWindow.Instance().m_OtherWindows.SetActive(false);
        }
        DoChangeTab(curTab);
    }
 public void OpenNearPlayerWindow()
 {
     RelationLogic.m_OpenWay = RelationLogic.OPEN_WAY.MISSION_TEAM;
     RelationLogic.OpenTeamWindow(RelationTeamWindow.TeamTab.TeamTab_NearPlayer);
 }