From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../PTC/Process/Process_PtcM2C_HintNotifyMS.cs | 116 +++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_HintNotifyMS.cs (limited to 'Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_HintNotifyMS.cs') diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_HintNotifyMS.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_HintNotifyMS.cs new file mode 100644 index 00000000..0388e4dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_HintNotifyMS.cs @@ -0,0 +1,116 @@ +using System; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcM2C_HintNotifyMS + { + public static void Process(PtcM2C_HintNotifyMS roPtc) + { + int i = 0; + while (i < roPtc.Data.systemid.Count) + { + XSysDefine xsysDefine = (XSysDefine)roPtc.Data.systemid[i]; + XSysDefine xsysDefine2 = xsysDefine; + if (xsysDefine2 <= XSysDefine.XSys_Flower_Rank_Activity) + { + if (xsysDefine2 <= XSysDefine.XSys_Mentorship) + { + if (xsysDefine2 != XSysDefine.XSys_Qualifying) + { + if (xsysDefine2 != XSysDefine.XSys_Mentorship) + { + goto IL_222; + } + XMentorshipDocument.Doc.HasRedPointOnTasks = true; + } + else + { + XQualifyingDocument specificDocument = XDocuments.GetSpecificDocument(XQualifyingDocument.uuID); + specificDocument.RedPoint = true; + } + } + else if (xsysDefine2 != XSysDefine.XSys_GuildDragon) + { + if (xsysDefine2 != XSysDefine.XSys_Home) + { + if (xsysDefine2 != XSysDefine.XSys_Flower_Rank_Activity) + { + goto IL_222; + } + XFlowerRankDocument specificDocument2 = XDocuments.GetSpecificDocument(XFlowerRankDocument.uuID); + specificDocument2.CanGetActivityAward = !roPtc.Data.isremove; + } + else + { + HomeMainDocument.Doc.HomeMainRedDot = roPtc.Data.isremove; + } + } + else + { + XGuildDragonDocument specificDocument3 = XDocuments.GetSpecificDocument(XGuildDragonDocument.uuID); + specificDocument3.bCanFight = !roPtc.Data.isremove; + } + } + else if (xsysDefine2 <= XSysDefine.XSys_Wedding) + { + if (xsysDefine2 != XSysDefine.XSys_WeekNest) + { + if (xsysDefine2 != XSysDefine.XSys_Announcement) + { + if (xsysDefine2 != XSysDefine.XSys_Wedding) + { + goto IL_222; + } + XWeddingDocument.Doc.IsHadLivenessRedPoint = !roPtc.Data.isremove; + } + else + { + XAnnouncementDocument specificDocument4 = XDocuments.GetSpecificDocument(XAnnouncementDocument.uuID); + specificDocument4.RedPoint = !roPtc.Data.isremove; + } + } + else + { + XWeekNestDocument.Doc.HadRedDot = !roPtc.Data.isremove; + } + } + else if (xsysDefine2 != XSysDefine.XSys_GuildHall_SignIn) + { + if (xsysDefine2 != XSysDefine.XSys_GuildRelax_JokerMatch) + { + if (xsysDefine2 != XSysDefine.XSys_JockerKing) + { + goto IL_222; + } + XJokerKingDocument specificDocument5 = XDocuments.GetSpecificDocument(XJokerKingDocument.uuID); + specificDocument5.bAvaiableIconWhenShow = !roPtc.Data.isremove; + } + else + { + XGuildJockerMatchDocument specificDocument6 = XDocuments.GetSpecificDocument(XGuildJockerMatchDocument.uuID); + specificDocument6.bAvaiableIconWhenShow = !roPtc.Data.isremove; + } + } + else + { + XGuildSignInDocument specificDocument7 = XDocuments.GetSpecificDocument(XGuildSignInDocument.uuID); + specificDocument7.SignInSelection = 0u; + } + IL_23E: + bool flag = xsysDefine == XSysDefine.XSys_Mail; + if (flag) + { + DlgBase.singleton.ShowMailRedpoint(); + } + XSingleton.singleton.RecalculateRedPointState(xsysDefine, true); + i++; + continue; + IL_222: + XSingleton.singleton.SetSysRedPointState(xsysDefine, !roPtc.Data.isremove); + goto IL_23E; + } + } + } +} -- cgit v1.1-26-g67d0