public static void UpdateFriendListElementBase(GameObject element, ref COMDT_FRIEND_INFO friend) { GameObject gameObject = element.transform.FindChild("HeadBg").gameObject; Text component = element.transform.FindChild("PlayerName").GetComponent <Text>(); Image component2 = element.transform.FindChild("NobeIcon").GetComponent <Image>(); Image component3 = element.transform.FindChild("HeadBg/NobeImag").GetComponent <Image>(); if (component2) { MonoSingleton <NobeSys> .GetInstance().SetNobeIcon(component2, (int)friend.stGameVip.dwCurLevel, false, false, friend.ullUserPrivacyBits); } if (component3) { MonoSingleton <NobeSys> .GetInstance().SetHeadIconBk(component3, (int)friend.stGameVip.dwHeadIconId); } CFriendModel.FriendInGame friendInGaming = Singleton <CFriendContoller> .instance.model.GetFriendInGaming(friend.stUin.ullUid, friend.stUin.dwLogicWorldId); if (friendInGaming == null) { component.set_text(CInviteView.ConnectPlayerNameAndNickName(friend.szUserName, string.Empty)); } else { component.set_text(CInviteView.ConnectPlayerNameAndNickName(friend.szUserName, friendInGaming.NickName)); } string url = Utility.UTF8Convert(friend.szHeadUrl); if (!CSysDynamicBlock.bFriendBlocked) { CUIUtility.GetComponentInChildren <CUIHttpImageScript>(gameObject).SetImageUrl(Singleton <ApolloHelper> .GetInstance().ToSnsHeadUrl(url)); } }
public static void UpdateGuildMemberListElement(GameObject element, GuildMemInfo guildMember) { GameObject gameObject = element.transform.FindChild("HeadBg").gameObject; GameObject obj3 = element.transform.FindChild("InviteButton").gameObject; Text component = element.transform.FindChild("PlayerName").GetComponent <Text>(); Text text2 = element.transform.FindChild("Online").GetComponent <Text>(); Image image = element.transform.FindChild("NobeIcon").GetComponent <Image>(); Image image2 = element.transform.FindChild("HeadBg/NobeImag").GetComponent <Image>(); if (image != null) { MonoSingleton <NobeSys> .GetInstance().SetNobeIcon(image, (int)guildMember.stBriefInfo.stVip.level, false); } if (image2 != null) { MonoSingleton <NobeSys> .GetInstance().SetHeadIconBk(image2, (int)guildMember.stBriefInfo.stVip.headIconId); } component.text = Utility.UTF8Convert(guildMember.stBriefInfo.sName); if (CGuildHelper.IsMemberOnline(guildMember)) { if (guildMember.GameState == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_IDLE) { text2.text = string.Format("<color=#00ff00>{0}</color>", Singleton <CTextManager> .instance.GetText("Common_Online")); CUIEventScript script = obj3.GetComponent <CUIEventScript>(); script.m_onClickEventParams.tag = (int)Singleton <CInviteSystem> .instance.InviteType; script.m_onClickEventParams.commonUInt64Param1 = guildMember.stBriefInfo.uulUid; } else if ((guildMember.GameState == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_SINGLEGAME) || (guildMember.GameState == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_MULTIGAME)) { text2.text = string.Format("<color=#ffff00>{0}</color>", Singleton <CTextManager> .instance.GetText("Common_Gaming")); } else if (guildMember.GameState == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_TEAM) { text2.text = string.Format("<color=#ffff00>{0}</color>", Singleton <CTextManager> .instance.GetText("Common_Teaming")); } component.color = CUIUtility.s_Color_White; CUIUtility.GetComponentInChildren <Image>(gameObject).color = CUIUtility.s_Color_White; } else { text2.text = string.Format(Singleton <CTextManager> .instance.GetText("Common_Offline"), new object[0]); component.color = CUIUtility.s_Color_Grey; CUIUtility.GetComponentInChildren <Image>(gameObject).color = CUIUtility.s_Color_GrayShader; } obj3.CustomSetActive(CGuildHelper.IsMemberOnline(guildMember) && (guildMember.GameState == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_IDLE)); string szHeadUrl = guildMember.stBriefInfo.szHeadUrl; if (!string.IsNullOrEmpty(szHeadUrl)) { CUIUtility.GetComponentInChildren <CUIHttpImageScript>(gameObject).SetImageUrl(Singleton <ApolloHelper> .GetInstance().ToSnsHeadUrl(szHeadUrl)); } }
private static void SetLBSState(GameObject element, ref CSDT_LBS_USER_INFO LBSInfo) { COMDT_FRIEND_INFO stLbsUserInfo = LBSInfo.stLbsUserInfo; GameObject gameObject = element.transform.FindChild("HeadBg").gameObject; Text component = element.transform.FindChild("Online").GetComponent <Text>(); GameObject obj3 = element.transform.FindChild("InviteButton").gameObject; Text text2 = element.transform.FindChild("PlayerName").GetComponent <Text>(); SetListElementLadderInfo(element, stLbsUserInfo); COM_ACNT_GAME_STATE friendInGamingState = COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_IDLE; if (stLbsUserInfo.bIsOnline != 1) { component.text = string.Format(Singleton <CTextManager> .instance.GetText("Common_Offline"), new object[0]); text2.color = CUIUtility.s_Color_Grey; CUIUtility.GetComponentInChildren <Image>(gameObject).color = CUIUtility.s_Color_GrayShader; } else { friendInGamingState = Singleton <CFriendContoller> .instance.model.GetFriendInGamingState(stLbsUserInfo.stUin.ullUid, stLbsUserInfo.stUin.dwLogicWorldId); switch (friendInGamingState) { case COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_IDLE: { component.text = Singleton <CInviteSystem> .instance.GetInviteStateStr(stLbsUserInfo.stUin.ullUid); CUIEventScript script = obj3.GetComponent <CUIEventScript>(); script.m_onClickEventParams.tag = (int)Singleton <CInviteSystem> .instance.InviteType; script.m_onClickEventParams.tag2 = (int)stLbsUserInfo.stUin.dwLogicWorldId; script.m_onClickEventParams.tag3 = (int)LBSInfo.dwGameSvrEntity; script.m_onClickEventParams.commonUInt64Param1 = stLbsUserInfo.stUin.ullUid; break; } case COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_SINGLEGAME: case COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_MULTIGAME: component.text = string.Format("<color=#ffff00>{0}</color>", Singleton <CTextManager> .instance.GetText("Common_Gaming")); break; case COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_TEAM: component.text = string.Format("<color=#ffff00>{0}</color>", Singleton <CTextManager> .instance.GetText("Common_Teaming")); break; } text2.color = CUIUtility.s_Color_White; CUIUtility.GetComponentInChildren <Image>(gameObject).color = CUIUtility.s_Color_White; } obj3.CustomSetActive((stLbsUserInfo.bIsOnline == 1) && (friendInGamingState == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_IDLE)); }
private static void SetLBSState(GameObject element, ref CSDT_LBS_USER_INFO LBSInfo) { COMDT_FRIEND_INFO stLbsUserInfo = LBSInfo.stLbsUserInfo; GameObject gameObject = element.transform.FindChild("HeadBg").gameObject; Text component = element.transform.FindChild("Online").GetComponent <Text>(); GameObject gameObject2 = element.transform.FindChild("InviteButton").gameObject; Text component2 = element.transform.FindChild("PlayerName").GetComponent <Text>(); CInviteView.SetListElementLadderInfo(element, stLbsUserInfo); COM_ACNT_GAME_STATE cOM_ACNT_GAME_STATE = 0; if (stLbsUserInfo.bIsOnline == 1) { cOM_ACNT_GAME_STATE = Singleton <CFriendContoller> .get_instance().model.GetFriendInGamingState(stLbsUserInfo.stUin.ullUid, stLbsUserInfo.stUin.dwLogicWorldId); if (cOM_ACNT_GAME_STATE == null) { component.text = Singleton <CInviteSystem> .get_instance().GetInviteStateStr(stLbsUserInfo.stUin.ullUid, false); CUIEventScript component3 = gameObject2.GetComponent <CUIEventScript>(); component3.m_onClickEventParams.tag = Singleton <CInviteSystem> .get_instance().InviteType; component3.m_onClickEventParams.tag2 = (int)stLbsUserInfo.stUin.dwLogicWorldId; component3.m_onClickEventParams.tag3 = (int)LBSInfo.dwGameSvrEntity; component3.m_onClickEventParams.commonUInt64Param1 = stLbsUserInfo.stUin.ullUid; } else if (cOM_ACNT_GAME_STATE == 1 || cOM_ACNT_GAME_STATE == 2 || cOM_ACNT_GAME_STATE == 4) { component.text = string.Format("<color=#ffff00>{0}</color>", Singleton <CTextManager> .get_instance().GetText("Common_Gaming")); } else if (cOM_ACNT_GAME_STATE == 3) { component.text = string.Format("<color=#ffff00>{0}</color>", Singleton <CTextManager> .get_instance().GetText("Common_Teaming")); } component2.color = CUIUtility.s_Color_White; CUIUtility.GetComponentInChildren <Image>(gameObject).color = CUIUtility.s_Color_White; } else { component.text = string.Format(Singleton <CTextManager> .get_instance().GetText("Common_Offline"), new object[0]); component2.color = CUIUtility.s_Color_Grey; CUIUtility.GetComponentInChildren <Image>(gameObject).color = CUIUtility.s_Color_GrayShader; } gameObject2.CustomSetActive(stLbsUserInfo.bIsOnline == 1 && cOM_ACNT_GAME_STATE == 0); }
public static void UpdateFriendListElementBase(GameObject element, ref COMDT_FRIEND_INFO friend) { GameObject gameObject = element.transform.FindChild("HeadBg").gameObject; Text component = element.transform.FindChild("PlayerName").GetComponent <Text>(); Text text2 = element.transform.FindChild("NickName").GetComponent <Text>(); Image image = element.transform.FindChild("NobeIcon").GetComponent <Image>(); Image image2 = element.transform.FindChild("HeadBg/NobeImag").GetComponent <Image>(); if (image != null) { MonoSingleton <NobeSys> .GetInstance().SetNobeIcon(image, (int)friend.stGameVip.dwCurLevel, false); } if (image2 != null) { MonoSingleton <NobeSys> .GetInstance().SetHeadIconBk(image2, (int)friend.stGameVip.dwHeadIconId); } component.text = Utility.UTF8Convert(friend.szUserName); CFriendModel.FriendInGame friendInGaming = Singleton <CFriendContoller> .instance.model.GetFriendInGaming(friend.stUin.ullUid, friend.stUin.dwLogicWorldId); if (friendInGaming == null) { text2.text = string.Empty; } else if (string.IsNullOrEmpty(friendInGaming.nickName)) { text2.text = string.Empty; } else { text2.text = string.Format("({0})", friendInGaming.nickName); } string str = Utility.UTF8Convert(friend.szHeadUrl); if (!string.IsNullOrEmpty(str) && !CSysDynamicBlock.bFriendBlocked) { CUIUtility.GetComponentInChildren <CUIHttpImageScript>(gameObject).SetImageUrl(Singleton <ApolloHelper> .GetInstance().ToSnsHeadUrl(str)); } }
public void UpdateListElenment(GameObject element, CMail mail) { int currentUTCTime = CRoleInfo.GetCurrentUTCTime(); Text componetInChild = Utility.GetComponetInChild <Text>(element, "Title"); Text componetInChild2 = Utility.GetComponetInChild <Text>(element, "MailTime"); GameObject obj = Utility.FindChild(element, "New"); GameObject obj2 = Utility.FindChild(element, "ReadMailIcon"); GameObject obj3 = Utility.FindChild(element, "UnReadMailIcon"); GameObject obj4 = Utility.FindChild(element, "CoinImg"); Text componetInChild3 = Utility.GetComponetInChild <Text>(element, "From"); CUIHttpImageScript componetInChild4 = Utility.GetComponetInChild <CUIHttpImageScript>(element, "HeadBg/imgHead"); GameObject obj5 = null; Text text = null; GameObject gameObject = Utility.FindChild(element, "OnlineBg"); if (gameObject != null) { obj5 = gameObject.gameObject; } GameObject gameObject2 = Utility.FindChild(element, "Online"); if (gameObject2 != null) { text = gameObject2.GetComponent <Text>(); } componetInChild.set_text(mail.subject); componetInChild2.set_text(Utility.GetTimeBeforString((long)((ulong)mail.sendTime), (long)currentUTCTime)); bool flag = mail.mailState == COM_MAIL_STATE.COM_MAIL_UNREAD; obj.CustomSetActive(flag); if (mail.mailType == CustomMailType.SYSTEM) { obj2.CustomSetActive(!flag); obj3.CustomSetActive(flag); componetInChild3.set_text(string.Empty); componetInChild4.gameObject.CustomSetActive(false); obj4.CustomSetActive(false); obj5.CustomSetActive(false); if (text != null) { text.gameObject.CustomSetActive(false); } } else if (mail.mailType == CustomMailType.FRIEND) { obj5.CustomSetActive(false); if (text != null) { text.gameObject.CustomSetActive(false); } obj2.CustomSetActive(false); obj3.CustomSetActive(false); componetInChild3.set_text(mail.from); componetInChild4.gameObject.CustomSetActive(true); if (mail.subType == 3) { obj4.CustomSetActive(false); componetInChild4.SetImageSprite(CGuildHelper.GetGuildHeadPath(), this.m_CUIForm); } else { obj4.CustomSetActive(true); if (!CSysDynamicBlock.bFriendBlocked) { COMDT_FRIEND_INFO friendByName = Singleton <CFriendContoller> .instance.model.getFriendByName(mail.from, CFriendModel.FriendType.GameFriend); if (friendByName == null) { friendByName = Singleton <CFriendContoller> .instance.model.getFriendByName(mail.from, CFriendModel.FriendType.SNS); } if (friendByName != null) { string url = Utility.UTF8Convert(friendByName.szHeadUrl); componetInChild4.SetImageUrl(Singleton <ApolloHelper> .GetInstance().ToSnsHeadUrl(url)); } } } } else if (mail.mailType == CustomMailType.FRIEND_INVITE) { obj5.CustomSetActive(true); if (text != null) { text.gameObject.CustomSetActive(true); } obj2.CustomSetActive(false); obj3.CustomSetActive(false); componetInChild3.set_text(string.Empty); componetInChild4.gameObject.CustomSetActive(true); obj4.CustomSetActive(false); Transform transform = element.transform.FindChild("invite_btn"); GameObject obj6 = null; if (transform != null) { obj6 = transform.gameObject; } if (mail.relationType == 1) { GuildMemInfo guildMemberInfoByUid = CGuildHelper.GetGuildMemberInfoByUid(mail.uid); Singleton <CMailSys> .instance.AddGuildMemInfo(guildMemberInfoByUid); } this.SetEventParams(element, mail); string text2; string url2; bool flag2 = !this.GetOtherPlayerState((COM_INVITE_RELATION_TYPE)mail.relationType, mail.uid, mail.dwLogicWorldID, out text2, out url2); string processTypeString = this.GetProcessTypeString((CMailSys.enProcessInviteType)mail.processType); componetInChild.set_text(string.Format("{0} {1}", mail.subject, processTypeString)); if (text != null) { text.set_text(text2); } componetInChild4.SetImageUrl(Singleton <ApolloHelper> .GetInstance().ToSnsHeadUrl(url2)); if (flag2) { CUIUtility.GetComponentInChildren <Image>(componetInChild4.gameObject).set_color(CUIUtility.s_Color_GrayShader); } else { CUIUtility.GetComponentInChildren <Image>(componetInChild4.gameObject).set_color(CUIUtility.s_Color_Full); } obj6.CustomSetActive(!flag2); } else if (mail.mailType == CustomMailType.ASK_FOR) { obj2.CustomSetActive(false); obj3.CustomSetActive(false); componetInChild3.set_text(mail.from); componetInChild4.gameObject.CustomSetActive(true); obj4.CustomSetActive(false); obj5.CustomSetActive(false); if (text != null) { text.gameObject.CustomSetActive(false); } if (!CSysDynamicBlock.bFriendBlocked) { CFriendModel.FriendType friendType = CFriendModel.FriendType.GameFriend; COMDT_FRIEND_INFO friendByName2 = Singleton <CFriendContoller> .instance.model.getFriendByName(mail.from, CFriendModel.FriendType.GameFriend); if (friendByName2 == null) { friendType = CFriendModel.FriendType.SNS; friendByName2 = Singleton <CFriendContoller> .instance.model.getFriendByName(mail.from, CFriendModel.FriendType.SNS); } if (friendByName2 != null) { string url3 = Utility.UTF8Convert(friendByName2.szHeadUrl); componetInChild4.SetImageUrl(Singleton <ApolloHelper> .GetInstance().ToSnsHeadUrl(url3)); UT.ShowFriendData(friendByName2, element.GetComponent <FriendShower>(), FriendShower.ItemType.Normal, false, friendType, Singleton <CUIManager> .GetInstance().GetForm(CMailSys.MAIL_FORM_PATH), true); } } } }
public static void UpdateGuildMemberListElement(GameObject element, GuildMemInfo guildMember, bool isGuildMatchInvite) { Transform transform = element.transform; GameObject gameObject = transform.FindChild("HeadBg").gameObject; GameObject gameObject2 = transform.FindChild("InviteButton").gameObject; Text component = transform.FindChild("PlayerName").GetComponent <Text>(); Text component2 = transform.FindChild("Online").GetComponent <Text>(); Image component3 = transform.FindChild("NobeIcon").GetComponent <Image>(); Image component4 = transform.FindChild("HeadBg/NobeImag").GetComponent <Image>(); Text component5 = transform.FindChild("Time").GetComponent <Text>(); if (component5 != null) { component5.gameObject.CustomSetActive(false); } if (component2 != null) { component2.gameObject.CustomSetActive(true); } GameObject obj = Utility.FindChild(element, "HeadBg/AntiDisturbBits"); obj.CustomSetActive(false); Transform transform2 = transform.FindChild("RemindButton"); GameObject gameObject3 = null; if (transform2 != null) { gameObject3 = transform2.gameObject; gameObject3.CustomSetActive(false); } CInviteView.SetListElementLadderInfo(element, guildMember); if (component3) { MonoSingleton <NobeSys> .GetInstance().SetNobeIcon(component3, (int)guildMember.stBriefInfo.stVip.level, false, true, 0uL); } if (component4) { MonoSingleton <NobeSys> .GetInstance().SetHeadIconBk(component4, (int)guildMember.stBriefInfo.stVip.headIconId); } component.set_text(Utility.UTF8Convert(guildMember.stBriefInfo.sName)); if (CGuildHelper.IsMemberOnline(guildMember)) { if (guildMember.GameState == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_IDLE) { bool flag = (guildMember.antiDisturbBits & 1u) == 1u; if (flag) { component2.set_text(Singleton <CTextManager> .instance.GetText("Common_NotDisturb")); obj.CustomSetActive(true); } else { component2.set_text(Singleton <CInviteSystem> .instance.GetInviteStateStr(guildMember.stBriefInfo.uulUid, isGuildMatchInvite)); } CUIEventScript component6 = gameObject2.GetComponent <CUIEventScript>(); component6.m_onClickEventParams.tag = (int)Singleton <CInviteSystem> .instance.InviteType; component6.m_onClickEventParams.tag2 = guildMember.stBriefInfo.dwLogicWorldId; component6.m_onClickEventParams.commonUInt64Param1 = guildMember.stBriefInfo.uulUid; } else if (guildMember.GameState == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_SINGLEGAME || guildMember.GameState == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_MULTIGAME || guildMember.GameState == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_WAITMULTIGAME) { if (guildMember.dwGameStartTime > 0u) { if (component2 != null) { component2.gameObject.CustomSetActive(false); } if (component5 != null) { component5.gameObject.CustomSetActive(true); } if (component5 != null) { component5.set_text(string.Format(Singleton <CTextManager> .instance.GetText("Common_Gaming_Time"), CInviteView.GetStartMinute(guildMember.dwGameStartTime))); } Singleton <CInviteSystem> .instance.CheckInviteListGameTimer(); } else { if (component2 != null) { component2.gameObject.CustomSetActive(true); } if (component2 != null) { component2.set_text(string.Format("<color=#ffff00>{0}</color>", Singleton <CTextManager> .instance.GetText("Common_Gaming_NoTime"))); } } } else if (guildMember.GameState == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_TEAM) { component2.set_text(string.Format("<color=#ffff00>{0}</color>", Singleton <CTextManager> .instance.GetText("Common_Teaming"))); } component.set_color(CUIUtility.s_Color_White); CUIUtility.GetComponentInChildren <Image>(gameObject).set_color(CUIUtility.s_Color_White); } else { component2.set_text(string.Format(Singleton <CTextManager> .instance.GetText("Common_Offline"), new object[0])); component.set_color(CUIUtility.s_Color_Grey); CUIUtility.GetComponentInChildren <Image>(gameObject).set_color(CUIUtility.s_Color_GrayShader); } bool flag2 = CGuildHelper.IsMemberOnline(guildMember) && guildMember.GameState == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_IDLE; if (isGuildMatchInvite) { Transform transform3 = transform.Find("TeamState"); if (transform3 != null) { Text component7 = transform3.GetComponent <Text>(); if (Singleton <CGuildMatchSystem> .GetInstance().IsInAnyTeam(guildMember.stBriefInfo.uulUid)) { gameObject2.CustomSetActive(false); if (component7 != null) { component7.set_text(Singleton <CTextManager> .GetInstance().GetText("GuildMatch_SignUp_In_Team")); } } else { bool flag3 = !CGuildHelper.IsMemberOnline(guildMember) && !guildMember.isGuildMatchOfflineInvitedByHostPlayer; gameObject2.CustomSetActive(flag2 || flag3); if (component7 != null) { if (!CGuildHelper.IsMemberOnline(guildMember) && guildMember.isGuildMatchOfflineInvitedByHostPlayer) { component7.set_text("<color=#e49316>" + Singleton <CTextManager> .GetInstance().GetText("GuildMatch_SignUp_Invite_State_Wait_For_Response") + "</color>"); } else { component7.set_text(string.Empty); } } } } } else { gameObject2.CustomSetActive(flag2); } string szHeadUrl = guildMember.stBriefInfo.szHeadUrl; CUIUtility.GetComponentInChildren <CUIHttpImageScript>(gameObject).SetImageUrl(Singleton <ApolloHelper> .GetInstance().ToSnsHeadUrl(szHeadUrl)); if (isGuildMatchInvite && Singleton <CGuildMatchSystem> .GetInstance().IsInGuildMatchTime() && Singleton <CGuildMatchSystem> .GetInstance().IsInTeam(guildMember.GuildMatchInfo.ullTeamLeaderUid, Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().playerUllUID) && CGuildHelper.IsMemberOnline(guildMember) && guildMember.GameState == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_IDLE && !Convert.ToBoolean(guildMember.GuildMatchInfo.bIsReady) && gameObject3 != null) { gameObject3.CustomSetActive(true); CUIEventScript component8 = gameObject3.GetComponent <CUIEventScript>(); component8.m_onClickEventParams.commonUInt64Param1 = guildMember.stBriefInfo.uulUid; } }
private static void SetLBSState(GameObject element, ref CSDT_LBS_USER_INFO LBSInfo) { COMDT_FRIEND_INFO stLbsUserInfo = LBSInfo.stLbsUserInfo; GameObject gameObject = element.transform.FindChild("HeadBg").gameObject; Text component = element.transform.FindChild("Online").GetComponent <Text>(); GameObject gameObject2 = element.transform.FindChild("InviteButton").gameObject; Text component2 = element.transform.FindChild("PlayerName").GetComponent <Text>(); GameObject obj = Utility.FindChild(element, "HeadBg/AntiDisturbBits"); obj.CustomSetActive(false); bool flag = false; CInviteView.SetListElementLadderInfo(element, stLbsUserInfo); COM_ACNT_GAME_STATE cOM_ACNT_GAME_STATE = COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_IDLE; if (stLbsUserInfo.bIsOnline == 1) { cOM_ACNT_GAME_STATE = COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_IDLE; CFriendModel.FriendInGame friendInGaming = Singleton <CFriendContoller> .instance.model.GetFriendInGaming(stLbsUserInfo.stUin.ullUid, stLbsUserInfo.stUin.dwLogicWorldId); if (friendInGaming != null) { cOM_ACNT_GAME_STATE = friendInGaming.State; flag = ((friendInGaming.antiDisturbBits & 1u) == 1u); } if (cOM_ACNT_GAME_STATE == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_IDLE) { if (flag) { component.set_text(Singleton <CTextManager> .instance.GetText("Common_NotDisturb")); obj.CustomSetActive(true); } else { component.set_text(Singleton <CInviteSystem> .instance.GetInviteStateStr(stLbsUserInfo.stUin.ullUid, false)); } CUIEventScript component3 = gameObject2.GetComponent <CUIEventScript>(); component3.m_onClickEventParams.tag = (int)Singleton <CInviteSystem> .instance.InviteType; component3.m_onClickEventParams.tag2 = (int)stLbsUserInfo.stUin.dwLogicWorldId; component3.m_onClickEventParams.tag3 = (int)LBSInfo.dwGameSvrEntity; component3.m_onClickEventParams.commonUInt64Param1 = stLbsUserInfo.stUin.ullUid; } else if (cOM_ACNT_GAME_STATE == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_SINGLEGAME || cOM_ACNT_GAME_STATE == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_MULTIGAME || cOM_ACNT_GAME_STATE == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_WAITMULTIGAME) { component.set_text(string.Format("<color=#ffff00>{0}</color>", Singleton <CTextManager> .instance.GetText("Common_Gaming"))); } else if (cOM_ACNT_GAME_STATE == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_TEAM) { component.set_text(string.Format("<color=#ffff00>{0}</color>", Singleton <CTextManager> .instance.GetText("Common_Teaming"))); } component2.set_color(CUIUtility.s_Color_White); CUIUtility.GetComponentInChildren <Image>(gameObject).set_color(CUIUtility.s_Color_White); } else { component.set_text(string.Format(Singleton <CTextManager> .instance.GetText("Common_Offline"), new object[0])); component2.set_color(CUIUtility.s_Color_Grey); CUIUtility.GetComponentInChildren <Image>(gameObject).set_color(CUIUtility.s_Color_GrayShader); } gameObject2.CustomSetActive(stLbsUserInfo.bIsOnline == 1 && !flag && cOM_ACNT_GAME_STATE == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_IDLE); }
private static void SetFriendState(GameObject element, ref COMDT_FRIEND_INFO friend) { if (element == null || friend == null) { return; } CFriendModel model = Singleton <CFriendContoller> .instance.model; GameObject gameObject = element.transform.FindChild("HeadBg").gameObject; GameObject gameObject2 = element.transform.FindChild("InviteButton").gameObject; Text component = element.transform.FindChild("Online").GetComponent <Text>(); Text component2 = element.transform.FindChild("PlayerName").GetComponent <Text>(); GameObject obj = Utility.FindChild(element, "HeadBg/AntiDisturbBits"); obj.CustomSetActive(false); Text component3 = element.transform.FindChild("Time").GetComponent <Text>(); bool flag = false; if (component3 != null) { component3.gameObject.CustomSetActive(false); } if (component != null) { component.gameObject.CustomSetActive(true); } GameObject gameObject3 = Utility.FindChild(element, "ReserveButton"); gameObject3.CustomSetActive(false); GameObject gameObject4 = Utility.FindChild(element, "ReserveText"); gameObject4.CustomSetActive(false); CInviteView.SetListElementLadderInfo(element, friend); COM_ACNT_GAME_STATE cOM_ACNT_GAME_STATE = COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_IDLE; if (friend.bIsOnline == 1) { CFriendModel.FriendInGame friendInGaming = Singleton <CFriendContoller> .instance.model.GetFriendInGaming(friend.stUin.ullUid, friend.stUin.dwLogicWorldId); if (friendInGaming == null) { cOM_ACNT_GAME_STATE = COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_IDLE; } else { cOM_ACNT_GAME_STATE = friendInGaming.State; flag = ((friendInGaming.antiDisturbBits & 1u) == 1u); } if (cOM_ACNT_GAME_STATE == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_IDLE) { if (flag) { component.set_text(Singleton <CTextManager> .instance.GetText("Common_NotDisturb")); obj.CustomSetActive(true); } else { component.set_text(Singleton <CInviteSystem> .instance.GetInviteStateStr(friend.stUin.ullUid, false)); } if (friendInGaming != null && friendInGaming.IsUseTGA()) { component.gameObject.CustomSetActive(true); component.set_text(string.Format("<color=#ffff00>{0}</color>", Singleton <CTextManager> .instance.GetText("TGA_Friend_State"))); } CUIEventScript component4 = gameObject2.GetComponent <CUIEventScript>(); component4.m_onClickEventParams.tag = (int)Singleton <CInviteSystem> .instance.InviteType; component4.m_onClickEventParams.tag2 = (int)friend.stUin.dwLogicWorldId; component4.m_onClickEventParams.commonUInt64Param1 = friend.stUin.ullUid; } else if (cOM_ACNT_GAME_STATE == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_SINGLEGAME || cOM_ACNT_GAME_STATE == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_MULTIGAME || cOM_ACNT_GAME_STATE == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_WAITMULTIGAME) { if (friendInGaming == null) { component.gameObject.CustomSetActive(true); component.set_text("friendInGame is null"); return; } if (friendInGaming.startTime > 0u) { component.gameObject.CustomSetActive(false); component3.gameObject.CustomSetActive(true); component3.set_text(string.Format(Singleton <CTextManager> .instance.GetText("Common_Gaming_Time"), CInviteView.GetStartMinute(friendInGaming.startTime))); Singleton <CInviteSystem> .instance.CheckInviteListGameTimer(); if (Singleton <CFriendContoller> .instance.model.friendReserve.BServerEnableReverse) { FriendReserve.Ent ent = model.friendReserve.Find(friend.stUin.ullUid, friend.stUin.dwLogicWorldId, FriendReserve.ReserveDataType.Send); ushort num; CFriendModel.EIntimacyType eIntimacyType; bool flag2; model.GetFriendIntimacy(friend.stUin.ullUid, friend.stUin.dwLogicWorldId, out num, out eIntimacyType, out flag2); if (ent == null) { bool flag3 = (friendInGaming.antiDisturbBits & 1u) > 0u; bool flag4 = (friend.dwRefuseFriendBits & 16u) == 0u; if (flag4 && !flag3 && num >= 100) { gameObject3.CustomSetActive(true); gameObject4.CustomSetActive(false); if (gameObject3 != null) { CUIEventScript component5 = gameObject3.GetComponent <CUIEventScript>(); component5.m_onClickEventParams.commonUInt64Param1 = friend.stUin.ullUid; component5.m_onClickEventParams.tagUInt = friend.stUin.dwLogicWorldId; component5.m_onClickEventParams.tagStr = Utility.UTF8Convert(friend.szUserName); } } } else { gameObject3.CustomSetActive(false); gameObject4.CustomSetActive(true); if (gameObject4 != null) { Text component6 = gameObject4.GetComponent <Text>(); if (component6 != null) { if (ent != null && ent.result == 2) { component6.set_text(model.friendReserve.Reserve_Success); } else if (ent != null && ent.result == 1) { component6.set_text(model.friendReserve.Reserve_Failed); } else { component6.set_text(model.friendReserve.Reserve_Wait4Rsp); } } } } } } else { component.gameObject.CustomSetActive(true); component.set_text(string.Format("<color=#ffff00>{0}</color>", Singleton <CTextManager> .instance.GetText("Common_Gaming_NoTime"))); } } else if (cOM_ACNT_GAME_STATE == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_TEAM) { component.set_text(string.Format("<color=#ffff00>{0}</color>", Singleton <CTextManager> .instance.GetText("Common_Teaming"))); } component2.set_color(CUIUtility.s_Color_White); CUIUtility.GetComponentInChildren <Image>(gameObject).set_color(CUIUtility.s_Color_White); } else { component.set_text(string.Format(Singleton <CTextManager> .instance.GetText("Common_Offline"), new object[0])); component2.set_color(CUIUtility.s_Color_Grey); CUIUtility.GetComponentInChildren <Image>(gameObject).set_color(CUIUtility.s_Color_GrayShader); } gameObject2.CustomSetActive(friend.bIsOnline == 1 && !flag && cOM_ACNT_GAME_STATE == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_IDLE); }
public static void UpdateGuildMemberListElement(GameObject element, GuildMemInfo guildMember, bool isGuildMatchInvite) { GameObject gameObject = element.transform.FindChild("HeadBg").gameObject; GameObject gameObject2 = element.transform.FindChild("InviteButton").gameObject; Text component = element.transform.FindChild("PlayerName").GetComponent <Text>(); Text component2 = element.transform.FindChild("Online").GetComponent <Text>(); Image component3 = element.transform.FindChild("NobeIcon").GetComponent <Image>(); Image component4 = element.transform.FindChild("HeadBg/NobeImag").GetComponent <Image>(); Text component5 = element.transform.FindChild("Time").GetComponent <Text>(); if (component5 != null) { component5.gameObject.CustomSetActive(false); } if (component2 != null) { component2.gameObject.CustomSetActive(true); } Transform transform = element.transform.FindChild("RemindButton"); GameObject gameObject3 = null; if (transform != null) { gameObject3 = transform.gameObject; gameObject3.CustomSetActive(false); } CInviteView.SetListElementLadderInfo(element, guildMember); if (component3) { MonoSingleton <NobeSys> .GetInstance().SetNobeIcon(component3, (int)guildMember.stBriefInfo.stVip.level, false); } if (component4) { MonoSingleton <NobeSys> .GetInstance().SetHeadIconBk(component4, (int)guildMember.stBriefInfo.stVip.headIconId); } component.text = Utility.UTF8Convert(guildMember.stBriefInfo.sName); if (CGuildHelper.IsMemberOnline(guildMember)) { if (guildMember.GameState == null) { component2.text = Singleton <CInviteSystem> .get_instance().GetInviteStateStr(guildMember.stBriefInfo.uulUid, isGuildMatchInvite); CUIEventScript component6 = gameObject2.GetComponent <CUIEventScript>(); component6.m_onClickEventParams.tag = Singleton <CInviteSystem> .get_instance().InviteType; component6.m_onClickEventParams.tag2 = guildMember.stBriefInfo.dwLogicWorldId; component6.m_onClickEventParams.commonUInt64Param1 = guildMember.stBriefInfo.uulUid; } else if (guildMember.GameState == 1 || guildMember.GameState == 2 || guildMember.GameState == 4) { if (guildMember.dwGameStartTime > 0u) { if (component2 != null) { component2.gameObject.CustomSetActive(false); } if (component5 != null) { component5.gameObject.CustomSetActive(true); } if (component5 != null) { component5.text = string.Format(Singleton <CTextManager> .get_instance().GetText("Common_Gaming_Time"), CInviteView.GetStartMinute(guildMember.dwGameStartTime)); } Singleton <CInviteSystem> .get_instance().CheckInviteListGameTimer(); } else { if (component2 != null) { component2.gameObject.CustomSetActive(true); } if (component2 != null) { component2.text = string.Format("<color=#ffff00>{0}</color>", Singleton <CTextManager> .get_instance().GetText("Common_Gaming_NoTime")); } } } else if (guildMember.GameState == 3) { component2.text = string.Format("<color=#ffff00>{0}</color>", Singleton <CTextManager> .get_instance().GetText("Common_Teaming")); } component.color = CUIUtility.s_Color_White; CUIUtility.GetComponentInChildren <Image>(gameObject).color = CUIUtility.s_Color_White; } else { component2.text = string.Format(Singleton <CTextManager> .get_instance().GetText("Common_Offline"), new object[0]); component.color = CUIUtility.s_Color_Grey; CUIUtility.GetComponentInChildren <Image>(gameObject).color = CUIUtility.s_Color_GrayShader; } gameObject2.CustomSetActive(CGuildHelper.IsMemberOnline(guildMember) && guildMember.GameState == 0); string szHeadUrl = guildMember.stBriefInfo.szHeadUrl; CUIUtility.GetComponentInChildren <CUIHttpImageScript>(gameObject).SetImageUrl(Singleton <ApolloHelper> .GetInstance().ToSnsHeadUrl(szHeadUrl)); if (isGuildMatchInvite && Singleton <CGuildMatchSystem> .GetInstance().IsInTeam(guildMember.GuildMatchInfo.ullTeamLeaderUid, Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().playerUllUID) && CGuildHelper.IsMemberOnline(guildMember)) { CInviteView.SetInvitedRelatedWidgets(gameObject2, component2); if (guildMember.GameState == null && !Convert.ToBoolean(guildMember.GuildMatchInfo.bIsReady) && gameObject3 != null) { gameObject3.CustomSetActive(true); CUIEventScript component7 = gameObject3.GetComponent <CUIEventScript>(); component7.m_onClickEventParams.commonUInt64Param1 = guildMember.stBriefInfo.uulUid; } } }
private static void SetFriendState(GameObject element, ref COMDT_FRIEND_INFO friend) { GameObject gameObject = element.transform.FindChild("HeadBg").gameObject; Text component = element.transform.FindChild("Online").GetComponent <Text>(); GameObject gameObject2 = element.transform.FindChild("InviteButton").gameObject; Text component2 = element.transform.FindChild("PlayerName").GetComponent <Text>(); Text component3 = element.transform.FindChild("Time").GetComponent <Text>(); if (component3 != null) { component3.gameObject.CustomSetActive(false); } if (component != null) { component.gameObject.CustomSetActive(true); } CInviteView.SetListElementLadderInfo(element, friend); COM_ACNT_GAME_STATE cOM_ACNT_GAME_STATE = 0; if (friend.bIsOnline == 1) { CFriendModel.FriendInGame friendInGaming = Singleton <CFriendContoller> .get_instance().model.GetFriendInGaming(friend.stUin.ullUid, friend.stUin.dwLogicWorldId); if (friendInGaming == null) { cOM_ACNT_GAME_STATE = 0; } else { cOM_ACNT_GAME_STATE = friendInGaming.State; } if (cOM_ACNT_GAME_STATE == null) { component.text = Singleton <CInviteSystem> .get_instance().GetInviteStateStr(friend.stUin.ullUid, false); CUIEventScript component4 = gameObject2.GetComponent <CUIEventScript>(); component4.m_onClickEventParams.tag = Singleton <CInviteSystem> .get_instance().InviteType; component4.m_onClickEventParams.tag2 = (int)friend.stUin.dwLogicWorldId; component4.m_onClickEventParams.commonUInt64Param1 = friend.stUin.ullUid; } else if (cOM_ACNT_GAME_STATE == 1 || cOM_ACNT_GAME_STATE == 2 || cOM_ACNT_GAME_STATE == 4) { if (friendInGaming == null) { component.gameObject.CustomSetActive(true); component.text = "friendInGame is null"; return; } if (friendInGaming.startTime > 0u) { component.gameObject.CustomSetActive(false); component3.gameObject.CustomSetActive(true); component3.text = string.Format(Singleton <CTextManager> .get_instance().GetText("Common_Gaming_Time"), CInviteView.GetStartMinute(friendInGaming.startTime)); Singleton <CInviteSystem> .get_instance().CheckInviteListGameTimer(); } else { component.gameObject.CustomSetActive(true); component.text = string.Format("<color=#ffff00>{0}</color>", Singleton <CTextManager> .get_instance().GetText("Common_Gaming_NoTime")); } } else if (cOM_ACNT_GAME_STATE == 3) { component.text = string.Format("<color=#ffff00>{0}</color>", Singleton <CTextManager> .get_instance().GetText("Common_Teaming")); } component2.color = CUIUtility.s_Color_White; CUIUtility.GetComponentInChildren <Image>(gameObject).color = CUIUtility.s_Color_White; } else { component.text = string.Format(Singleton <CTextManager> .get_instance().GetText("Common_Offline"), new object[0]); component2.color = CUIUtility.s_Color_Grey; CUIUtility.GetComponentInChildren <Image>(gameObject).color = CUIUtility.s_Color_GrayShader; } gameObject2.CustomSetActive(friend.bIsOnline == 1 && cOM_ACNT_GAME_STATE == 0); }
private static void SetFriendState(GameObject element, ref COMDT_FRIEND_INFO friend) { GameObject gameObject = element.transform.FindChild("HeadBg").gameObject; Text component = element.transform.FindChild("Online").GetComponent <Text>(); GameObject obj3 = element.transform.FindChild("InviteButton").gameObject; Text text2 = element.transform.FindChild("PlayerName").GetComponent <Text>(); Text text3 = element.transform.FindChild("Time").GetComponent <Text>(); if (text3 != null) { text3.gameObject.CustomSetActive(false); } if (component != null) { component.gameObject.CustomSetActive(true); } SetListElementLadderInfo(element, friend); COM_ACNT_GAME_STATE state = COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_IDLE; if (friend.bIsOnline == 1) { CFriendModel.FriendInGame friendInGaming = Singleton <CFriendContoller> .instance.model.GetFriendInGaming(friend.stUin.ullUid, friend.stUin.dwLogicWorldId); if (friendInGaming == null) { state = COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_IDLE; } else { state = friendInGaming.State; } if (state == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_IDLE) { component.text = Singleton <CInviteSystem> .instance.GetInviteStateStr(friend.stUin.ullUid); CUIEventScript script = obj3.GetComponent <CUIEventScript>(); script.m_onClickEventParams.tag = (int)Singleton <CInviteSystem> .instance.InviteType; script.m_onClickEventParams.tag2 = (int)friend.stUin.dwLogicWorldId; script.m_onClickEventParams.commonUInt64Param1 = friend.stUin.ullUid; } else if ((state == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_SINGLEGAME) || (state == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_MULTIGAME)) { if (friendInGaming == null) { component.gameObject.CustomSetActive(true); component.text = "friendInGame is null"; return; } if (friendInGaming.startTime > 0) { component.gameObject.CustomSetActive(false); text3.gameObject.CustomSetActive(true); text3.text = string.Format(Singleton <CTextManager> .instance.GetText("Common_Gaming_Time"), GetStartMinute(friendInGaming.startTime)); Singleton <CInviteSystem> .instance.CheckInviteListGameTimer(); } else { component.gameObject.CustomSetActive(true); component.text = string.Format("<color=#ffff00>{0}</color>", Singleton <CTextManager> .instance.GetText("Common_Gaming_NoTime")); } } else if (state == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_TEAM) { component.text = string.Format("<color=#ffff00>{0}</color>", Singleton <CTextManager> .instance.GetText("Common_Teaming")); } text2.color = CUIUtility.s_Color_White; CUIUtility.GetComponentInChildren <Image>(gameObject).color = CUIUtility.s_Color_White; } else { component.text = string.Format(Singleton <CTextManager> .instance.GetText("Common_Offline"), new object[0]); text2.color = CUIUtility.s_Color_Grey; CUIUtility.GetComponentInChildren <Image>(gameObject).color = CUIUtility.s_Color_GrayShader; } obj3.CustomSetActive((friend.bIsOnline == 1) && (state == COM_ACNT_GAME_STATE.COM_ACNT_GAME_STATE_IDLE)); }
public void UpdateListElenment(GameObject element, CMail mail) { int currentUTCTime = CRoleInfo.GetCurrentUTCTime(); Text component = element.transform.FindChild("Title").GetComponent <Text>(); Text component2 = element.transform.FindChild("MailTime").GetComponent <Text>(); GameObject gameObject = element.transform.FindChild("New").gameObject; GameObject gameObject2 = element.transform.FindChild("ReadMailIcon").gameObject; GameObject gameObject3 = element.transform.FindChild("UnReadMailIcon").gameObject; GameObject gameObject4 = element.transform.FindChild("CoinImg").gameObject; Text component3 = element.transform.FindChild("From").GetComponent <Text>(); CUIHttpImageScript component4 = element.transform.FindChild("HeadBg/imgHead").GetComponent <CUIHttpImageScript>(); GameObject obj = null; Text text = null; Transform transform = element.transform.FindChild("OnlineBg"); if (transform != null) { obj = transform.gameObject; } Transform transform2 = element.transform.FindChild("Online"); if (transform2 != null) { text = transform2.GetComponent <Text>(); } component.text = mail.subject; component2.text = Utility.GetTimeBeforString((long)((ulong)mail.sendTime), (long)currentUTCTime); bool flag = mail.mailState == 1; gameObject.CustomSetActive(flag); if (mail.mailType == 1) { gameObject2.CustomSetActive(!flag); gameObject3.CustomSetActive(flag); component3.text = string.Empty; component4.gameObject.CustomSetActive(false); gameObject4.SetActive(false); obj.CustomSetActive(false); if (text != null) { text.gameObject.CustomSetActive(false); } } else if (mail.mailType == 2) { obj.CustomSetActive(false); if (text != null) { text.gameObject.CustomSetActive(false); } gameObject2.CustomSetActive(false); gameObject3.CustomSetActive(false); component3.text = mail.from; component4.gameObject.CustomSetActive(true); if (mail.subType == 3) { gameObject4.CustomSetActive(false); component4.SetImageSprite(CGuildHelper.GetGuildHeadPath(), this.m_CUIForm); } else { gameObject4.CustomSetActive(true); if (!CSysDynamicBlock.bFriendBlocked) { COMDT_FRIEND_INFO friendByName = Singleton <CFriendContoller> .get_instance().model.getFriendByName(mail.from, CFriendModel.FriendType.GameFriend); if (friendByName == null) { friendByName = Singleton <CFriendContoller> .get_instance().model.getFriendByName(mail.from, CFriendModel.FriendType.SNS); } if (friendByName != null) { string url = Utility.UTF8Convert(friendByName.szHeadUrl); component4.SetImageUrl(Singleton <ApolloHelper> .GetInstance().ToSnsHeadUrl(url)); } } } } else if (mail.mailType == 3) { obj.CustomSetActive(true); if (text != null) { text.gameObject.CustomSetActive(true); } gameObject2.CustomSetActive(false); gameObject3.CustomSetActive(false); component3.text = string.Empty; component4.gameObject.CustomSetActive(true); gameObject4.SetActive(false); Transform transform3 = element.transform.FindChild("invite_btn"); GameObject obj2 = null; if (transform3 != null) { obj2 = transform3.gameObject; } if (mail.relationType == 1) { GuildMemInfo guildMemberInfoByUid = CGuildHelper.GetGuildMemberInfoByUid(mail.uid); Singleton <CMailSys> .get_instance().AddGuildMemInfo(guildMemberInfoByUid); } this.SetEventParams(element, mail); string text2; string url2; bool flag2 = !this.GetOtherPlayerState(mail.relationType, mail.uid, mail.dwLogicWorldID, out text2, out url2); string processTypeString = this.GetProcessTypeString((CMailSys.enProcessInviteType)mail.processType); component.text = string.Format("{0} {1}", mail.subject, processTypeString); if (text != null) { text.text = text2; } component4.SetImageUrl(Singleton <ApolloHelper> .GetInstance().ToSnsHeadUrl(url2)); if (flag2) { CUIUtility.GetComponentInChildren <Image>(component4.gameObject).color = CUIUtility.s_Color_GrayShader; } else { CUIUtility.GetComponentInChildren <Image>(component4.gameObject).color = CUIUtility.s_Color_Full; } obj2.CustomSetActive(!flag2); } }