public void LoadConfig() { Dictionary <long, object> .Enumerator enumerator = GameDataMgr.recruimentReward.GetEnumerator(); while (enumerator.MoveNext()) { KeyValuePair <long, object> current = enumerator.get_Current(); ResRecruitmentReward resRecruitmentReward = (ResRecruitmentReward)current.get_Value(); if (!this.m_rewardConfig.Contains(resRecruitmentReward)) { this.m_rewardConfig.Add(resRecruitmentReward); } if (resRecruitmentReward.bRecruimentType == 1 && resRecruitmentReward.bRewardBit == 5) { this.SuperReward = null; this.SuperReward = new CFriendRecruit.RecruitReward(resRecruitmentReward.wID, CFriendRecruit.RewardState.Normal); } } this.InitData(); for (int i = 0; i < this.m_zhaoMuZhe.get_Count(); i++) { CFriendRecruit.RecruitData data = this.m_zhaoMuZhe.get_Item(i); this.ParseConfig(data); } this.ParseConfig(this.m_beiZhaoMuZhe); }
public void On_Friend_Recruit_zmzListEnable(CUIEvent uievent) { if (uievent == null) { return; } int srcWidgetIndexInBelongedList = uievent.m_srcWidgetIndexInBelongedList; CFriendModel model = Singleton <CFriendContoller> .GetInstance().model; ListView <CFriendRecruit.RecruitData> zhaoMuZheRewardList = model.friendRecruit.GetZhaoMuZheRewardList(); if (zhaoMuZheRewardList == null) { return; } CFriendRecruit.RecruitData recruitData = null; if (srcWidgetIndexInBelongedList >= 0 && srcWidgetIndexInBelongedList < zhaoMuZheRewardList.Count) { recruitData = zhaoMuZheRewardList[srcWidgetIndexInBelongedList]; } if (recruitData != null && uievent.m_srcWidget != null && uievent.m_srcWidget != null) { this.ShowZhaomuZhe_Item(uievent.m_srcWidget, recruitData); } }
public void RemoveRecruitData(ulong ullUid, uint dwLogicWorldId) { CFriendRecruit.RecruitData recruitData = this.GetRecruitData(ullUid, dwLogicWorldId); if (recruitData != null) { recruitData.ResetReward(); recruitData.userInfo = null; } }
public CFriendRecruit.RecruitData GetValidRecruitData() { for (int i = 0; i < this.m_zhaoMuZhe.get_Count(); i++) { CFriendRecruit.RecruitData recruitData = this.m_zhaoMuZhe.get_Item(i); if (recruitData != null && recruitData.userInfo == null) { return(recruitData); } } return(null); }
public CFriendRecruit.RecruitData GetZhaoMuZhe(ulong ullUid, uint dwLogicWorldId) { for (int i = 0; i < this.m_zhaoMuZhe.get_Count(); i++) { CFriendRecruit.RecruitData recruitData = this.m_zhaoMuZhe.get_Item(i); if (recruitData.IsEqual(ullUid, dwLogicWorldId)) { return(recruitData); } } return(null); }
public void Check() { for (int i = 0; i < this.m_zhaoMuZhe.get_Count(); i++) { CFriendRecruit.RecruitData data = this.m_zhaoMuZhe.get_Item(i); this.CheckCanGetReward(data); } this.CheckBeiZhaoMuZheReward(); if (this.GetZhaoMuZhe_RewardProgress() == this.GetZhaoMuZhe_RewardTotalCount()) { this.SuperReward.state = CFriendRecruit.RewardState.Keling; } }
public CFriendRecruit.RecruitReward GetRecruitReward(ulong ullUid, uint dwLogicWorldId, ushort rewardID) { CFriendRecruit.RecruitData zhaoMuZhe = this.GetZhaoMuZhe(ullUid, dwLogicWorldId); if (zhaoMuZhe != null) { return(zhaoMuZhe.GetReward(rewardID)); } if (this.m_beiZhaoMuZhe.IsEqual(ullUid, dwLogicWorldId)) { return(this.m_beiZhaoMuZhe.GetReward(rewardID)); } return(null); }
public CFriendRecruit.RecruitData GetRecruitData(ulong ullUid, uint dwLogicWorldId) { CFriendRecruit.RecruitData zhaoMuZhe = this.GetZhaoMuZhe(ullUid, dwLogicWorldId); if (zhaoMuZhe != null) { return(zhaoMuZhe); } if (this.m_beiZhaoMuZhe.IsEqual(ullUid, dwLogicWorldId)) { return(this.m_beiZhaoMuZhe); } return(null); }
public void SetZhaoMuZhe(COMDT_FRIEND_INFO info) { CFriendRecruit.RecruitData zhaoMuZhe = this.GetZhaoMuZhe(info.stUin.ullUid, info.stUin.dwLogicWorldId); if (zhaoMuZhe != null) { zhaoMuZhe.userInfo = info; return; } CFriendRecruit.RecruitData validRecruitData = this.GetValidRecruitData(); if (validRecruitData != null) { validRecruitData.userInfo = info; } }
public int GetZhaoMuZhe_RewardProgress() { int num = 0; for (int i = 0; i < this.m_zhaoMuZhe.get_Count(); i++) { CFriendRecruit.RecruitData recruitData = this.m_zhaoMuZhe.get_Item(i); if (recruitData != null && recruitData.IsGetAllReward()) { num++; } } return(num); }
public void CheckCanGetReward(CFriendRecruit.RecruitData data) { for (int i = 0; i < data.RewardList.get_Count(); i++) { CFriendRecruit.RecruitReward recruitReward = data.RewardList.get_Item(i); if (recruitReward.state == CFriendRecruit.RewardState.Normal) { ResRecruitmentReward cfgReward = this.GetCfgReward(recruitReward.rewardID); if (cfgReward != null && data.userInfo != null && data.userInfo.dwPvpLvl >= cfgReward.dwLevel) { recruitReward.state = CFriendRecruit.RewardState.Keling; } } } }
public void ParseConfig(CFriendRecruit.RecruitData data) { for (int i = 0; i < this.m_rewardConfig.get_Count(); i++) { ResRecruitmentReward resRecruitmentReward = this.m_rewardConfig.get_Item(i); if (data.type == resRecruitmentReward.bRecruimentType) { CFriendRecruit.RecruitReward reward = data.GetReward(resRecruitmentReward.wID); if (reward == null || reward.state != CFriendRecruit.RewardState.Getted) { data.SetReward(resRecruitmentReward.wID, CFriendRecruit.RewardState.Normal); } } } }
public void SetZhaoMuZheRewardData(COMDT_FRIEND_INFO friendData, ushort rewardID, CFriendRecruit.RewardState state) { CFriendRecruit.RecruitData zhaoMuZhe = this.GetZhaoMuZhe(friendData.stUin.ullUid, friendData.stUin.dwLogicWorldId); if (zhaoMuZhe != null) { zhaoMuZhe.SetReward(rewardID, state); } else { CFriendRecruit.RecruitData validRecruitData = this.GetValidRecruitData(); if (validRecruitData != null) { validRecruitData.userInfo = friendData; validRecruitData.SetReward(rewardID, state); } } }
public void ShowZhaomuZhe_Item(GameObject com, CFriendRecruit.RecruitData info) { if (info.userInfo != null) { com.transform.FindChild("user/hasData").gameObject.CustomSetActive(true); com.transform.FindChild("user/null").gameObject.CustomSetActive(false); com.transform.FindChild("user/hasData/Level").gameObject.CustomSetActive(true); CUIHttpImageScript component = com.transform.FindChild("user/hasData/pnlSnsHead/HttpImage").GetComponent <CUIHttpImageScript>(); UT.SetHttpImage(component, info.userInfo.szHeadUrl); Text component2 = com.transform.FindChild("user/hasData/Level").GetComponent <Text>(); component2.text = string.Format("Lv.{0}", info.userInfo.dwPvpLvl); GameObject gameObject = com.transform.FindChild("user/hasData/pnlSnsHead/HttpImage/NobeIcon").gameObject; if (gameObject) { MonoSingleton <NobeSys> .GetInstance().SetNobeIcon(gameObject.GetComponent <Image>(), (int)info.userInfo.stGameVip.dwCurLevel, false); } Text component3 = com.transform.FindChild("user/hasData/NameGroup/Name").GetComponent <Text>(); string text = UT.Bytes2String(info.userInfo.szUserName); if (component3 != null) { component3.text = text; } GameObject gameObject2 = com.transform.FindChild("user/hasData/NameGroup/Gender").gameObject; FriendShower.ShowGender(gameObject2, info.userInfo.bGender); } else { com.transform.FindChild("user/hasData").gameObject.CustomSetActive(false); com.transform.FindChild("user/null").gameObject.CustomSetActive(true); } CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(CFriendContoller.FriendFormPath); int num = Math.Min(this.zhaomuzheRewardCount, info.RewardList.get_Count()); for (int i = 0; i < num; i++) { Transform transform = com.transform.FindChild(string.Format("reward_{0}", i)); DebugHelper.Assert(transform != null, "rewardNodeTS not null..."); if (!(transform == null)) { CFriendRecruit.RecruitReward recruitReward = info.RewardList.get_Item(i); this.Show_Award(transform.gameObject, info.ullUid, info.dwLogicWorldId, 1, recruitReward.rewardID, recruitReward.state, form, true); } } }
public static void On_Send_INTIMACY_RELATION_REQUEST(CSPkg msg) { Singleton <CUIManager> .GetInstance().CloseSendMsgAlert(); SCPKG_RECRUITMENT_REWARD_RSP stRecruitmentRewardRsp = msg.stPkgData.stRecruitmentRewardRsp; CFriendRecruit friendRecruit = Singleton <CFriendContoller> .instance.model.friendRecruit; ResRecruitmentReward cfgReward = friendRecruit.GetCfgReward(stRecruitmentRewardRsp.wRecruitRewardId); if (cfgReward.bRewardType == 2) { friendRecruit.SetBITS((RES_RECRUIMENT_BITS)cfgReward.bRewardBit, true); } CFriendRecruit.RecruitData recruitData = friendRecruit.GetRecruitData(stRecruitmentRewardRsp.stUin.ullUid, stRecruitmentRewardRsp.stUin.dwLogicWorldId); recruitData.SetReward(stRecruitmentRewardRsp.wRecruitRewardId, CFriendRecruit.RewardState.Getted); if (friendRecruit.SuperReward.rewardID == stRecruitmentRewardRsp.wRecruitRewardId) { friendRecruit.SuperReward.state = CFriendRecruit.RewardState.Getted; } }
public void InitData() { for (int i = 0; i < this.m_zhaoMuZhe.Count; i++) { CFriendRecruit.RecruitData recruitData = this.m_zhaoMuZhe[i]; if (recruitData != null) { recruitData.Clear(); } } this.m_zhaoMuZhe.Clear(); if (this.m_beiZhaoMuZhe != null) { this.m_beiZhaoMuZhe.Clear(); } this.m_beiZhaoMuZhe = null; for (int j = 0; j < CFriendRecruit.Max_ZhaoMuzheCount; j++) { this.m_zhaoMuZhe.Add(new CFriendRecruit.RecruitData(null, COM_RECRUITMENT_TYPE.COM_RECRUITMENT_ACTIVE)); } this.m_beiZhaoMuZhe = new CFriendRecruit.RecruitData(null, COM_RECRUITMENT_TYPE.COM_RECRUITMENT_PASSIVE); }
public void InitData() { for (int i = 0; i < this.m_zhaoMuZhe.get_Count(); i++) { CFriendRecruit.RecruitData recruitData = this.m_zhaoMuZhe.get_Item(i); if (recruitData != null) { recruitData.Clear(); } } this.m_zhaoMuZhe.Clear(); if (this.m_beiZhaoMuZhe != null) { this.m_beiZhaoMuZhe.Clear(); } this.m_beiZhaoMuZhe = null; for (int j = 0; j < CFriendRecruit.Max_ZhaoMuzheCount; j++) { this.m_zhaoMuZhe.Add(new CFriendRecruit.RecruitData(null, 1)); } this.m_beiZhaoMuZhe = new CFriendRecruit.RecruitData(null, 2); }
private void Show_BeiZhouMoZhe_Reward() { if (this.zhaomu_content == null || this.beizhaomu_content == null) { return; } this.zhaomu_content.CustomSetActive(false); this.beizhaomu_content.CustomSetActive(true); CFriendRecruit friendRecruit = Singleton <CFriendContoller> .get_instance().model.friendRecruit; Text component = this.beizhaomu_content.transform.FindChild("info/text").GetComponent <Text>(); Text component2 = this.beizhaomu_content.transform.FindChild("info/benift/exp/icon/txt").GetComponent <Text>(); Text component3 = this.beizhaomu_content.transform.FindChild("info/benift/gold/icon/txt").GetComponent <Text>(); if (component2 != null) { component2.text = string.Format("+{0}%", friendRecruit.GetBeiZhaoMuZhe_RewardExp()); } if (component3 != null) { component3.text = string.Format("+{0}%", friendRecruit.GetBeiZhaoMuZhe_RewardGold()); } GameObject gameObject = this.beizhaomu_content.transform.FindChild("info/user").gameObject; gameObject.CustomSetActive(true); GameObject gameObject2 = gameObject.transform.FindChild("default").gameObject; gameObject2.GetComponent <Text>().text = Singleton <CTextManager> .get_instance().GetText("Friend_Rec_Bei_User_DefalutTxt"); this.beizhaomu_content.transform.FindChild("info/reward/title/Text").GetComponent <Text>().text = Singleton <CTextManager> .get_instance().GetText("Friend_Rec_Bei_RewardTip"); GameObject gameObject3 = gameObject.transform.FindChild("NameGroup").gameObject; CFriendRecruit.RecruitData beiZhaoMuZhe = friendRecruit.GetBeiZhaoMuZhe(); Text component4 = gameObject.transform.FindChild("Level").GetComponent <Text>(); if (beiZhaoMuZhe.userInfo == null) { component.text = Singleton <CTextManager> .get_instance().GetText("Friend_Rec_Bei_Role_NoData"); gameObject2.CustomSetActive(true); gameObject3.CustomSetActive(false); component4.gameObject.CustomSetActive(false); } else { component.text = Singleton <CTextManager> .get_instance().GetText("Friend_Rec_Bei_Role_HasData"); gameObject2.CustomSetActive(false); gameObject3.CustomSetActive(true); component4.gameObject.CustomSetActive(true); CUIHttpImageScript component5 = gameObject.transform.FindChild("pnlSnsHead/HttpImage").GetComponent <CUIHttpImageScript>(); UT.SetHttpImage(component5, beiZhaoMuZhe.userInfo.szHeadUrl); component4.text = string.Format("Lv.{0}", beiZhaoMuZhe.userInfo.dwPvpLvl); GameObject gameObject4 = gameObject.transform.FindChild("pnlSnsHead/HttpImage/NobeIcon").gameObject; if (gameObject4) { MonoSingleton <NobeSys> .GetInstance().SetNobeIcon(gameObject4.GetComponent <Image>(), (int)beiZhaoMuZhe.userInfo.stGameVip.dwCurLevel, false); } Text component6 = gameObject.transform.FindChild("NameGroup/Name").GetComponent <Text>(); string text = UT.Bytes2String(beiZhaoMuZhe.userInfo.szUserName); if (component6 != null) { component6.text = text; } GameObject gameObject5 = gameObject.transform.FindChild("NameGroup/Gender").gameObject; FriendShower.ShowGender(gameObject5, beiZhaoMuZhe.userInfo.bGender); } CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(CFriendContoller.FriendFormPath); GameObject gameObject6 = this.beizhaomu_content.transform.FindChild("info/reward").gameObject; CFriendRecruit.RecruitData beiZhaoMuZhe2 = friendRecruit.GetBeiZhaoMuZhe(); ulong ullUid = beiZhaoMuZhe2.ullUid; uint dwLogicWorldId = beiZhaoMuZhe2.dwLogicWorldId; int num = Math.Min(4, beiZhaoMuZhe2.RewardList.get_Count()); for (int i = 0; i < num; i++) { CFriendRecruit.RecruitReward recruitReward = beiZhaoMuZhe2.RewardList.get_Item(i); GameObject gameObject7 = gameObject6.transform.FindChild(string.Format("reward_{0}", i)).gameObject; this.Show_Award(gameObject7, ullUid, dwLogicWorldId, 2, recruitReward.rewardID, recruitReward.state, form, true); } }
private void Show_BeiZhouMoZhe_Reward() { if (this.zhaomu_content == null || this.beizhaomu_content == null) { return; } this.zhaomu_content.CustomSetActive(false); this.beizhaomu_content.CustomSetActive(true); CFriendRecruit friendRecruit = Singleton <CFriendContoller> .instance.model.friendRecruit; Text component = this.beizhaomu_content.transform.FindChild("info/text").GetComponent <Text>(); Text component2 = this.beizhaomu_content.transform.FindChild("info/benift/exp/icon/txt").GetComponent <Text>(); Text component3 = this.beizhaomu_content.transform.FindChild("info/benift/gold/icon/txt").GetComponent <Text>(); if (component2 != null) { component2.set_text(string.Format("+{0}%", friendRecruit.GetBeiZhaoMuZhe_RewardExp())); } if (component3 != null) { component3.set_text(string.Format("+{0}%", friendRecruit.GetBeiZhaoMuZhe_RewardGold())); } GameObject gameObject = this.beizhaomu_content.transform.FindChild("info/user").gameObject; gameObject.CustomSetActive(true); GameObject gameObject2 = gameObject.transform.FindChild("default").gameObject; gameObject2.GetComponent <Text>().set_text(Singleton <CTextManager> .instance.GetText("Friend_Rec_Bei_User_DefalutTxt")); this.beizhaomu_content.transform.FindChild("info/reward/title/Text").GetComponent <Text>().set_text(Singleton <CTextManager> .instance.GetText("Friend_Rec_Bei_RewardTip")); GameObject gameObject3 = gameObject.transform.FindChild("NameGroup").gameObject; CFriendRecruit.RecruitData beiZhaoMuZhe = friendRecruit.GetBeiZhaoMuZhe(); Text component4 = gameObject.transform.FindChild("Level").GetComponent <Text>(); if (beiZhaoMuZhe.userInfo == null) { component.set_text(Singleton <CTextManager> .instance.GetText("Friend_Rec_Bei_Role_NoData")); gameObject2.CustomSetActive(true); gameObject3.CustomSetActive(false); component4.gameObject.CustomSetActive(false); } else { component.set_text(Singleton <CTextManager> .instance.GetText("Friend_Rec_Bei_Role_HasData")); gameObject2.CustomSetActive(false); gameObject3.CustomSetActive(true); component4.gameObject.CustomSetActive(true); CUIHttpImageScript component5 = gameObject.transform.FindChild("pnlSnsHead/HttpImage").GetComponent <CUIHttpImageScript>(); UT.SetHttpImage(component5, beiZhaoMuZhe.userInfo.szHeadUrl); component4.set_text(string.Format("Lv.{0}", beiZhaoMuZhe.userInfo.dwPvpLvl)); GameObject gameObject4 = gameObject.transform.FindChild("pnlSnsHead/HttpImage/NobeIcon").gameObject; if (gameObject4) { MonoSingleton <NobeSys> .GetInstance().SetNobeIcon(gameObject4.GetComponent <Image>(), (int)beiZhaoMuZhe.userInfo.stGameVip.dwCurLevel, false, true, 0uL); } Text component6 = gameObject.transform.FindChild("NameGroup/Name").GetComponent <Text>(); string text = UT.Bytes2String(beiZhaoMuZhe.userInfo.szUserName); if (component6 != null) { component6.set_text(text); } GameObject gameObject5 = gameObject.transform.FindChild("NameGroup/Gender").gameObject; FriendShower.ShowGender(gameObject5, (COM_SNSGENDER)beiZhaoMuZhe.userInfo.bGender); } CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(CFriendContoller.FriendFormPath); GameObject gameObject6 = this.beizhaomu_content.transform.FindChild("info/reward").gameObject; CFriendRecruit.RecruitData beiZhaoMuZhe2 = friendRecruit.GetBeiZhaoMuZhe(); ulong ullUid = beiZhaoMuZhe2.ullUid; uint dwLogicWorldId = beiZhaoMuZhe2.dwLogicWorldId; int num = Math.Min(4, beiZhaoMuZhe2.RewardList.Count); float num2 = 1000f; float num3 = -1f; for (int i = 0; i < num; i++) { CFriendRecruit.RecruitReward recruitReward = beiZhaoMuZhe2.RewardList[i]; GameObject gameObject7 = gameObject6.transform.FindChild(string.Format("reward_{0}", i)).gameObject; ResRecruitmentReward cfgReward = Singleton <CFriendContoller> .instance.model.friendRecruit.GetCfgReward(recruitReward.rewardID); if (cfgReward.dwLevel < num2 && cfgReward.dwLevel != 1u) { num2 = cfgReward.dwLevel; } if (cfgReward.dwLevel > num3) { num3 = cfgReward.dwLevel; } this.Show_Award(gameObject7, ullUid, dwLogicWorldId, COM_RECRUITMENT_TYPE.COM_RECRUITMENT_PASSIVE, recruitReward.rewardID, cfgReward, recruitReward.state, form, true); } GameObject gameObject8 = Utility.FindChild(this.beizhaomu_content, "info/reward/BarBg"); GameObject gameObject9 = Utility.FindChild(this.beizhaomu_content, "info/reward/BarBg2"); Image componetInChild = Utility.GetComponetInChild <Image>(gameObject8, "Fore"); Image componetInChild2 = Utility.GetComponetInChild <Image>(gameObject9, "Fore"); if (this.beiZhaoMuZheBarWidth1 == 0f && componetInChild != null) { this.beiZhaoMuZheBarWidth1 = componetInChild.get_rectTransform().sizeDelta.x; } if (this.beiZhaoMuZheBarWidth2 == 0f && componetInChild2 != null) { this.beiZhaoMuZheBarWidth2 = componetInChild2.get_rectTransform().sizeDelta.x; } if (beiZhaoMuZhe.userInfo != null) { CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo(); this.SetCombineBar(gameObject8, gameObject9, this.beiZhaoMuZheBarWidth1, this.beiZhaoMuZheBarWidth2, masterRoleInfo.PvpLevel, num2, num3); } else { this.SetBarSize(componetInChild, 0f, 0f); this.SetBarSize(componetInChild2, 0f, 0f); } }
public void ShowZhaomuZhe_Item(GameObject com, CFriendRecruit.RecruitData info) { GameObject bar = Utility.FindChild(com, "BarBg"); GameObject bar2 = Utility.FindChild(com, "BarBg2"); Image componetInChild = Utility.GetComponetInChild <Image>(com, "BarBg/Fore"); Image componetInChild2 = Utility.GetComponetInChild <Image>(com, "BarBg2/Fore"); if (this.zhaoMuZheBarWidth1 == 0f && componetInChild != null) { this.zhaoMuZheBarWidth1 = componetInChild.get_rectTransform().sizeDelta.x; } if (this.zhaoMuZheBarWidth2 == 0f && componetInChild2 != null) { this.zhaoMuZheBarWidth2 = componetInChild2.get_rectTransform().sizeDelta.x; } if (info.userInfo != null) { com.transform.FindChild("user/hasData").gameObject.CustomSetActive(true); com.transform.FindChild("user/null").gameObject.CustomSetActive(false); com.transform.FindChild("user/hasData/Level").gameObject.CustomSetActive(true); CUIHttpImageScript component = com.transform.FindChild("user/hasData/pnlSnsHead/HttpImage").GetComponent <CUIHttpImageScript>(); UT.SetHttpImage(component, info.userInfo.szHeadUrl); Text component2 = com.transform.FindChild("user/hasData/Level").GetComponent <Text>(); component2.set_text(string.Format("Lv.{0}", info.userInfo.dwPvpLvl)); GameObject gameObject = com.transform.FindChild("user/hasData/pnlSnsHead/HttpImage/NobeIcon").gameObject; if (gameObject) { MonoSingleton <NobeSys> .GetInstance().SetNobeIcon(gameObject.GetComponent <Image>(), (int)info.userInfo.stGameVip.dwCurLevel, false, true, 0uL); } Text component3 = com.transform.FindChild("user/hasData/NameGroup/Name").GetComponent <Text>(); string text = UT.Bytes2String(info.userInfo.szUserName); if (component3 != null) { component3.set_text(text); } GameObject gameObject2 = com.transform.FindChild("user/hasData/NameGroup/Gender").gameObject; FriendShower.ShowGender(gameObject2, (COM_SNSGENDER)info.userInfo.bGender); } else { com.transform.FindChild("user/hasData").gameObject.CustomSetActive(false); com.transform.FindChild("user/null").gameObject.CustomSetActive(true); } float num = 1000f; float num2 = -1f; CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(CFriendContoller.FriendFormPath); int num3 = Math.Min(this.zhaomuzheRewardCount, info.RewardList.Count); for (int i = 0; i < num3; i++) { Transform transform = com.transform.FindChild(string.Format("reward_{0}", i)); DebugHelper.Assert(transform != null, "rewardNodeTS not null..."); if (!(transform == null)) { CFriendRecruit.RecruitReward recruitReward = info.RewardList[i]; ResRecruitmentReward cfgReward = Singleton <CFriendContoller> .instance.model.friendRecruit.GetCfgReward(recruitReward.rewardID); if (cfgReward.dwLevel < num) { num = cfgReward.dwLevel; } if (cfgReward.dwLevel > num2) { num2 = cfgReward.dwLevel; } this.Show_Award(transform.gameObject, info.ullUid, info.dwLogicWorldId, COM_RECRUITMENT_TYPE.COM_RECRUITMENT_ACTIVE, recruitReward.rewardID, cfgReward, recruitReward.state, form, true); } } GameObject gameObject3 = Utility.FindChild(com, "cup"); this.ShowCup(gameObject3, info.IsGetAllReward(), 0); if (info.userInfo != null) { this.SetCombineBar(bar, bar2, this.zhaoMuZheBarWidth1, this.zhaoMuZheBarWidth2, info.userInfo.dwPvpLvl, num, num2); } else { this.SetBarSize(componetInChild, 0f, 0f); this.SetBarSize(componetInChild2, 0f, 0f); } }