summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GSErrorNotify.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GSErrorNotify.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GSErrorNotify.cs52
1 files changed, 52 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GSErrorNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GSErrorNotify.cs
new file mode 100644
index 00000000..df082bcd
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GSErrorNotify.cs
@@ -0,0 +1,52 @@
+using System;
+using KKSG;
+using XMainClient.UI;
+using XUtliPoolLib;
+
+namespace XMainClient
+{
+ internal class Process_PtcG2C_GSErrorNotify
+ {
+ public static void Process(PtcG2C_GSErrorNotify roPtc)
+ {
+ int @int = XSingleton<XGlobalConfig>.singleton.GetInt("WorldBossSceneID");
+ int int2 = XSingleton<XGlobalConfig>.singleton.GetInt("GuildBossSceneID");
+ ErrorCode errorno = (ErrorCode)roPtc.Data.errorno;
+ if (errorno != ErrorCode.ERR_SCENE_COOLDOWN)
+ {
+ bool istip = roPtc.Data.istip;
+ if (istip)
+ {
+ XSingleton<UiUtility>.singleton.ShowSystemTip((ErrorCode)roPtc.Data.errorno, "fece00");
+ }
+ else
+ {
+ XSingleton<UiUtility>.singleton.ShowErrorCode((ErrorCode)roPtc.Data.errorno);
+ }
+ }
+ else
+ {
+ bool flag = roPtc.Data.param.Count >= 2 && roPtc.Data.param[1] == (uint)@int;
+ if (flag)
+ {
+ XSingleton<UiUtility>.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("WorldBoss_CoolDown_Tips"), (int)roPtc.Data.param[0]), "fece00");
+ }
+ else
+ {
+ bool flag2 = roPtc.Data.param.Count >= 2 && roPtc.Data.param[1] == (uint)int2;
+ if (flag2)
+ {
+ XSingleton<UiUtility>.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("GuildBoss_CoolDown_Tips"), (int)roPtc.Data.param[0]), "fece00");
+ }
+ else
+ {
+ XSingleton<UiUtility>.singleton.ShowModalDialog(XStringDefineProxy.GetString("SCENE_COOLDOWM_TIME", new object[]
+ {
+ (roPtc.Data.param.Count == 0) ? "" : XSingleton<UiUtility>.singleton.TimeDuarationFormatString((int)roPtc.Data.param[0], 5)
+ }), XStringDefineProxy.GetString(XStringDefine.COMMON_OK));
+ }
+ }
+ }
+ }
+ }
+}