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

//
// Mission-specific interface. Top-level entry must be named
// "ExtraOptions"
//
CreateControl("ExtraOptions6", "WINDOW")
{
	ColorGroup("MAGENTA");
	Geometry("RIGHT", "TOP");
	Position(-30, 90);
	Size(405, 600);
	BorderSize(15);
	BevelSize(8);
	TabSize(300, 15);
	Title("G66 3.1 MPI Options ");
	TitleFont("SMALL");
	Style("RIGHTTAB", "OUTLINE");

	CreateControl("RecyListWindow", "WINDOW")
	{
		ColorGroup("MAGENTA");
		Position(8, 38);
		Size(390, 87);
		Style("INERT"); //  "TRANSPARENT"
		Geometry("LEFT", "TOP");
		BorderSize(15);
		BevelSize(8);
		TabSize(210, 15);
		Title("Starting Recycler");
		TitleFont("SMALL");
		Style("RIGHTTAB", "OUTLINE");

		CreateControl("RecyList", "LISTBOX")
		{
			ColorGroup("LISTBOX");
			Geometry("TOP", "LEFT");
			Position(0, 0);
			Size(390, 90);
			CellSize(375, 15);
			BorderSize(8);
			BevelSize(5);
			Style("VSLIDER", "INERT");
			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(38, 0);
		Size(90, 14);
		BorderSize(5);
		BevelSize(5);
		Font("TINY");
		Text("Recycler Info");
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		NotifyParent("Button::Press", "RecDescButton");
	}

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

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

	CreateControl("StartForce0", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(180, 180);
		Size(45, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
		Cursor("Highlight");
		Font("TINY");
		Text("None");
		UseVar("network.session.ivar104");
		Value(0);
	}

	CreateControl("StartForce1", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(240, 180);
		Size(45, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
		Cursor("Highlight");
		Font("TINY");
		Text("Small");
		UseVar("network.session.ivar104");
		Value(1);
	}

	CreateControl("StartForce2", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(300, 180);
		Size(45, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
		Cursor("Highlight");
		Font("TINY");
		Text("Large");
		UseVar("network.session.ivar104");
		Value(2);
	}

	CreateControl("StartForce3", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(360, 180);
		Size(45, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
		Cursor("Highlight");
		Font("TINY");
		Text("Huge");
		UseVar("network.session.ivar104");
		Value(4);
	}
	
	CreateControl("VehicleListWindow", "WINDOW")
	{
		ColorGroup("MAGENTA");
		Position(8, 240);
		Size(390, 299);
		Style("INERT"); //  "TRANSPARENT"
		Geometry("LEFT", "TOP");
		BorderSize(15);
		BevelSize(8);
		TabSize(210, 15);
		Title("Starting Forces");
		TitleFont("SMALL");
		Style("RIGHTTAB", "OUTLINE");	
	}
	
	CreateControl("VehicleList", "CHECKLIST")
	{
		Geom("LEFT", "TOP");
		ColorGroup("LISTBOX");
		Position(8, 240);
		Size(390, 300);
		CellSize(375, 15);
		BorderSize(8);
		BevelSize(5);
		Font("SMALL");
		Style(, "VSLIDER", "INERT");
		// Contents filled in from code now (MPVehicle.cpp thru NetCommands)
	}

	CreateControl("PagesLabel", "STATIC")
	{
		Geometry("LEFT", "BOTTOM");
		Position(0, 0);
		Size(45, 14);
		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(53, 0);
      	Size(45, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
      	Text("Main");
		NotifyParent("Button::Press", "CloseExtra");
	}
	
	OnEvent("CloseExtra")
	{
		Cmd("network.session.closeextras");
	}

	CreateControl("OpenExtraOptions1", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("BOTTOM", "LEFT");
		Position(113, 0);
		Size(15, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		Font("SMALL");
		Text("1");
		NotifyParent("Button::Press", "OpenExtraOptions1");
	}
      
    OnEvent("OpenExtraOptions1")
	{
		FadeOut("|ExtraOptions6");
		FadeIn("|ExtraOptions");
		Cmd("network.session.ivar101 2"); 
	}

    CreateControl("OpenExtraOptions2", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("BOTTOM", "LEFT");
      	Position(143, 0);
      	Size(15, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		Font("SMALL");
      	Text("2");
      	NotifyParent("Button::Press", "OpenExtraOptions2");			
	}	
      
    OnEvent("OpenExtraOptions2")
	{
     	FadeOut("|ExtraOptions6");
     	FadeIn("|ExtraOptions2");
		Cmd("network.session.ivar101 4"); 
	}

	CreateControl("OpenExtraOptions3", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("BOTTOM", "LEFT");
   		Position(173, 0);
   		Size(15, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		Font("SMALL");
		Text("3");
		NotifyParent("Button::Press", "OpenExtraOptions3");			
	}	
      
	OnEvent("OpenExtraOptions3")
	{
   		FadeOut("|ExtraOptions6");
		FadeIn("|ExtraOptions3");
		Cmd("network.session.ivar101 8"); 
    }

 	CreateControl("OpenExtraOptions4", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("BOTTOM", "LEFT");
		Position(203, 0);
		Size(15, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		Font("SMALL");
		Text("4");
		NotifyParent("Button::Press", "OpenExtraOptions4");			
	}
  
	OnEvent("OpenExtraOptions4")
	{
		FadeOut("|ExtraOptions6");
		FadeIn("|ExtraOptions4");
		Cmd("network.session.ivar101 16"); 
	}

	CreateControl("OpenExtraOptions5", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("BOTTOM", "LEFT");
		Position(233, 0);
		Size(15, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		Font("SMALL");
		Text("5");
		NotifyParent("Button::Press", "OpenExtraOptions5");			
	}

	OnEvent("OpenExtraOptions5")
	{
		FadeOut("|ExtraOptions6");
		FadeIn("|ExtraOptions5");
		Cmd("network.session.ivar101 32"); 
	}

	CreateControl("OpenExtraOptions6", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("BOTTOM", "LEFT");
		Position(263, 0);
		Size(15, 14);
		BorderSize(5);
		BevelSize(5);
		Style("INERT", "OUTLINE");
		Cursor("Highlight");
		Font("SMALL");
		Text("6");
		UseVar("network.session.ivar101");
		Value(64);
	}	
}
