summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QANotify.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QANotify.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QANotify.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QANotify.cs42
1 files changed, 42 insertions, 0 deletions
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>(XMainInterfaceDocument.uuID);
+ XVoiceQADocument specificDocument2 = XDocuments.GetSpecificDocument<XVoiceQADocument>(XVoiceQADocument.uuID);
+ bool is_over = roPtc.Data.is_over;
+ if (is_over)
+ {
+ specificDocument2.TempType = 0u;
+ specificDocument2.IsVoiceQAIng = false;
+ specificDocument2.MainInterFaceBtnState = false;
+ DlgBase<XMainInterface, XMainInterfaceBehaviour>.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);
+ }
+ }
+ }
+ }
+ }
+}