private void RefreshAcntInfo()
        {
            CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(CUnionBattleRankSystem.UNION_RANK_PATH);

            if (form == null)
            {
                return;
            }
            CSDT_RANKING_LIST_ITEM_INFO actRankInfo = this.GetActRankInfo(this.m_CurSelRankType);
            CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

            GameObject        widget    = form.GetWidget(1);
            RankingItemHelper component = widget.GetComponent <RankingItemHelper>();
            uint num = 0u;

            if (actRankInfo != null && masterRoleInfo != null)
            {
                widget.CustomSetActive(true);
                string name  = masterRoleInfo.Name;
                uint   level = masterRoleInfo.Level;
                num = actRankInfo.dwRankNo;
                uint num2;
                if (num == 0u)
                {
                    num2 = CUnionBattleEntrySystem.GetRewardMatchStateByMapId(this.m_CurSelMapId).dwPerfectCnt;
                }
                else
                {
                    num2 = actRankInfo.dwRankScore;
                }
                widget.transform.FindChild("Value").gameObject.CustomSetActive(true);
                widget.transform.FindChild("ValueType").gameObject.CustomSetActive(true);
                CUnionBattleRankSystem.SetGameObjChildText(widget, "Value", num2.ToString(CultureInfo.get_InvariantCulture()));
                CUnionBattleRankSystem.SetGameObjChildText(widget, "NameGroup/PlayerName", masterRoleInfo.Name);
                CUnionBattleRankSystem.SetGameObjChildText(widget, "PlayerLv", string.Format("Lv.{0}", level.ToString(CultureInfo.get_InvariantCulture())));
            }
            CUnionBattleRankSystem.RankNobSet(num, component);
            MonoSingleton <NobeSys> .GetInstance().SetMyQQVipHead(component.QqVip.GetComponent <Image>());

            GameObject gameObject = widget.transform.FindChild("HeadItemCell").gameObject;

            CUICommonSystem.SetHostHeadItemCell(gameObject);
            MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.WxIcon, Singleton <CRoleInfoManager> .get_instance().GetMasterRoleInfo().m_privilegeType, 1, true, false);

            MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.QqIcon, Singleton <CRoleInfoManager> .get_instance().GetMasterRoleInfo().m_privilegeType, 2, true, false);

            MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.GuestIcon, Singleton <CRoleInfoManager> .get_instance().GetMasterRoleInfo().m_privilegeType, 5, true, false);
        }
示例#2
0
        public static void RankingNumSet(uint rankNumber, RankingItemHelper rankingHelper)
        {
            rankingHelper.RankingNumText.CustomSetActive(false);
            rankingHelper.No1.CustomSetActive(false);
            rankingHelper.No2.CustomSetActive(false);
            rankingHelper.No3.CustomSetActive(false);
            rankingHelper.No1BG.CustomSetActive(false);
            rankingHelper.No1IconFrame.CustomSetActive(false);
            if (rankNumber == 0u)
            {
                if (rankingHelper.NoRankingText != null)
                {
                    rankingHelper.NoRankingText.CustomSetActive(true);
                }
            }
            else
            {
                if (rankingHelper.NoRankingText != null)
                {
                    rankingHelper.NoRankingText.CustomSetActive(false);
                }
                switch (rankNumber)
                {
                case 1u:
                    rankingHelper.No1.CustomSetActive(true);
                    if (rankingHelper.No1BG != null && rankingHelper.No1IconFrame != null)
                    {
                        rankingHelper.No1BG.CustomSetActive(true);
                        rankingHelper.No1IconFrame.CustomSetActive(true);
                    }
                    break;

                case 2u:
                    rankingHelper.No2.CustomSetActive(true);
                    break;

                case 3u:
                    rankingHelper.No3.CustomSetActive(true);
                    break;

                default:
                    rankingHelper.RankingNumText.CustomSetActive(true);
                    rankingHelper.RankingNumText.GetComponent <Text>().text = string.Format("{0}", rankNumber);
                    break;
                }
            }
        }
示例#3
0
        public static void RankingNumSet(uint rankNumber, RankingItemHelper rankingHelper)
        {
            rankingHelper.RankingNumText.CustomSetActive(false);
            rankingHelper.No1.CustomSetActive(false);
            rankingHelper.No2.CustomSetActive(false);
            rankingHelper.No3.CustomSetActive(false);
            rankingHelper.No1BG.CustomSetActive(false);
            rankingHelper.No1IconFrame.CustomSetActive(false);
            if (rankNumber == 0)
            {
                if (rankingHelper.NoRankingText != null)
                {
                    rankingHelper.NoRankingText.CustomSetActive(true);
                }
            }
            else
            {
                if (rankingHelper.NoRankingText != null)
                {
                    rankingHelper.NoRankingText.CustomSetActive(false);
                }
                switch (rankNumber)
                {
                case 1:
                    rankingHelper.No1.CustomSetActive(true);
                    if ((rankingHelper.No1BG != null) && (rankingHelper.No1IconFrame != null))
                    {
                        rankingHelper.No1BG.CustomSetActive(true);
                        rankingHelper.No1IconFrame.CustomSetActive(true);
                    }
                    return;

                case 2:
                    rankingHelper.No2.CustomSetActive(true);
                    return;

                case 3:
                    rankingHelper.No3.CustomSetActive(true);
                    return;
                }
                rankingHelper.RankingNumText.CustomSetActive(true);
                rankingHelper.RankingNumText.GetComponent <Text>().text = string.Format("{0}", rankNumber);
            }
        }
        private void RefreshAcntInfo()
        {
            CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(UNION_RANK_PATH);

            if (form != null)
            {
                CSDT_RANKING_LIST_ITEM_INFO actRankInfo = this.GetActRankInfo(this.m_CurSelRankType);
                CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

                GameObject        widget    = form.GetWidget(1);
                RankingItemHelper component = widget.GetComponent <RankingItemHelper>();
                uint rankNumber             = 0;
                if ((actRankInfo != null) && (masterRoleInfo != null))
                {
                    widget.CustomSetActive(true);
                    string name  = masterRoleInfo.Name;
                    uint   level = masterRoleInfo.Level;
                    rankNumber = actRankInfo.dwRankNo;
                    uint dwPerfectCnt = 0;
                    if (rankNumber == 0)
                    {
                        dwPerfectCnt = CUnionBattleEntrySystem.GetRewardMatchStateByMapId(this.m_CurSelMapId).dwPerfectCnt;
                    }
                    else
                    {
                        dwPerfectCnt = actRankInfo.dwRankScore;
                    }
                    widget.transform.FindChild("Value").gameObject.CustomSetActive(true);
                    widget.transform.FindChild("ValueType").gameObject.CustomSetActive(true);
                    SetGameObjChildText(widget, "Value", dwPerfectCnt.ToString(CultureInfo.InvariantCulture));
                    SetGameObjChildText(widget, "NameGroup/PlayerName", masterRoleInfo.Name);
                    SetGameObjChildText(widget, "PlayerLv", string.Format("Lv.{0}", level.ToString(CultureInfo.InvariantCulture)));
                }
                RankNobSet(rankNumber, component);
                MonoSingleton <NobeSys> .GetInstance().SetMyQQVipHead(component.QqVip.GetComponent <Image>());

                CUICommonSystem.SetHostHeadItemCell(widget.transform.FindChild("HeadItemCell").gameObject);
                MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.WxIcon, Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo().m_privilegeType, ApolloPlatform.Wechat, true, false);

                MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.QqIcon, Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo().m_privilegeType, ApolloPlatform.QQ, true, false);

                MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.GuestIcon, Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo().m_privilegeType, ApolloPlatform.Guest, true, false);
            }
        }
        private void RefreshOneWinCntElement(GameObject element, int index)
        {
            CSDT_RANKING_LIST_SUCC listInfo = this.m_UnionRankInfo[(int)this.m_CurSelRankType].listInfo;

            if (element != null && listInfo != null && index < listInfo.astItemDetail.Length && (long)index < (long)((ulong)listInfo.dwItemNum))
            {
                RankingItemHelper component = element.GetComponent <RankingItemHelper>();
                string            text      = string.Empty;
                uint dwRankScore            = listInfo.astItemDetail[index].dwRankScore;
                COMDT_RANKING_LIST_ITEM_EXTRA_PLAYER rankItemDetailInfo = this.GetRankItemDetailInfo(this.m_CurSelRankType, index);
                text = StringHelper.UTF8BytesToString(ref rankItemDetailInfo.szPlayerName);
                uint   dwPvpLevel = rankItemDetailInfo.dwPvpLevel;
                string serverUrl  = Singleton <ApolloHelper> .GetInstance().ToSnsHeadUrl(ref rankItemDetailInfo.szHeadUrl);

                uint dwCurLevel               = rankItemDetailInfo.stGameVip.dwCurLevel;
                uint dwHeadIconId             = rankItemDetailInfo.stGameVip.dwHeadIconId;
                COM_PRIVILEGE_TYPE bPrivilege = rankItemDetailInfo.bPrivilege;
                uint dwVipLevel               = rankItemDetailInfo.dwVipLevel;
                MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.WxIcon, bPrivilege, 1, true, false);

                MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.QqIcon, bPrivilege, 2, true, false);

                MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.GuestIcon, bPrivilege, 5, true, false);

                CUnionBattleRankSystem.SetGameObjChildText(element, "NameGroup/PlayerName", text);
                CUnionBattleRankSystem.SetGameObjChildText(element, "PlayerLv", string.Format("Lv.{0}", Math.Max(1u, dwPvpLevel)));
                element.transform.FindChild("Value").gameObject.CustomSetActive(true);
                CUnionBattleRankSystem.SetGameObjChildText(element, "Value", dwRankScore.ToString(CultureInfo.get_InvariantCulture()));
                uint rankNumber = (uint)(index + 1);
                CUnionBattleRankSystem.RankNobSet(rankNumber, component);
                if (!CSysDynamicBlock.bSocialBlocked)
                {
                    if (rankItemDetailInfo.ullUid == Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().playerUllUID)
                    {
                        MonoSingleton <NobeSys> .GetInstance().SetMyQQVipHead(component.QqVip.GetComponent <Image>());

                        MonoSingleton <NobeSys> .GetInstance().SetNobeIcon(component.VipIcon.GetComponent <Image>(), (int)Singleton <CRoleInfoManager> .get_instance().GetMasterRoleInfo().GetNobeInfo().stGameVipClient.dwCurLevel, false);

                        MonoSingleton <NobeSys> .GetInstance().SetHeadIconBk(component.HeadIconFrame.GetComponent <Image>(), (int)Singleton <CRoleInfoManager> .get_instance().GetMasterRoleInfo().GetNobeInfo().stGameVipClient.dwHeadIconId);

                        MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.WxIcon, Singleton <CRoleInfoManager> .get_instance().GetMasterRoleInfo().m_privilegeType, 1, true, false);

                        MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.QqIcon, Singleton <CRoleInfoManager> .get_instance().GetMasterRoleInfo().m_privilegeType, 2, true, false);

                        MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.GuestIcon, Singleton <CRoleInfoManager> .get_instance().GetMasterRoleInfo().m_privilegeType, 5, true, false);

                        RankingView.SetHostUrlHeadIcon(component.HeadIcon);
                    }
                    else
                    {
                        MonoSingleton <NobeSys> .GetInstance().SetOtherQQVipHead(component.QqVip.GetComponent <Image>(), (int)dwVipLevel);

                        MonoSingleton <NobeSys> .GetInstance().SetNobeIcon(component.VipIcon.GetComponent <Image>(), (int)dwCurLevel, false);

                        MonoSingleton <NobeSys> .GetInstance().SetHeadIconBk(component.HeadIconFrame.GetComponent <Image>(), (int)dwHeadIconId);

                        MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.WxIcon, bPrivilege, 1, true, false);

                        MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.QqIcon, bPrivilege, 2, true, false);

                        MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.GuestIcon, bPrivilege, 5, true, false);

                        RankingView.SetUrlHeadIcon(component.HeadIcon, serverUrl);
                    }
                }
            }
        }
示例#6
0
        public static void UpdateOneGodElement(GameObject objElement, int viewIndex, CSDT_RANKING_LIST_SUCC curRankingList)
        {
            if ((curRankingList != null) && (objElement != null))
            {
                RankingItemHelper component = objElement.GetComponent <RankingItemHelper>();
                if (component != null)
                {
                    CSDT_RANKING_LIST_ITEM_INFO csdt_ranking_list_item_info = curRankingList.astItemDetail[viewIndex];
                    if (csdt_ranking_list_item_info != null)
                    {
                        string             text          = string.Empty;
                        uint               dwPvpLevel    = 1;
                        string             serverUrl     = null;
                        ulong              ullUid        = 0L;
                        uint               logicWorldId  = 0;
                        uint               dwCurLevel    = 0;
                        uint               dwHeadIconId  = 0;
                        uint               dwVipLevel    = 0;
                        COM_PRIVILEGE_TYPE privilegeType = COM_PRIVILEGE_TYPE.COM_PRIVILEGE_TYPE_NONE;
                        COMDT_RANKING_LIST_ITEM_EXTRA_PLAYER stAcntInfo = csdt_ranking_list_item_info.stExtraInfo.stDetailInfo.stMasterHero.stAcntInfo;
                        if (stAcntInfo != null)
                        {
                            text       = StringHelper.UTF8BytesToString(ref stAcntInfo.szPlayerName);
                            dwPvpLevel = stAcntInfo.dwPvpLevel;
                            serverUrl  = Singleton <ApolloHelper> .GetInstance().ToSnsHeadUrl(ref stAcntInfo.szHeadUrl);

                            ullUid        = stAcntInfo.ullUid;
                            logicWorldId  = (uint)stAcntInfo.iLogicWorldId;
                            dwCurLevel    = stAcntInfo.stGameVip.dwCurLevel;
                            dwHeadIconId  = stAcntInfo.stGameVip.dwHeadIconId;
                            privilegeType = (COM_PRIVILEGE_TYPE)stAcntInfo.bPrivilege;
                            dwVipLevel    = stAcntInfo.dwVipLevel;
                        }
                        MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.WxIcon, privilegeType, ApolloPlatform.Wechat, true, false);

                        MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.QqIcon, privilegeType, ApolloPlatform.QQ, true, false);

                        MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.GuestIcon, privilegeType, ApolloPlatform.Guest, true, false);

                        SetGameObjChildText(objElement, "NameGroup/PlayerName", text);
                        SetGameObjChildText(objElement, "PlayerLv", string.Format("Lv.{0}", Math.Max(1, dwPvpLevel)));
                        SetUrlHeadIcon(component.HeadIcon, serverUrl);
                        SetPlatChannel(objElement, logicWorldId);
                        component.LadderGo.CustomSetActive(false);
                        objElement.transform.FindChild("Value").gameObject.CustomSetActive(true);
                        objElement.transform.FindChild("ValueType").gameObject.CustomSetActive(true);
                        component.FindBtn.CustomSetActive(true);
                        component.FindBtn.GetComponent <CUIEventScript>().m_onClickEventParams.tag = viewIndex;
                        Utility.FindChild(component.FindBtn, "Select").CustomSetActive(false);
                        uint     num7 = (csdt_ranking_list_item_info.stExtraInfo.stDetailInfo.stMasterHero.dwWinCnt * 100) / csdt_ranking_list_item_info.stExtraInfo.stDetailInfo.stMasterHero.dwGameCnt;
                        string[] args = new string[] { num7.ToString(), csdt_ranking_list_item_info.stExtraInfo.stDetailInfo.stMasterHero.dwWinCnt.ToString() };
                        SetGameObjChildText(objElement, "ValueType", Singleton <CTextManager> .GetInstance().GetText("ranking_ItemHeroMasterName", args));
                        SetGameObjChildText(objElement, "Value", string.Empty);
                        uint rankNumber = (uint)(viewIndex + 1);
                        RankingNumSet(rankNumber, component);
                        component.AddFriend.CustomSetActive(false);
                        component.SendCoin.CustomSetActive(false);
                        component.Online.CustomSetActive(false);
                        if (dwVipLevel == 0xdf1f9)
                        {
                            MonoSingleton <NobeSys> .GetInstance().SetMyQQVipHead(component.QqVip.GetComponent <Image>());
                        }
                        else
                        {
                            MonoSingleton <NobeSys> .GetInstance().SetOtherQQVipHead(component.QqVip.GetComponent <Image>(), (int)dwVipLevel);
                        }
                        MonoSingleton <NobeSys> .GetInstance().SetNobeIcon(component.VipIcon.GetComponent <Image>(), (int)dwCurLevel, false);

                        MonoSingleton <NobeSys> .GetInstance().SetHeadIconBk(component.HeadIconFrame.GetComponent <Image>(), (int)dwHeadIconId);
                    }
                }
            }
        }
示例#7
0
        public static void UpdateArenaSelfInfo()
        {
            if (Singleton <CArenaSystem> .instance.m_fightHeroInfoList != null)
            {
                CUIFormScript form = Singleton <CUIManager> .instance.GetForm(RankingSystem.s_rankingForm);

                if (form != null)
                {
                    uint pvpLevel = Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo().PvpLevel;

                    List <uint> arenaDefHeroList = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().m_arenaDefHeroList;

                    GameObject        widget    = form.GetWidget(0x12);
                    RankingItemHelper component = widget.GetComponent <RankingItemHelper>();
                    SetGameObjChildText(widget, "NameGroup/PlayerName", Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo().Name);
                    SetGameObjChildText(widget, "PlayerLv", string.Format("Lv.{0}", pvpLevel.ToString(CultureInfo.InvariantCulture)));
                    SetHostUrlHeadIcon(Utility.FindChild(widget, "HeadIcon"));
                    MonoSingleton <NobeSys> .GetInstance().SetMyQQVipHead(Utility.GetComponetInChild <Image>(widget, "NameGroup/QQVipIcon"));

                    MonoSingleton <NobeSys> .GetInstance().SetNobeIcon(Utility.GetComponetInChild <Image>(widget, "NobeIcon"), (int)Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo().GetNobeInfo().stGameVipClient.dwCurLevel, false);

                    MonoSingleton <NobeSys> .GetInstance().SetHeadIconBk(Utility.GetComponetInChild <Image>(widget, "HeadFrame"), (int)Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo().GetNobeInfo().stGameVipClient.dwHeadIconId);

                    MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(Utility.FindChild(widget, "NameGroup/WXIcon"), Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo().m_privilegeType, ApolloPlatform.Wechat, true, false);

                    MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(Utility.FindChild(widget, "NameGroup/QQGameCenterIcon"), Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo().m_privilegeType, ApolloPlatform.QQ, true, false);

                    MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(Utility.FindChild(widget, "NameGroup/GuestGameCenterIcon"), Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo().m_privilegeType, ApolloPlatform.Guest, true, false);

                    RankingNumSet(Singleton <CArenaSystem> .instance.m_fightHeroInfoList.stArenaInfo.dwSelfRank, component);
                    for (int i = 0; i < 3; i++)
                    {
                        int        num5 = i + 1;
                        GameObject obj3 = Utility.FindChild(widget, string.Format("listHero/heroItemCell{0}", num5.ToString()));
                        if (arenaDefHeroList.Count > i)
                        {
                            obj3.CustomSetActive(true);
                            IHeroData data = CHeroDataFactory.CreateHeroData(arenaDefHeroList[i]);
                            CUICommonSystem.SetHeroItemData(form, obj3, data, enHeroHeadType.enIcon, false);
                        }
                        else
                        {
                            obj3.CustomSetActive(false);
                        }
                    }
                    ListView <COMDT_ARENA_FIGHT_RECORD> recordList = Singleton <CArenaSystem> .instance.m_recordList;
                    ulong playerUllUID = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().playerUllUID;

                    int num4 = 0;
                    if ((recordList != null) && (recordList.Count > 0))
                    {
                        if (recordList[0].ullAtkerUid == playerUllUID)
                        {
                            if (recordList[0].bResult == 1)
                            {
                                num4 = (int)(recordList[0].dwAtkerRank - recordList[0].dwTargetRank);
                            }
                        }
                        else if (recordList[0].bResult == 1)
                        {
                            num4 = (int)(recordList[0].dwAtkerRank - recordList[0].dwTargetRank);
                        }
                    }
                    GameObject obj4 = Utility.FindChild(widget, "ChangeIcon");
                    if (num4 == 0)
                    {
                        obj4.CustomSetActive(false);
                        SetGameObjChildText(widget, "ChangeNum", "--");
                    }
                    else if (num4 > 0)
                    {
                        obj4.CustomSetActive(true);
                        obj4.transform.localEulerAngles = new Vector3(0f, 0f, 0f);
                        SetGameObjChildText(widget, "ChangeNum", num4.ToString(CultureInfo.InvariantCulture));
                    }
                    else if (num4 < 0)
                    {
                        obj4.CustomSetActive(true);
                        obj4.transform.localEulerAngles = new Vector3(0f, 0f, 180f);
                        SetGameObjChildText(widget, "ChangeNum", num4.ToString(CultureInfo.InvariantCulture));
                    }
                }
            }
        }
示例#8
0
        public static void UpdateOneGodElement(GameObject objElement, int viewIndex, CSDT_RANKING_LIST_SUCC curRankingList)
        {
            if (curRankingList == null)
            {
                return;
            }
            if (objElement == null)
            {
                return;
            }
            RankingItemHelper component = objElement.GetComponent <RankingItemHelper>();

            if (component == null)
            {
                return;
            }
            CSDT_RANKING_LIST_ITEM_INFO cSDT_RANKING_LIST_ITEM_INFO = curRankingList.astItemDetail[viewIndex];

            if (cSDT_RANKING_LIST_ITEM_INFO == null)
            {
                return;
            }
            string             text          = string.Empty;
            uint               num           = 1u;
            string             serverUrl     = null;
            uint               logicWorldId  = 0u;
            uint               level         = 0u;
            uint               headIdx       = 0u;
            uint               num2          = 0u;
            COM_PRIVILEGE_TYPE privilegeType = 0;
            COMDT_RANKING_LIST_ITEM_EXTRA_PLAYER stAcntInfo = cSDT_RANKING_LIST_ITEM_INFO.stExtraInfo.stDetailInfo.get_stMasterHero().stAcntInfo;

            if (stAcntInfo != null)
            {
                text      = StringHelper.UTF8BytesToString(ref stAcntInfo.szPlayerName);
                num       = stAcntInfo.dwPvpLevel;
                serverUrl = Singleton <ApolloHelper> .GetInstance().ToSnsHeadUrl(ref stAcntInfo.szHeadUrl);

                ulong ullUid = stAcntInfo.ullUid;
                logicWorldId  = (uint)stAcntInfo.iLogicWorldId;
                level         = stAcntInfo.stGameVip.dwCurLevel;
                headIdx       = stAcntInfo.stGameVip.dwHeadIconId;
                privilegeType = stAcntInfo.bPrivilege;
                num2          = stAcntInfo.dwVipLevel;
            }
            MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.WxIcon, privilegeType, 1, true, false);

            MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.QqIcon, privilegeType, 2, true, false);

            MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.GuestIcon, privilegeType, 5, true, false);

            RankingView.SetGameObjChildText(objElement, "NameGroup/PlayerName", text);
            RankingView.SetGameObjChildText(objElement, "PlayerLv", string.Format("Lv.{0}", Math.Max(1u, num)));
            RankingView.SetUrlHeadIcon(component.HeadIcon, serverUrl);
            RankingView.SetPlatChannel(objElement, logicWorldId);
            component.LadderGo.CustomSetActive(false);
            objElement.transform.FindChild("Value").gameObject.CustomSetActive(true);
            objElement.transform.FindChild("ValueType").gameObject.CustomSetActive(true);
            component.FindBtn.CustomSetActive(true);
            component.FindBtn.GetComponent <CUIEventScript>().m_onClickEventParams.tag = viewIndex;
            Utility.FindChild(component.FindBtn, "Select").CustomSetActive(false);
            float num3 = CPlayerProfile.Divide(cSDT_RANKING_LIST_ITEM_INFO.stExtraInfo.stDetailInfo.get_stMasterHero().dwWinCnt * 100u, cSDT_RANKING_LIST_ITEM_INFO.stExtraInfo.stDetailInfo.get_stMasterHero().dwGameCnt);

            if (RankingView.RANK_GOD_WIN_CNT == 0u)
            {
                RankingView.RANK_GOD_WIN_CNT = GameDataMgr.globalInfoDatabin.GetDataByKey(226u).dwConfValue;
            }
            if (cSDT_RANKING_LIST_ITEM_INFO.stExtraInfo.stDetailInfo.get_stMasterHero().dwWinCnt >= RankingView.RANK_GOD_WIN_CNT)
            {
                RankingView.SetGameObjChildText(objElement, "ValueType", Singleton <CTextManager> .GetInstance().GetText("ranking_ItemHeroMasterName", new string[]
                {
                    num3.ToString("F2"),
                    cSDT_RANKING_LIST_ITEM_INFO.stExtraInfo.stDetailInfo.get_stMasterHero().dwWinCnt.ToString()
                }));
            }
            else
            {
                RankingView.SetGameObjChildText(objElement, "ValueType", Singleton <CTextManager> .GetInstance().GetText("ranking_ItemHeroMasterNameLess100", new string[]
                {
                    cSDT_RANKING_LIST_ITEM_INFO.stExtraInfo.stDetailInfo.get_stMasterHero().dwWinCnt.ToString()
                }));
            }
            RankingView.SetGameObjChildText(objElement, "Value", string.Empty);
            uint rankNumber = (uint)(viewIndex + 1);

            RankingView.RankingNumSet(rankNumber, component);
            component.AddFriend.CustomSetActive(false);
            component.SendCoin.CustomSetActive(false);
            component.Online.CustomSetActive(false);
            if (num2 == 913913u)
            {
                MonoSingleton <NobeSys> .GetInstance().SetMyQQVipHead(component.QqVip.GetComponent <Image>());
            }
            else
            {
                MonoSingleton <NobeSys> .GetInstance().SetOtherQQVipHead(component.QqVip.GetComponent <Image>(), (int)num2);
            }
            MonoSingleton <NobeSys> .GetInstance().SetNobeIcon(component.VipIcon.GetComponent <Image>(), (int)level, false);

            MonoSingleton <NobeSys> .GetInstance().SetHeadIconBk(component.HeadIconFrame.GetComponent <Image>(), (int)headIdx);
        }