// ================
// BATTLEZONE SHELL
// ================

//
// CREATE THE NAME DIALOG
//
CreateControl("SingleArchive", "WINDOW")
{

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

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

	CreateControl("ArchiveWindow", "WINDOW")
	{
		Geometry("HCENTRE", "VCENTRE");
		ColorGroup("MAGENTA");
		Position(8, 10);
		Size(650, 810);
		BorderSize(25);
		BevelSize(13);
		TabSize(375, 25);
		Style("LEFTTAB", "OUTLINE");
		Title("Mission Archive");
		TitleFont("MEDIUM");

		CreateControl("List", "LISTBOX")
		{
			ColorGroup("LISTBOX");
			Style("VSLIDER");
			Geometry("LEFT", "TOP");
			Position(0, 0);
			Size(650, 798);
			CellSize(625, 28);
			BorderSize(13);
			BevelSize(8);
			Font("SMALL");
			Cursor("Highlight");
			UseVar("shell.single.archnum");
		}

	}

	//
	// create the load button
	//
	CreateControl("Load", "BUTTON")
	{
		ColorGroup("MAGENTA");
		Position(1300, 50);
		Size(238, 0);
		BorderSize(25);
		BevelSize(13);
		Font("SMALL");
		JustifyText("CENTER");
		Text("Load");
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		NotifyParent("Button::Press", "Load");
	}	

	//
	// create the cancel button
	//
	CreateControl("Cancel", "BUTTON")
	{
		ColorGroup("MAGENTA");
		Position(50, 50);
		Size(238, 0);
		BorderSize(25);
		BevelSize(13);
		Font("SMALL");
		JustifyText("CENTER");
		Text("Back");
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		NotifyParent("Button::Press", "Cancel");

	}	

	//
	// handle the Launch event
	//
	OnEvent("Load")
	{
		Cmd("shell.single.archreturn");
		FadeOut("|SingleArchive");
		FadeIn("|ShellSingle");
	}	

	//
	// handle the Cancel event
	//
	OnEvent("Cancel")
	{
		FadeOut("|SingleArchive");
		FadeIn("|ShellSingle");
	}

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


