Exemple #1
0
    //显示帮会待审批成员列表,启动Bundle加载
    void ShowGuildReserveMemberList()
    {
        //清理待审批成员Grid
        Utils.CleanGrid(m_GuildReserveMemberListGrid);

        if (false == GameManager.gameManager.PlayerDataPool.IsHaveGuild())
        {
            return;
        }

        Guild info = GameManager.gameManager.PlayerDataPool.GuildInfo;

        if (null != m_ReversePage_MemberNumLabel)
        {
            //帮会成员XX/XX
            m_ReversePage_MemberNumLabel.text = StrDictionary.GetClientDictionaryString("#{1739}", info.GetGuildFormalMemberCount(), GlobeVar.GetGuildMemberMax(info.GuildLevel));
        }

        if (null != m_ReversePage_DeclarationLabel)
        {
            m_ReversePage_DeclarationLabel.text = info.GuildDeclaration;
        }


        //进入Bundle加载过程
        //UIManager.LoadItem(UIInfo.GuildMemberListItem, OnLoadGuildReserveMemberItem);
        OnLoadGuildReserveMemberItem(m_GuildMemberListItem, null);
    }
Exemple #2
0
    //显示帮会信息,帮会信息由于没有其他Prefab,所以无需Bundle加载,直接读取数据
    public void ShowGuildInfo()
    {
        ClearGuildInfo();
        if (!GameManager.gameManager.PlayerDataPool.IsHaveGuild())
        {
            return;
        }

        Guild info = GameManager.gameManager.PlayerDataPool.GuildInfo;

        if (null != m_GuildNameLabel)
        {
            m_GuildNameLabel.text = info.GuildName;
        }
        if (null != m_LevelLabel)
        {
            //帮会等级:XX
            m_LevelLabel.text = StrDictionary.GetClientDictionaryString("#{1738}", info.GuildLevel);
        }
        if (null != m_MemberNumLabel)
        {
            //帮会成员XX/XX
            m_MemberNumLabel.text = StrDictionary.GetClientDictionaryString("#{1739}", info.GetGuildFormalMemberCount(), GlobeVar.GetGuildMemberMax(info.GuildLevel));
        }

        if (null != m_GuildExpLabel)
        {
            //繁荣度 XX/XX
            m_GuildExpLabel.text = StrDictionary.GetClientDictionaryString("#{1855}", info.GuildExp.ToString(), GlobeVar.GetGuildExpMax(info.GuildLevel).ToString());
        }

        if (null != m_GuildNoticeLabel)
        {
            m_GuildNoticeLabel.text = info.GuildNotice;
        }

        if (null != m_GuildContribute)
        {
            GuildMember mainPlayerGuildInfo = GameManager.gameManager.PlayerDataPool.GuildInfo.GetMainPlayerGuildInfo();
            if (null != mainPlayerGuildInfo)
            {
                m_GuildContribute.text = mainPlayerGuildInfo.Contribute.ToString();
            }
        }

        //由于玩家打开帮会界面的时候会显示申请帮会信息,所以这里直接读取,而不申请
        ShowGuildMemberList();

        //UpdateGuildReserveRemindNum();
    }