// ================
// BATTLEZONE SHELL
//
// By Pandemic studios and William "Commando" Powell.  Originally created by Pandemic Studios and later modified by William Powell to take advantage of several features introduced in the 1.3 patch.  Page layout buttons improved by GSH.
// Changes
//  Addedd a toggle for the TLI
// ================
//
// Mission-specific interface. Top-level entry must be named
// "ExtraOptions"
//

CreateControl("ExtraOptions2", "WINDOW")
{
	ColorGroup("MAGENTA");
	Geometry("RIGHT", "TOP");
	Position(-40, 120);
	Size(540, 800);
	BorderSize(20);
	BevelSize(10);
	TabSize(220, 20);
	Title("ST Options");
	TitleFont("SMALL");
	Style("RIGHTTAB", "OUTLINE");

	CreateControl("RecyListWindow", "WINDOW")
	{
		ColorGroup("MAGENTA");
		Position(10, 50); // (5, 285);
		Size(520, 116);
		Style("INERT"); //  "TRANSPARENT"
		Geometry("LEFT", "TOP");
		BorderSize(20);
		BevelSize(10);
		TabSize(280, 20);
		Title("Starting Recycler");
		TitleFont("SMALL");
		Style("RIGHTTAB", "OUTLINE");

		CreateControl("RecyList", "LISTBOX")
		{
			ColorGroup("LISTBOX");
			Geometry("TOP", "LEFT");
			Position(0, 0);
			Size(520, 120);
			CellSize(500, 20);
			BorderSize(10);
			BevelSize(6);
			Style("VSLIDER");
			Font("TINY");
			Cursor("Highlight");
			UseVar("network.session.svar5");
			// Contents of this list filled in automatically from code [NetCommands.cpp]
		}
	}

	// Rebuild the strategy02.dll if you want more vehicle types!

	CreateControl("RecDescButton", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		JustifyText("CENTER");
		Position(306, 200);
		Size(200, 18);
		BorderSize(6);
		BevelSize(6);
		Font("TINY");
		Text("Recycler Info");
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		NotifyParent("Button::Press", "RecDescButton");
	}

	OnEvent("RecDescButton")
	{
		Exec("RecDescFFA_x2_0.cfg");
		FadeIn("|RecDescPage");
	}

// Required control: gotta be able to get out of here.
	CreateControl("CloseExtras", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "BOTTOM");
			Position(0, 0);
			Size(260, 18);
			BorderSize(6);
			BevelSize(6);
			Style("ROLLOVER", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("Server options");
			NotifyParent("Button::Press", "CloseExtra");
		}

	OnEvent("CloseExtra")
		{
			Cmd("network.session.closeextras");
			
		}	

	CreateControl("PagesLabel", "STATIC")
	{
		Geometry("LEFT", "BOTTOM");
		Position(280, 0);
		Size(120, 18);
		Font("TINY");
		Text("More Pages:");
		JustifyText("left");
		Style("TRANSPARENT");
	}

	CreateControl("OpenExtraOptions", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("BOTTOM", "LEFT");
		Position(420, 0);
		Size(40, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		Font("SMALL");
		Text("1");
		NotifyParent("Button::Press", "OpenExtraOptions");			
	}	
	OnEvent("OpenExtraOptions")
	{
		FadeOut("|ExtraOptions2");
		FadeIn("|ExtraOptions");
	}

}

