summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GSErrorNotify.cs
blob: df082bcdb396358ce1f2751ff5cc46ccbcad8a8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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));
					}
				}
			}
		}
	}
}