Exemplo n.º 1
0
 private void UpdateTitelRedDot()
 {
     if (this._uiForm == null || this.m_TitleMenuList == null)
     {
         return;
     }
     for (int i = 0; i < this.m_nUseActivityTabCount; i++)
     {
         CUIListElementScript elemenet = this.m_TitleMenuList.GetElemenet(i);
         if (elemenet != null)
         {
             int num = 0;
             for (int j = 0; j < this.m_AllSelectActivityMenuList[i].get_Count(); j++)
             {
                 Activity activity = this.m_AllSelectActivityMenuList[i].get_Item(j).m_Activity;
                 if (activity != null && activity.ReadyForGet)
                 {
                     num++;
                 }
             }
             if (num > 0)
             {
                 CUICommonSystem.AddRedDot(elemenet.gameObject, enRedDotPos.enTopRight, num);
             }
             else
             {
                 CUICommonSystem.DelRedDot(elemenet.gameObject);
             }
         }
     }
 }
Exemplo n.º 2
0
 public void SetUnReadNum(COM_MAIL_TYPE mailtype, int unReadNum)
 {
     if (mailtype == 2)
     {
         this.m_friUnReadNum = unReadNum;
     }
     else if (mailtype == 1)
     {
         this.m_sysUnReadNum = unReadNum;
     }
     else if (mailtype == 3)
     {
         this.m_msgUnReadNum = unReadNum;
     }
     if (this.m_CUIListScriptTab == null)
     {
         return;
     }
     if (mailtype == 2 && this.m_CUIListScriptTab.GetElemenet(0) != null)
     {
         if (unReadNum > 9)
         {
             CUICommonSystem.AddRedDot(this.m_CUIListScriptTab.GetElemenet(0).gameObject, enRedDotPos.enTopRight, 0);
         }
         else if (unReadNum > 0)
         {
             CUICommonSystem.AddRedDot(this.m_CUIListScriptTab.GetElemenet(0).gameObject, enRedDotPos.enTopRight, unReadNum);
         }
         else
         {
             CUICommonSystem.DelRedDot(this.m_CUIListScriptTab.GetElemenet(0).gameObject);
         }
     }
     else if (mailtype == 1 && this.m_CUIListScriptTab.GetElemenet(1) != null)
     {
         if (unReadNum > 9)
         {
             CUICommonSystem.AddRedDot(this.m_CUIListScriptTab.GetElemenet(1).gameObject, enRedDotPos.enTopRight, 0);
         }
         else if (unReadNum > 0)
         {
             CUICommonSystem.AddRedDot(this.m_CUIListScriptTab.GetElemenet(1).gameObject, enRedDotPos.enTopRight, unReadNum);
         }
         else
         {
             CUICommonSystem.DelRedDot(this.m_CUIListScriptTab.GetElemenet(1).gameObject);
         }
     }
     else if (mailtype == 3 && this.m_CUIListScriptTab.GetElemenet(2) != null)
     {
         if (unReadNum > 0)
         {
             CUICommonSystem.AddRedDot(this.m_CUIListScriptTab.GetElemenet(2).gameObject, enRedDotPos.enTopRight, 0);
         }
         else
         {
             CUICommonSystem.DelRedDot(this.m_CUIListScriptTab.GetElemenet(2).gameObject);
         }
     }
 }
Exemplo n.º 3
0
 public void Clear()
 {
     if (this.tablistScript != null)
     {
         CUICommonSystem.DelRedDot(this.tablistScript.GetElemenet(0).gameObject);
         CUICommonSystem.DelRedDot(this.tablistScript.GetElemenet(1).gameObject);
         if (!CSysDynamicBlock.bSocialBlocked)
         {
             CUICommonSystem.DelRedDot(this.tablistScript.GetElemenet(2).gameObject);
         }
     }
     this.friendListNode         = null;
     this.friendListCom          = null;
     this.addFriendBtnGameObject = null;
     this.info_node      = null;
     this.btnText        = null;
     this.ifnoText       = null;
     this.friendform     = null;
     this.sns_invite_btn = null;
     this.tablistScript  = null;
     if (this.addFriendView != null)
     {
         this.addFriendView.Clear();
     }
     Singleton <CUIManager> .GetInstance().CloseForm(CFriendContoller.FriendFormPath);
 }
Exemplo n.º 4
0
 public void Clear()
 {
     if (this.tablistScript != null)
     {
         CUICommonSystem.DelRedDot(this.tablistScript.GetElemenet(0).gameObject);
         CUICommonSystem.DelRedDot(this.tablistScript.GetElemenet(1).gameObject);
         if (!CSysDynamicBlock.bSocialBlocked)
         {
             CUICommonSystem.DelRedDot(this.tablistScript.GetElemenet(2).gameObject);
         }
     }
     this.friendListNode         = null;
     this.friendListCom          = null;
     this.addFriendBtnGameObject = null;
     this.info_node        = null;
     this.btnText          = null;
     this.ifnoText         = null;
     this.friendform       = null;
     this.sns_invite_btn   = null;
     this.lbs_node         = null;
     this.m_QQboxBtn       = null;
     this.sns_share_switch = null;
     this.sns_add_switch   = null;
     this.rule_btn_node    = null;
     this.localtionToggle  = this.nanToggle = (Toggle)(this.nvToggle = null);
     this.lbsRefreshBtn    = null;
     this.tablistScript    = null;
     if (this.addFriendView != null)
     {
         this.addFriendView.Clear();
     }
 }
Exemplo n.º 5
0
 public void SetUnReadNum(COM_MAIL_TYPE mailtype, int unReadNum)
 {
     if (mailtype == COM_MAIL_TYPE.COM_MAIL_FRIEND)
     {
         this.m_friUnReadNum = unReadNum;
     }
     else if (mailtype == COM_MAIL_TYPE.COM_MAIL_SYSTEM)
     {
         this.m_sysUnReadNum = unReadNum;
     }
     else if (mailtype == COM_MAIL_TYPE.COM_MAIL_FRIEND_INVITE)
     {
         this.m_msgUnReadNum = unReadNum;
     }
     if (this.m_CUIListScriptTab != null)
     {
         if ((mailtype == COM_MAIL_TYPE.COM_MAIL_FRIEND) && (this.m_CUIListScriptTab.GetElemenet(0) != null))
         {
             if (unReadNum > 9)
             {
                 CUICommonSystem.AddRedDot(this.m_CUIListScriptTab.GetElemenet(0).gameObject, enRedDotPos.enTopRight, 0);
             }
             else if (unReadNum > 0)
             {
                 CUICommonSystem.AddRedDot(this.m_CUIListScriptTab.GetElemenet(0).gameObject, enRedDotPos.enTopRight, unReadNum);
             }
             else
             {
                 CUICommonSystem.DelRedDot(this.m_CUIListScriptTab.GetElemenet(0).gameObject);
             }
         }
         else if ((mailtype == COM_MAIL_TYPE.COM_MAIL_SYSTEM) && (this.m_CUIListScriptTab.GetElemenet(1) != null))
         {
             if (unReadNum > 9)
             {
                 CUICommonSystem.AddRedDot(this.m_CUIListScriptTab.GetElemenet(1).gameObject, enRedDotPos.enTopRight, 0);
             }
             else if (unReadNum > 0)
             {
                 CUICommonSystem.AddRedDot(this.m_CUIListScriptTab.GetElemenet(1).gameObject, enRedDotPos.enTopRight, unReadNum);
             }
             else
             {
                 CUICommonSystem.DelRedDot(this.m_CUIListScriptTab.GetElemenet(1).gameObject);
             }
         }
         else if ((mailtype == COM_MAIL_TYPE.COM_MAIL_FRIEND_INVITE) && (this.m_CUIListScriptTab.GetElemenet(2) != null))
         {
             if (unReadNum > 0)
             {
                 CUICommonSystem.AddRedDot(this.m_CUIListScriptTab.GetElemenet(2).gameObject, enRedDotPos.enTopRight, 0);
             }
             else
             {
                 CUICommonSystem.DelRedDot(this.m_CUIListScriptTab.GetElemenet(2).gameObject);
             }
         }
     }
 }
Exemplo n.º 6
0
    public void DelRedDot(int index)
    {
        CUIListElementScript elemenet = this.tablistScript.GetElemenet(index);

        if (elemenet != null)
        {
            CUICommonSystem.DelRedDot(elemenet.gameObject);
        }
    }
Exemplo n.º 7
0
 public void DelRedDot(enSysEntryID sysEntryId)
 {
     if (this.m_Btns != null)
     {
         GameObject obj2;
         this.m_Btns.TryGetValue((int)sysEntryId, out obj2);
         CUICommonSystem.DelRedDot(obj2);
     }
 }
Exemplo n.º 8
0
        public static void RefreshDianQuanPayButton(bool notifyFromSvr = false)
        {
            CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(FORM_PATH);

            if (form != null)
            {
                CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

                GameObject     gameObject = form.transform.Find("DiamondPayBtn").gameObject;
                CUIEventScript component  = gameObject.GetComponent <CUIEventScript>();
                CTextManager   instance   = Singleton <CTextManager> .GetInstance();

                if (!masterRoleInfo.IsGuidedStateSet(0x16))
                {
                    CUICommonSystem.SetButtonName(gameObject, instance.GetText("Pay_Btn_FirstPay"));
                    component.SetUIEvent(enUIEventType.Click, enUIEventID.Pay_OpenFirstPayPanel);
                    CUICommonSystem.DelRedDot(gameObject);
                }
                else if (!masterRoleInfo.IsGuidedStateSet(0x17))
                {
                    CUICommonSystem.SetButtonName(gameObject, instance.GetText("Pay_Btn_FirstPay"));
                    component.SetUIEvent(enUIEventType.Click, enUIEventID.Pay_OpenFirstPayPanel);
                    CUICommonSystem.AddRedDot(gameObject, enRedDotPos.enTopRight, 0);
                }
                else if (!masterRoleInfo.IsGuidedStateSet(0x18))
                {
                    CUICommonSystem.SetButtonName(gameObject, instance.GetText("Pay_Btn_Renewal"));
                    component.SetUIEvent(enUIEventType.Click, enUIEventID.Pay_OpenRenewalPanel);
                    CUICommonSystem.DelRedDot(gameObject);
                }
                else if (!masterRoleInfo.IsGuidedStateSet(0x19))
                {
                    CUICommonSystem.SetButtonName(gameObject, instance.GetText("Pay_Btn_Renewal"));
                    component.SetUIEvent(enUIEventType.Click, enUIEventID.Pay_OpenRenewalPanel);
                    CUICommonSystem.AddRedDot(gameObject, enRedDotPos.enTopRight, 0);
                }
                else if (masterRoleInfo.IsClientBitsSet(0))
                {
                    CUICommonSystem.SetButtonName(gameObject, instance.GetText("GotoTehuiShopName"));
                    component.SetUIEvent(enUIEventType.Click, enUIEventID.Pay_TehuiShop);
                }
                else if (notifyFromSvr)
                {
                    masterRoleInfo.SetClientBits(0, true, false);
                    RefreshDianQuanPayButton(false);
                }
                else
                {
                    gameObject.CustomSetActive(false);
                }
            }
        }
Exemplo n.º 9
0
        public void Refresh_Tab()
        {
            int dataCount = Singleton <CFriendContoller> .GetInstance().model.GetDataCount(CFriendModel.FriendType.RequestFriend);

            int index = !CSysDynamicBlock.bSocialBlocked ? 2 : 1;

            if (dataCount > 0)
            {
                CUICommonSystem.AddRedDot(this.tablistScript.GetElemenet(index).gameObject, enRedDotPos.enTopRight, dataCount);
            }
            else
            {
                CUICommonSystem.DelRedDot(this.tablistScript.GetElemenet(index).gameObject);
            }
        }
Exemplo n.º 10
0
 private void OnIDIPNoticeUpdate()
 {
     if (this._campaignForm != null)
     {
         GameObject iDIPRedObj = this._campaignForm.GetIDIPRedObj();
         if (iDIPRedObj != null)
         {
             if (MonoSingleton <IDIPSys> .GetInstance().HaveUpdateList)
             {
                 CUICommonSystem.AddRedDot(iDIPRedObj, enRedDotPos.enTopRight, 0);
             }
             else if (iDIPRedObj != null)
             {
                 CUICommonSystem.DelRedDot(iDIPRedObj);
             }
         }
     }
 }
        public void UpdatePandoraRedPoint()
        {
            if (this.m_TitleListObj == null)
            {
                return;
            }
            int num = this.m_TitleListObj.Length;

            for (int i = this.m_nUseActivityTabCount; i < num - 1; i++)
            {
                int idxTab = i - this.m_nUseActivityTabCount;
                int num2   = MonoSingleton <PandroaSys> .GetInstance().IsShowPandoraTabRedPointByTabIdx(PandroaSys.PandoraModuleType.action, idxTab);

                if (num2 > 0)
                {
                    CUICommonSystem.AddRedDot(this.m_TitleListObj[i], enRedDotPos.enTopRight, num2, 0, 0);
                }
                else
                {
                    CUICommonSystem.DelRedDot(this.m_TitleListObj[i]);
                }
            }
        }
    private void CalcRedPoint()
    {
        ListView <FriendReserve.Ent> listView = Singleton <CFriendContoller> .instance.model.friendReserve.dataList[0];
        int count = listView.Count;

        if (count > 0)
        {
            CUICommonSystem.AddRedDot(this.signalPanelChatBtn, enRedDotPos.enTopRight, count, 0, 0);
        }
        else
        {
            CUICommonSystem.DelRedDot(this.signalPanelChatBtn);
        }
        int tabIndex = this.GetTabIndex(InBattleShortcut.TabType.TabReserve);

        if (tabIndex != -1)
        {
            CUIListElementScript elemenet = this.tabList.GetElemenet(tabIndex);
            if (elemenet != null && elemenet.gameObject != null)
            {
                GameObject gameObject = Utility.FindChild(elemenet.gameObject, "RedDot");
                if (gameObject == null)
                {
                    return;
                }
                if (count > 0)
                {
                    CUICommonSystem.AddRedDot(gameObject, enRedDotPos.enTopRight, count, 0, 0);
                }
                else
                {
                    CUICommonSystem.DelRedDot(gameObject);
                }
            }
        }
    }
Exemplo n.º 13
0
    private void _ShowLevelNode(GameObject node, LevelRewardData data)
    {
        if ((node != null) && (data != null))
        {
            int index = Singleton <CTaskSys> .instance.model.GetLevelRewardData_Index(data);

            bool       flag     = index == (Singleton <CTaskSys> .instance.model.m_levelRewardDataMap.Count - 1);
            GameObject showNode = null;
            GameObject hideNode = null;
            this.GetShowAndHide_LevelNode(index, node, out showNode, out hideNode);
            showNode.CustomSetActive(true);
            hideNode.CustomSetActive(false);
            Text component = showNode.transform.Find("Text").GetComponent <Text>();
            if (component != null)
            {
                component.text = string.Format("LV.{0}", data.m_level);
            }
            GameObject gameObject = showNode.transform.Find("locked").gameObject;
            GameObject obj5       = showNode.transform.Find("normal").gameObject;
            if (Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo().PvpLevel >= data.m_level)
            {
                if (gameObject != null)
                {
                    gameObject.CustomSetActive(false);
                }
                if (obj5 != null)
                {
                    obj5.CustomSetActive(true);
                }
            }
            else
            {
                if (gameObject != null)
                {
                    gameObject.CustomSetActive(true);
                }
                if (obj5 != null)
                {
                    obj5.CustomSetActive(false);
                }
            }
            GameObject obj6           = showNode.transform.Find("curLevel").gameObject;
            CRoleInfo  masterRoleInfo = Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo();

            bool bActive = (masterRoleInfo != null) && (masterRoleInfo.PvpLevel == data.m_level);
            if (obj6 != null)
            {
                obj6.CustomSetActive(bActive);
            }
            GameObject obj7 = showNode.transform.Find("selected").gameObject;
            if (Singleton <CTaskSys> .instance.model.curLevelRewardData != null)
            {
                bool flag3 = Singleton <CTaskSys> .instance.model.curLevelRewardData.IsEqual(data);

                obj7.CustomSetActive(flag3);
            }
            else
            {
                obj7.CustomSetActive(false);
            }
            GameObject obj8 = showNode.transform.Find("line").gameObject;
            if (flag)
            {
                if (obj8 != null)
                {
                    obj8.CustomSetActive(false);
                }
            }
            else if (obj8 != null)
            {
                obj8.CustomSetActive(true);
            }
            if (Singleton <CTaskSys> .instance.model.IsLevelNode_RedDot(data))
            {
                CUICommonSystem.AddRedDot(showNode, enRedDotPos.enTopRight, 0);
            }
            else
            {
                CUICommonSystem.DelRedDot(showNode);
            }
            CUICommonSystem.DelRedDot(hideNode);
        }
    }
Exemplo n.º 14
0
 public void SetUnReadNum(CustomMailType mailtype, int unReadNum)
 {
     if (mailtype == CustomMailType.FRIEND)
     {
         this.m_friUnReadNum = unReadNum;
     }
     else if (mailtype == CustomMailType.SYSTEM)
     {
         this.m_sysUnReadNum = unReadNum;
     }
     else if (mailtype == CustomMailType.FRIEND_INVITE)
     {
         this.m_msgUnReadNum = unReadNum;
     }
     else if (mailtype == CustomMailType.ASK_FOR)
     {
         this.m_askForUnReadNum = unReadNum;
     }
     if (this.m_CUIListScriptTab == null)
     {
         return;
     }
     if (mailtype == CustomMailType.FRIEND && this.m_CUIListScriptTab.GetElemenet(0) != null)
     {
         if (unReadNum > 9)
         {
             CUICommonSystem.AddRedDot(this.m_CUIListScriptTab.GetElemenet(0).gameObject, enRedDotPos.enTopRight, 0, 0, 0);
         }
         else if (unReadNum > 0)
         {
             CUICommonSystem.AddRedDot(this.m_CUIListScriptTab.GetElemenet(0).gameObject, enRedDotPos.enTopRight, unReadNum, 0, 0);
         }
         else
         {
             CUICommonSystem.DelRedDot(this.m_CUIListScriptTab.GetElemenet(0).gameObject);
         }
     }
     else if (mailtype == CustomMailType.SYSTEM && this.m_CUIListScriptTab.GetElemenet(1) != null)
     {
         if (unReadNum > 9)
         {
             CUICommonSystem.AddRedDot(this.m_CUIListScriptTab.GetElemenet(1).gameObject, enRedDotPos.enTopRight, 0, 0, 0);
         }
         else if (unReadNum > 0)
         {
             CUICommonSystem.AddRedDot(this.m_CUIListScriptTab.GetElemenet(1).gameObject, enRedDotPos.enTopRight, unReadNum, 0, 0);
         }
         else
         {
             CUICommonSystem.DelRedDot(this.m_CUIListScriptTab.GetElemenet(1).gameObject);
         }
     }
     else if (mailtype == CustomMailType.FRIEND_INVITE && this.m_CUIListScriptTab.GetElemenet(2) != null)
     {
         if (unReadNum > 0)
         {
             CUICommonSystem.AddRedDot(this.m_CUIListScriptTab.GetElemenet(2).gameObject, enRedDotPos.enTopRight, 0, 0, 0);
         }
         else
         {
             CUICommonSystem.DelRedDot(this.m_CUIListScriptTab.GetElemenet(2).gameObject);
         }
     }
     else if (mailtype == CustomMailType.ASK_FOR && this.m_CUIListScriptTab.GetElemenet(3) != null)
     {
         if (unReadNum > 9)
         {
             CUICommonSystem.AddRedDot(this.m_CUIListScriptTab.GetElemenet(3).gameObject, enRedDotPos.enTopRight, 0, 0, 0);
         }
         else if (unReadNum > 0)
         {
             CUICommonSystem.AddRedDot(this.m_CUIListScriptTab.GetElemenet(3).gameObject, enRedDotPos.enTopRight, unReadNum, 0, 0);
         }
         else
         {
             CUICommonSystem.DelRedDot(this.m_CUIListScriptTab.GetElemenet(3).gameObject);
         }
     }
 }
Exemplo n.º 15
0
    private void _ShowLevelNode(GameObject node, LevelRewardData data)
    {
        if (node == null || data == null)
        {
            return;
        }
        int levelRewardData_Index = Singleton <CTaskSys> .instance.model.GetLevelRewardData_Index(data);

        bool       flag        = levelRewardData_Index == Singleton <CTaskSys> .instance.model.m_levelRewardDataMap.Count - 1;
        GameObject gameObject  = null;
        GameObject gameObject2 = null;

        this.GetShowAndHide_LevelNode(levelRewardData_Index, node, out gameObject, out gameObject2);
        gameObject.CustomSetActive(true);
        gameObject2.CustomSetActive(false);
        Text component = gameObject.transform.Find("Text").GetComponent <Text>();

        if (component)
        {
            component.set_text(string.Format("LV.{0}", data.m_level));
        }
        GameObject gameObject3 = gameObject.transform.Find("locked").gameObject;
        GameObject gameObject4 = gameObject.transform.Find("normal").gameObject;

        if ((ulong)Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo().PvpLevel >= (ulong)((long)data.m_level))
        {
            if (gameObject3 != null)
            {
                gameObject3.CustomSetActive(false);
            }
            if (gameObject4 != null)
            {
                gameObject4.CustomSetActive(true);
            }
        }
        else
        {
            if (gameObject3 != null)
            {
                gameObject3.CustomSetActive(true);
            }
            if (gameObject4 != null)
            {
                gameObject4.CustomSetActive(false);
            }
        }
        GameObject gameObject5    = gameObject.transform.Find("curLevel").gameObject;
        CRoleInfo  masterRoleInfo = Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo();

        bool bActive = masterRoleInfo != null && (ulong)masterRoleInfo.PvpLevel == (ulong)((long)data.m_level);

        if (gameObject5 != null)
        {
            gameObject5.CustomSetActive(bActive);
        }
        GameObject gameObject6 = gameObject.transform.Find("selected").gameObject;

        if (Singleton <CTaskSys> .instance.model.curLevelRewardData != null)
        {
            bool bActive2 = Singleton <CTaskSys> .instance.model.curLevelRewardData.IsEqual(data);

            gameObject6.CustomSetActive(bActive2);
        }
        else
        {
            gameObject6.CustomSetActive(false);
        }
        GameObject gameObject7 = gameObject.transform.Find("line").gameObject;

        if (flag)
        {
            if (gameObject7 != null)
            {
                gameObject7.CustomSetActive(false);
            }
        }
        else if (gameObject7 != null)
        {
            gameObject7.CustomSetActive(true);
        }
        if (Singleton <CTaskSys> .instance.model.IsLevelNode_RedDot(data))
        {
            CUICommonSystem.AddRedDot(gameObject, enRedDotPos.enTopRight, 0, 0, 0);
        }
        else
        {
            CUICommonSystem.DelRedDot(gameObject);
        }
        CUICommonSystem.DelRedDot(gameObject2);
    }
Exemplo n.º 16
0
        public void UpdatePlayerData()
        {
            CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo();

            if (masterRoleInfo != null)
            {
                CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(FORM_PATH);

                if (this.m_PlayerName != null)
                {
                    this.m_PlayerName.text = masterRoleInfo.Name;
                }
                if (this.m_PlayerExp != null)
                {
                    this.m_PlayerExp.text = masterRoleInfo.Level.ToString();
                }
                if ((masterRoleInfo != null) && (this.m_PvpExpImg != null))
                {
                    this.m_PvpExpImg.CustomFillAmount(CPlayerProfile.Divide(masterRoleInfo.PvpExp, masterRoleInfo.PvpNeedExp));
                    this.m_PvpExpTxt.text = masterRoleInfo.PvpExp + "/" + masterRoleInfo.PvpNeedExp;
                }
                if (this.m_PvpLevel != null)
                {
                    string text = Singleton <CTextManager> .GetInstance().GetText("ranking_PlayerLevel");

                    if ((!string.IsNullOrEmpty(text) && (this.m_PvpLevel.text != null)) && (masterRoleInfo != null))
                    {
                        this.m_PvpLevel.text = string.Format(text, masterRoleInfo.PvpLevel);
                    }
                }
                if (!CSysDynamicBlock.bSocialBlocked)
                {
                    if ((this.m_PlayerVipLevel != null) && (masterRoleInfo != null))
                    {
                        this.m_PlayerVipLevel.text = string.Format("VIP{0}", masterRoleInfo.m_payLevel);
                    }
                    if (((form != null) && form.gameObject.activeSelf) && (masterRoleInfo != null))
                    {
                        GameObject widget = form.GetWidget(2);
                        if ((widget != null) && !string.IsNullOrEmpty(masterRoleInfo.HeadUrl))
                        {
                            CUIHttpImageScript component = widget.GetComponent <CUIHttpImageScript>();
                            component.SetImageUrl(masterRoleInfo.HeadUrl);
                            MonoSingleton <NobeSys> .GetInstance().SetNobeIcon(component.GetComponent <Image>(), (int)masterRoleInfo.GetNobeInfo().stGameVipClient.dwCurLevel, false);

                            Image image = form.GetWidget(3).GetComponent <Image>();
                            MonoSingleton <NobeSys> .GetInstance().SetHeadIconBk(image, (int)masterRoleInfo.GetNobeInfo().stGameVipClient.dwHeadIconId);

                            bool       flag   = Singleton <HeadIconSys> .instance.UnReadFlagNum > 0;
                            GameObject target = Utility.FindChild(widget, "RedDot");
                            if (target != null)
                            {
                                if (flag)
                                {
                                    CUICommonSystem.AddRedDot(target, enRedDotPos.enTopRight, 0);
                                }
                                else
                                {
                                    CUICommonSystem.DelRedDot(target);
                                }
                            }
                        }
                    }
                }
                else if ((form != null) && form.gameObject.activeSelf)
                {
                    GameObject obj4 = form.GetWidget(2);
                    if (obj4 != null)
                    {
                        CUIHttpImageScript script3 = obj4.GetComponent <CUIHttpImageScript>();
                        if (script3 != null)
                        {
                            MonoSingleton <NobeSys> .GetInstance().SetNobeIcon(script3.GetComponent <Image>(), 0, false);
                        }
                    }
                }
            }
        }