// =================================
// BATTLEZONE EDITOR CAMERA CONTROLS
// =================================

//
// CREATE THE LICENSE WINDOW
//
CreateControl("WarningDupfiles", "STATIC")
{
	ColorGroup("BACKGROUND");
	Geom("PARENTWIDTH", "PARENTHEIGHT");
	Style("MODAL");

	CreateControl("Window", "STATIC")
	{
		Geom("HCENTRE", "VCENTRE");
		Pos(0, 13);
		Size(1000, 375);
		Style("MODAL", "TABROOT", "OUTLINE");
		BorderSize(25);
		BevelSize(13);
		TabSize(500, 25);
		TitleFont("MEDIUM");
		Title("Warning: Duplicate files");

		//
		// create the text display
		//
		CreateControl("Text", "LISTBOX")
		{
			ColorGroup("BACKGROUND");
			Pos(0, 0);
			Size(1000, 300);
			CellSize(963, 25);
			BorderSize(13);
			BevelSize(8);
			SliderPadding(5);
			Font("SMALL");
			Style("INERT", "NOSELECTION", "VSLIDER");
			ItemConfig()
			{
				Style("TRANSPARENT");
			}
			//			FillFromFile("bzshell_multi_warn_player.txt");
		}

		//
		// create the ok button
		//
		CreateControl("OK", "BUTTON")
		{
			ColorGroup("LISTBOX");
			Geom("HCENTRE", "BOTTOM");
			Pos(13, -12);
			Size(125, 25);
			BorderSize(13);
			BevelSize(8);
			Font("MEDIUM");
			Text("OK");
			Style("ROLLOVER");
			NotifyParent("Button::Press", "OK");
		}

		// handle the ok event
		OnEvent("OK")
		{
			FadeOut("|WarningDupfiles");
		}
	}
}
