using Assets.src.rpg;

namespace Assets.src.screen
{
	internal class WaitingScr : CScreen
	{
		public static WaitingScr instance;

		public static string[] cutTips;

		public static int curTips;

		public static string[] tips = new string[8] { "Level 2 đến Đội trưởng để nạp tiền", "Sử dụng balo để mang được nhiều vật phẩm", "Cần quan sát tốc độ gió trước khi bắn", "Thời gian nạp đạn của súng là chìa khoá chiến thắng", "Khảm nạm trang bị để tăng tấn công", "Level 5 mới có thể đấu boss", "Đăng nhập mỗi ngày để nhận thưởng", "Không cung cấp thông tin tài khoản cho bất kỳ ai" };

		public static WaitingScr gI()
		{
			if (instance == null)
			{
				instance = new WaitingScr();
			}
			return instance;
		}

		public new void paint(mGraphics g)
		{
			BackgroundNew.paintBGGameScr2(g);
			g.translate(-g.getTranslateX(), -g.getTranslateY());
			g.drawImage(GameScr.logoGame, CCanvas.hw, CCanvas.hh - 30, 3, false);
			CCanvas.paintShukiren(CCanvas.hw, CCanvas.hh + 40, g);
			for (int i = 0; i < cutTips.Length; i++)
			{
				mFont.drawStringBorder(g, cutTips[i], CCanvas.hw, CCanvas.hh + 60 + i * 20, 2);
			}
		}

		public static void randomTips()
		{
			int num = 0;
			num = CRes.random(0, 7);
			curTips = num;
			cutTips = mFont.tahoma_7b_dark.splitFontArray(tips[curTips], CScreen.w - 30);
		}

		public override void show()
		{
			if (CCanvas.curScr != this)
			{
				GameScr.chatList.removeAllElements();
				GameScrRPG.chatList.removeAllElements();
				randomTips();
				base.show();
			}
		}
	}
}
