// ========================
// BATTLEZONE CLASSIC SHELL - Load/Save Game Menu
// Made by General BlackDragon
// ========================

//
// CREATE SHELL LOGIN PAGE
//
CreateControl("EscapeLoad", "WINDOW")
{
	ColorGroup("WHITE");
	Geometry("HCENTRE", "VCENTRE");
	Style("INERT");
	Size(4096, 3072);
	Image("file_load.tga", 0, 0, 640, 480);

	CreateControl("BZCTag", "STATIC")
	{
		ColorGroup("WHITE");
		Geometry("HCENTRE", "TOP");
		Position(0, 0);
		Size(819, 205);
		Image("BZCTag.tga", 0, 0, 128, 32);
	}

	CreateControl("Title", "STATIC")
	{
		ColorGroup("LISTBOX");
		Position(0, -128);
		Size(1600, 64);
		Style("TRANSPARENT");
		Font("MEDIUM");
		JustifyText("CENTER");
		Text("Saved Games");
	}
	//
	// create the saved game list box
	//
	CreateControl("List", "LISTBOX")
	{
		ColorGroup("BZCBUTTONHOLLOW");
		Geometry("LEFT", "TOP");
		Position(384, 499);
		Size(998, 1920);
		CellSize(998, 192);
		CellPadding(0);
		//Style("VSLIDER");
		Font("SMALL");
		UseVar("mission.filename");
		Cursor("Highlight");
		ItemConfig()
		{
			Style("ROLLOVER", "OUTLINE");
			JustifyText("CENTER");
			Image("ButtonLoadBG.tga", 0, 0, 156, 30);
		}
	}

	CreateControl("Edit", "EDIT")
	{
		ColorGroup("LISTBOX");
		Geometry("LEFT", "TOP");
		Position(2470, 1357);
		Size(1280, 64);
		Style("ROLLOVER", "OUTLINE");
		BorderSize(5);
		BevelSize(3);
		Font("MEDIUM");
		UseVar("mission.fileedit");
		Cursor("Highlight");
	}

	CreateControl("ButtonTLBG", "STATIC")
	{
		ColorGroup("WHITE");
		Geometry("LEFT", "TOP");
		Position(0, 0);
		Size(986, 218);
		Image("ButtonTLBG.tga", 0, 2, 308, 70);
	}
	CreateControl("Back", "BUTTON")
	{
		ColorGroup("BZCBUTTON");
		Geometry("LEFT", "TOP");
		Position(0, 0);
		Size(986, 218);
		Style("ROLLOVER");
		Cursor("Highlight");
		Image("ButtonTL.tga", 0, 1, 154, 35);
		NotifyParent("Button::Press", "Back");

		CreateControl("Text", "STATIC")
		{
			Geometry("RIGHT", "TOP");
			Position(-115, 58);
			Size(576, 77);
			ColorGroup("BZCBUTTON");
			Font("SMALL");
			Style("INERT");
			JustifyText("CENTER");
			Text("BACK");
		}

	}

	OnEvent("Back")
	{
		Deactivate("|EscapeLoad");
		Activate("|EscapePanel");
	}

	OnEvent("Control::Activate")
	{
	}

	OnEvent("Control::Deactivate")
	{
	}
}

CreateControl("EscapeLoadDelete", "WINDOW")
{
	Geometry("HCENTRE", "VCENTRE");
	Size(4096, 3072);
	Style("INERT", "TRANSPARENT");

	CreateControl("DeleteBG", "STATIC")
	{
		ColorGroup("WHITE");
		Geometry("LEFT", "TOP");
		Position(3149, 1664);
		Size(525, 166);
		Style("INERT");
		Image("ButtonLBG.tga", 0, 0, 82, 26);
	}
	CreateControl("Delete", "BUTTON")
	{
		ColorGroup("BZCBUTTON");
		Geometry("LEFT", "TOP");
		Position(3149, 1664);
		Size(525, 166);
		Style("ROLLOVER");
		Cursor("Highlight");
		Image("ButtonL.tga", 0, 0, 82, 26);
		NotifyParent("Button::Press", "Delete");

		CreateControl("Text", "STATIC")
		{
			Geometry("LEFT", "TOP");
			Position(0, 45);
			Size(525, 77);
			ColorGroup("BZCBUTTON");
			Font("SMALL");
			Style("INERT");
			JustifyText("CENTER");
			Text("Delete");
		}
	}

	OnEvent("Delete")
	{
		Cmd("mission.delete");
	}
}

CreateControl("EscapeLoadSave", "WINDOW")
{
	Geometry("HCENTRE", "VCENTRE");
	Size(4096, 3072);
	Style("INERT", "TRANSPARENT");

	CreateControl("Text", "STATIC")
	{
		ColorGroup("LISTBOX");
		Position(2438, 1146);
		Size(1344, 58);
		Style("TRANSPARENT");
		Font("SMALL");
		JustifyText("CENTER");
		Text("Enter the game description");
	}

	//
	// create the save button
	//
	CreateControl("SaveBG", "STATIC")
	{
		ColorGroup("WHITE");
		Geometry("LEFT", "TOP");
		Position(2560, 1664);
		Size(525, 166);
		Style("INERT");
		Image("ButtonLBG.tga", 0, 0, 82, 26);
	}
	CreateControl("Save", "BUTTON")
	{
		ColorGroup("BZCBUTTON");
		Geometry("LEFT", "TOP");
		Position(2560, 1664);
		Size(525, 166);
		Style("ROLLOVER");
		Cursor("Highlight");
		Image("ButtonL.tga", 0, 0, 82, 26);
		NotifyParent("Button::Press", "Save");

		CreateControl("Text", "STATIC")
		{
			Geometry("LEFT", "TOP");
			Position(0, 45);
			Size(525, 77);
			ColorGroup("BZCBUTTON");
			Font("SMALL");
			Style("INERT");
			JustifyText("CENTER");
			Text("Save");
		}
	}

	OnEvent("Save")
	{
		Cmd("mission.save");
	}
}

CreateControl("EscapeLoadLoad", "WINDOW")
{
	Geometry("HCENTRE", "VCENTRE");
	Size(4096, 3072);
	Style("INERT", "TRANSPARENT");

	CreateControl("LoadBG", "STATIC")
	{
		ColorGroup("WHITE");
		Geometry("LEFT", "TOP");
		Position(2560, 1664);
		Size(525, 166);
		Style("INERT");
		Image("ButtonLBG.tga", 0, 0, 82, 26);
	}
	CreateControl("Load", "BUTTON")
	{
		ColorGroup("BZCBUTTON");
		Geometry("LEFT", "TOP");
		Position(2560, 1664);
		Size(525, 166);
		Style("ROLLOVER");
		Cursor("Highlight");
		Image("ButtonL.tga", 0, 0, 82, 26);
		NotifyParent("Button::Press", "Load");

		CreateControl("Text", "STATIC")
		{
			Geometry("LEFT", "TOP");
			Position(0, 45);
			Size(525, 77);
			ColorGroup("BZCBUTTON");
			Font("SMALL");
			Style("INERT");
			JustifyText("CENTER");
			Text("Load");
		}
	}

	OnEvent("Load")
	{
		Cmd("mission.load");
	}
}
