private void drawLoginScreen(boolean flag)
	{
		resetImageProducers();
		aRSImageProducer_1109.initDrawingArea();
		aBackground_966.method361(0, 0);
		char c = '\u0168';
		char c1 = '\310';
		if(loginScreenState == 0)
		{
			int i = c1 / 2 + 80;
			smallText.method382(0x75a9a9, c / 2, onDemandFetcher.statusString, i, true);
			i = c1 / 2 - 20;
			chatTextDrawingArea.method382(0xffff00, c / 2, "Welcome to RuneScape", i, true);
			i += 30;
			int l = c / 2 - 80;
			int k1 = c1 / 2 + 20;
			aBackground_967.method361(l - 73, k1 - 20);
			chatTextDrawingArea.method382(0xffffff, l, "New User", k1 + 5, true);
			l = c / 2 + 80;
			aBackground_967.method361(l - 73, k1 - 20);
			chatTextDrawingArea.method382(0xffffff, l, "Existing User", k1 + 5, true);
		}
		if(loginScreenState == 2)
		{
			int j = c1 / 2 - 40;
			if(loginMessage1.length() > 0)
			{
				chatTextDrawingArea.method382(0xffff00, c / 2, loginMessage1, j - 15, true);
				chatTextDrawingArea.method382(0xffff00, c / 2, loginMessage2, j, true);
				j += 30;
			} else
			{
				chatTextDrawingArea.method382(0xffff00, c / 2, loginMessage2, j - 7, true);
				j += 30;
			}
			chatTextDrawingArea.method389(true, c / 2 - 90, 0xffffff, "Username: " + myUsername + ((loginScreenCursorPos == 0) & (loopCycle % 40 < 20) ? "@yel@|" : ""), j);
			j += 15;
			chatTextDrawingArea.method389(true, c / 2 - 88, 0xffffff, "Password: " + TextClass.passwordAsterisks(myPassword) + ((loginScreenCursorPos == 1) & (loopCycle % 40 < 20) ? "@yel@|" : ""), j);
			j += 15;
			if(!flag)
			{
				int i1 = c / 2 - 80;
				int l1 = c1 / 2 + 50;
				aBackground_967.method361(i1 - 73, l1 - 20);
				chatTextDrawingArea.method382(0xffffff, i1, "Login", l1 + 5, true);
				i1 = c / 2 + 80;
				aBackground_967.method361(i1 - 73, l1 - 20);
				chatTextDrawingArea.method382(0xffffff, i1, "Cancel", l1 + 5, true);
			}
		}
		if(loginScreenState == 3)
		{
						chatTextDrawingArea.method382(0xffff00, c / 2, "Create a free account", c1 / 2 - 60, true);
			int k = c1 / 2 - 35;
			chatTextDrawingArea.method382(0xffffff, c / 2, "To create a new account you need to", k, true);
			k += 15;
			chatTextDrawingArea.method382(0xffffff, c / 2, "click on cancel, and press the existing", k, true);
			k += 15;
			chatTextDrawingArea.method382(0xffffff, c / 2, "user button, and just log in with any username", k, true);
			k += 15;
			chatTextDrawingArea.method382(0xffffff, c / 2, "and password that is not already being used!", k, true);
			k += 15;
			int j1 = c / 2;
			int i2 = c1 / 2 + 50;
			aBackground_967.method361(j1 - 73, i2 - 20);
			chatTextDrawingArea.method382(0xffffff, j1, "Cancel", i2 + 5, true);
		}
		aRSImageProducer_1109.drawGraphics(171, super.graphics, 202);
		if(welcomeScreenRaised)
		{
			welcomeScreenRaised = false;
			aRSImageProducer_1107.drawGraphics(0, super.graphics, 128);
			aRSImageProducer_1108.drawGraphics(371, super.graphics, 202);
			aRSImageProducer_1112.drawGraphics(265, super.graphics, 0);
			aRSImageProducer_1113.drawGraphics(265, super.graphics, 562);
			aRSImageProducer_1114.drawGraphics(171, super.graphics, 128);
			aRSImageProducer_1115.drawGraphics(171, super.graphics, 562);
		}
	}