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_PkPrepareNtf.cs | 118 +++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkPrepareNtf.cs (limited to 'Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkPrepareNtf.cs') diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkPrepareNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkPrepareNtf.cs new file mode 100644 index 00000000..0a8eacd3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkPrepareNtf.cs @@ -0,0 +1,118 @@ +using System; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_PkPrepareNtf + { + public static void Process(PtcG2C_PkPrepareNtf roPtc) + { + bool flag = roPtc.Data.beginorend == 0u; + if (flag) + { + XSingleton.singleton.AddLog("PK Prepare Begin at ", Time.frameCount.ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.ShowCountDownFrame(true); + } + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + DlgBase.singleton.ShowCountDownFrame(true); + DlgBase.singleton.HideLeftTime(); + DlgBase.singleton.uiBehaviour.m_PromptFrame.gameObject.SetActive(false); + } + bool flag4 = XSingleton.singleton.SceneType == SceneType.SKYCITY_FIGHTING; + if (flag4) + { + XSkyArenaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XSkyArenaBattleDocument.uuID); + specificDocument.HideVSInfo(); + specificDocument.HideTime(); + XSingleton.singleton.SetMiniMapOpponentStatus(false); + } + bool flag5 = XSingleton.singleton.SceneType == SceneType.SCENE_RESWAR_PVP; + if (flag5) + { + XGuildMineBattleDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildMineBattleDocument.uuID); + specificDocument2.HideVSInfo(); + } + bool flag6 = XSingleton.singleton.SceneType == SceneType.SCENE_BIGMELEE_FIGHT; + if (flag6) + { + XBigMeleeBattleDocument specificDocument3 = XDocuments.GetSpecificDocument(XBigMeleeBattleDocument.uuID); + specificDocument3.HideInfo(); + } + } + else + { + bool flag7 = 1u == roPtc.Data.beginorend; + if (flag7) + { + XSingleton.singleton.AddLog("PK Prepare End at ", Time.frameCount.ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag8 = DlgBase.singleton.IsLoaded(); + if (flag8) + { + DlgBase.singleton.ShowCountDownFrame(false); + } + bool flag9 = DlgBase.singleton.IsLoaded(); + if (flag9) + { + DlgBase.singleton.ShowCountDownFrame(false); + } + bool flag10 = XSingleton.singleton.SceneType == SceneType.SCENE_PVP; + if (flag10) + { + bool flag11 = DlgBase.singleton.IsLoaded(); + if (flag11) + { + DlgBase.singleton.SetLeftTime((uint)XSingleton.singleton.GetInt("PVPGameTime")); + } + bool flag12 = DlgBase.singleton.IsLoaded(); + if (flag12) + { + DlgBase.singleton.SetLeftTime((uint)XSingleton.singleton.GetInt("PVPGameTime"), -1); + } + } + bool flag13 = XSingleton.singleton.SceneType == SceneType.SCENE_PK; + if (flag13) + { + bool flag14 = DlgBase.singleton.IsLoaded(); + if (flag14) + { + DlgBase.singleton.SetLeftTime((uint)XSingleton.singleton.GetInt("PkUpdateTime")); + } + bool flag15 = DlgBase.singleton.IsLoaded(); + if (flag15) + { + DlgBase.singleton.SetLeftTime((uint)XSingleton.singleton.GetInt("PkUpdateTime"), -1); + } + } + bool flag16 = XSingleton.singleton.SceneType == SceneType.SCENE_INVFIGHT; + if (flag16) + { + bool flag17 = DlgBase.singleton.IsLoaded(); + if (flag17) + { + DlgBase.singleton.SetLeftTime((uint)XSingleton.singleton.GetInt("InvFightFightTime"), -1); + } + } + bool flag18 = XSingleton.singleton.SceneType == SceneType.SCENE_HORSE_RACE || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_HORSERACING; + if (flag18) + { + XRaceDocument specificDocument4 = XDocuments.GetSpecificDocument(XRaceDocument.uuID); + bool flag19 = specificDocument4.RaceHandler != null; + if (flag19) + { + specificDocument4.RaceHandler.RefreshTime(0f); + } + } + } + } + } + } +} -- cgit v1.1-26-g67d0