// ================
// BATTLEZONE SHELL
// ================
Exec("bzshell_cpcred1_x2_0.cfg");
//
// CREATE THE NAME DIALOG
//
CreateControl("FeCredits", "WINDOW")
{

	// inherit root window's dimensions
	Geometry("PARENTWIDTH", "PARENTHEIGHT");

	// set window style
	Style("TRANSPARENT");

	//
	// create the Cancel button
	//

	CreateControl("Cancel", "BUTTON")
	{
		ColorGroup("MAGENTA");
		Position(40, 920);
		Size(110, 0);
		BorderSize(18);
		BevelSize(8);
		Font("SMALL");
		JustifyText("CENTER");
		Text("Main");
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		NotifyParent("Button::Press", "Main");

	}	
	
	CreateControl("Cpcred1", "BUTTON")
	{
		ColorGroup("MAGENTA");
		Position(1120, 920);
		Size(110, 0);
		BorderSize(18);
		BevelSize(8);
		Font("SMALL");
		JustifyText("CENTER");
		Text("Next");
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		NotifyParent("Button::Press", "Cpcred1");

	}	
	
	OnEvent("Cpcred1")
	{
		FadeOut("|FeCredits");
		FadeIn("|FeCredits1");
	}

	//
	// handle the Cancel event
	//
	OnEvent("Main")
	{
		FadeOut("|FeCredits");
		FadeIn("|ShellMain");
	}

	OnEvent("Control::Activate")
	{
		cmd("shell.background fe_credits1.tga");
	}

}


