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_QANotify.cs | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QANotify.cs (limited to 'Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QANotify.cs') diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QANotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QANotify.cs new file mode 100644 index 00000000..c3f366f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QANotify.cs @@ -0,0 +1,42 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class Process_PtcG2C_QANotify + { + public static void Process(PtcG2C_QANotify roPtc) + { + bool flag = roPtc.Data.type == 0u; + if (!flag) + { + XMainInterfaceDocument specificDocument = XDocuments.GetSpecificDocument(XMainInterfaceDocument.uuID); + XVoiceQADocument specificDocument2 = XDocuments.GetSpecificDocument(XVoiceQADocument.uuID); + bool is_over = roPtc.Data.is_over; + if (is_over) + { + specificDocument2.TempType = 0u; + specificDocument2.IsVoiceQAIng = false; + specificDocument2.MainInterFaceBtnState = false; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GuildRelax_VoiceQA, true); + } + else + { + bool is_playing = roPtc.Data.is_playing; + if (is_playing) + { + specificDocument2.IsVoiceQAIng = true; + specificDocument.SetVoiceBtnAppear(0u); + specificDocument2.VoiceQAInit(roPtc.Data.type); + } + else + { + specificDocument2.TempType = roPtc.Data.type; + specificDocument.SetVoiceBtnAppear(roPtc.Data.type); + } + } + } + } + } +} -- cgit v1.1-26-g67d0