// ================
// Battlezone II Shell File -- Page 2
// ================

//
// 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("MPI Options");
	TitleFont("SMALL");
	Style("RIGHTTAB", "OUTLINE");
	
	CreateControl("RecyListWindow", "WINDOW")
	{
		ColorGroup("MAGENTA");
		Position(10, 50);
		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]
		}
	}

	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("RecDescMPI_x2_0.cfg");
		FadeIn("|RecDescPage");
	}

	CreateControl("StartingForce", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 240);
		Size(250, 18);
		Font("SMALL");
		Text("Starting Force:");
		JustifyText("left");
		Style("TRANSPARENT");
	}

	CreateControl("StartForce0", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(240, 240);
		Size(60, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("None");
		UseVar("network.session.ivar7");
		Value(0);
		NotifyParent("Button::Press", "SetStartForce0");
	}

	CreateControl("StartForce1", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(320, 240);
		Size(60, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("Small");
		UseVar("network.session.ivar7");
		Value(275);
		NotifyParent("Button::Press", "SetStartForce1");
	}

	CreateControl("StartForce2", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(400, 240);
		Size(60, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("Large");
		UseVar("network.session.ivar7");
		Value(3158835);
		NotifyParent("Button::Press", "SetStartForce2");
	}

	CreateControl("StartForce3", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(480, 240);
		Size(60, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("Huge");
		UseVar("network.session.ivar7");
		Value(16777215);
		NotifyParent("Button::Press", "SetStartForce3");
	}
	
	CreateControl("VehicleListWindow", "WINDOW")
	{
		ColorGroup("MAGENTA");
		Position(10, 320);
		Size(520, 398);
		Style("INERT"); //  "TRANSPARENT"
		Geometry("LEFT", "TOP");
		BorderSize(20);
		BevelSize(10);
		TabSize(280, 20);
		Title("Starting Forces");
		TitleFont("SMALL");
		Style("RIGHTTAB", "OUTLINE");	
	}
	
	CreateControl("VehicleList", "CHECKLIST")
	{
		Geom("LEFT", "TOP");
		ColorGroup("LISTBOX");
		Position(10, 320);
		Size(520, 400);
		CellSize(500, 20);
		BorderSize(10);
		BevelSize(6);
		Font("SMALL");
		Style(, "VSLIDER");
		// Contents filled in from code now (MPVehicle.cpp thru NetCommands)
	}

	OnEvent("SetStartForce0")
	{
		Cmd("network.session.ivar7 0");
	}

	OnEvent("SetStartForce1")
	{
		Cmd("network.session.ivar7 3");
	}

	OnEvent("SetStartForce2")
	{
		Cmd("network.session.ivar7 51");
	}

	OnEvent("SetStartForce3")
	{
		Cmd("network.session.ivar7 -1");
	}
	CreateControl("PagesLabel", "STATIC")
	{
		Geometry("LEFT", "BOTTOM");
		Position(0, 0);
		Size(60, 18);
		Font("TINY");
		Text("Page:");
		JustifyText("left");
		Style("TRANSPARENT");
	}

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

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

	CreateControl("OpenExtraOptions", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("BOTTOM", "LEFT");
		Position(160, 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");
	}

	CreateControl("OpenExtraOptions2", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("BOTTOM", "LEFT");
		Position(220, 0);
		Size(40, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "OUTLINE", "INERT");
		Cursor("Highlight");
		Font("SMALL");
		Text("2");
	}	

	CreateControl("OpenExtraOptions3", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("BOTTOM", "LEFT");
		Position(280, 0);
		Size(40, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		Font("SMALL");
		Text("3");
		NotifyParent("Button::Press", "OpenExtraOptions3");			
	}	
	OnEvent("OpenExtraOptions3")
	{
		FadeOut("|ExtraOptions2");
		FadeIn("|ExtraOptions3");
	}
	CreateControl("OpenExtraOptions4", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("BOTTOM", "LEFT");
		Position(340, 0);
		Size(40, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		Font("SMALL");
		Text("4");
		NotifyParent("Button::Press", "OpenExtraOptions4");			
	}
	OnEvent("OpenExtraOptions4")
	{
		FadeOut("|ExtraOptions2");
		FadeIn("|ExtraOptions4");
	}
}

