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

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

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

	// set window style
	Style("TRANSPARENT");
	CreateControl("BriefingWindow", "WINDOW")
	{
		Geometry("HCENTRE", "VCENTRE");
		ColorGroup("MAGENTA");
		Position(0, 23);
		Size(540, 453);
		BorderSize(15);
		BevelSize(8);
		TabSize(225, 15);
		Style("LEFTTAB", "OUTLINE");
		Title("Full Briefing");
		TitleFont("MEDIUM");

		CreateControl("List", "LISTBOX")
		{
			Style("VSLIDER");
			Geometry("LEFT", "TOP");
			Position(0, 0);
			Size(540, 446);
			CellSize(510, 17);
			SliderPadding(10);
			Font("SMALL");
			Style("INERT", "NOSELECTION", "TRANSPARENT");
			ItemConfig()
			{
				Style("TRANSPARENT");
			}
		}
	}

	//
	// create the Cancel button
	//
	CreateControl("Okay", "BUTTON")
	{
		ColorGroup("MAGENTA");
		Position(780, 30);
		Size(143, 0);
		BorderSize(15);
		BevelSize(8);
		Font("SMALL");
		JustifyText("CENTER");
		Text("Launch");
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		NotifyParent("Button::Press", "Launch");

	}	

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

	}	

	//
	// handle the Launch event
	//
	OnEvent("Launch")
	{
		cmd("shell.stopSound mire22_3.wav");
		Cmd("shell.single.launch");
	//	Cmd("shell.single.archreturn");
	}	

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

	OnEvent("Control::Activate")
	{
		Cmd("shell.single.loadbrief");
		cmd("shell.background singlep_briefing.tga");
	}
}
