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_PtcG2C_PushPraiseNtf.cs | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PushPraiseNtf.cs (limited to 'Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PushPraiseNtf.cs') diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PushPraiseNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PushPraiseNtf.cs new file mode 100644 index 00000000..a18f817f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PushPraiseNtf.cs @@ -0,0 +1,53 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_PushPraiseNtf + { + public static void Process(PtcG2C_PushPraiseNtf roPtc) + { + XSingleton.singleton.AddLog("Process_PtcG2C_PushPraiseNtf: ", roPtc.Data.type.ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag = XScreenShotShareDocument.ShareIndex == CommentType.COMMENT_NEST || XScreenShotShareDocument.ShareIndex == CommentType.COMMENT_DRAGON; + if (!flag) + { + XScreenShotShareDocument.ShareIndex = roPtc.Data.type; + bool flag2 = XScreenShotShareDocument.ShareIndex == CommentType.COMMENT_PANDORA || XScreenShotShareDocument.ShareIndex == CommentType.COMMENT_SPRITE; + if (flag2) + { + bool flag3 = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag3) + { + XScreenShotShareDocument specificDocument = XDocuments.GetSpecificDocument(XScreenShotShareDocument.uuID); + specificDocument.CurShareBgType = ((XScreenShotShareDocument.ShareIndex == CommentType.COMMENT_PANDORA) ? ShareBgType.LuckyPandora : ShareBgType.LuckySpriteType); + specificDocument.SpriteID = roPtc.Data.spriteid; + XSingleton.singleton.AddLog(string.Concat(new object[] + { + " ", + specificDocument.CurShareBgType, + " ", + specificDocument.SpriteID + }), null, null, null, null, null, XDebugColor.XDebug_None); + } + } + else + { + bool flag4 = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Link_Share); + if (!flag4) + { + bool flag5 = XSingleton.singleton.IsPVPScene() || XSingleton.singleton.IsPVEScene(); + if (flag5) + { + XSingleton.singleton.CacheUI(XSysDefine.XSys_Link_Share, EXStage.Hall); + } + else + { + XScreenShotShareDocument.DoShowShare(); + } + } + } + } + } + } +} -- cgit v1.1-26-g67d0