// ==================================================================================================================
// Battlezone II G66 3.1 MPI Options Shell File -- Page 4
// ==================================================================================================================

CreateControl("ExtraOptions4", "WINDOW")
{
	ColorGroup("MAGENTA");
	Geometry("RIGHT", "TOP");
	Position(-50, 150);
	Size(675, 1000);
	BorderSize(25);
	BevelSize(13);
	TabSize(500, 25);
	Title("G66 3.1 MPI Options");
	TitleFont("SMALL");
	Style("RIGHTTAB", "OUTLINE");

		// G66 Starting Ships Options
		CreateControl("G66StartingShips", "STATIC")
		{
			Geometry("LEFT", "TOP");
			Position(150, 25);
			Size(388, 23);
			Font("SMALL");
			Text("Starting Ships     ");
			JustifyText("right");
			Style("OUTLINE");
		}

		// AllowedVehicle Toggle 
		CreateControl("StartingUnitsStaticLight", "STATIC")
		{
			Geometry("LEFT", "TOP");
			Position(0, 100);
			Size(338, 23);
			Font("SMALL");
			Text("Light Units:");
			JustifyText("right");
			Style("TRANSPARENT");
		}

		CreateControl("LISDF", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(363, 100); // (145, 40)
			Size(125, 23);
			BorderSize(8);
			BevelSize(8);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("ISDF");
			UseVar("network.session.ivar105");
			Value(2);
			NotifyParent("Button::Select", "LISDF");   
			   	
		}

		OnEvent("LISDF")
		{
			Cmd("network.session.svar4 MPVehicles66il.odf"); 
//			UseVar("G66.mpvehicle.button");
			Cmd("network.session.ivar105 2");
			Cmd("network.session.ivar4 262143");
		}

		CreateControl("LSCION", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(513, 100); // (145, 40)
			Size(125, 23);
			BorderSize(8);
			BevelSize(8);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("Scion");
			UseVar("network.session.ivar105");
			Value(4);
			NotifyParent("Button::Select", "LSCION");     
		}

		OnEvent("LSCION")
		{
			Cmd("network.session.svar4 MPVehicles66fl.odf"); 
//			Cmd("network.session.ivar4 4194303");
			Cmd("network.session.ivar4 1048575");
			Cmd("network.session.ivar105 4");
		}

		// AllowedVehicle Toggle 
		CreateControl("StartingUnitsStaticHeavy", "STATIC")
		{
			Geometry("LEFT", "TOP");
			Position(0, 150);
			Size(338, 23);
			Font("SMALL");
			Text("Heavy Units:");
			JustifyText("right");
			Style("TRANSPARENT");
		}

		CreateControl("HISDF", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(363, 150); // (145, 60)
			Size(125, 23);
			BorderSize(8);
			BevelSize(8);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("ISDF");
			UseVar("network.session.ivar105");
			Value(8);
			NotifyParent("Button::Select", "HISDF"); 
		}

		OnEvent("HISDF")
		{
			Cmd("network.session.svar4 MPVehicles66ih.odf"); 
			Cmd("network.session.ivar4 63");
			Cmd("network.session.ivar105 8");
		}

		CreateControl("HSCION", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(513, 150); // (145, 60)
			Size(125, 23);
			BorderSize(8);
			BevelSize(8);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("Scion");
			UseVar("network.session.ivar105");
			Value(16);
			NotifyParent("Button::Select", "HSCION");     
		}

		OnEvent("HSCION")
		{
			Cmd("network.session.svar4 MPVehicles66fh.odf"); 
			Cmd("network.session.ivar4 3");
			Cmd("network.session.ivar105 16");
		}

		// AllowedVehicle Toggle 
		CreateControl("StartingUnitsStaticAdvanced", "STATIC")
		{
			Geometry("LEFT", "TOP");
			Position(0, 200);
			Size(338, 23);
			Font("SMALL");
			Text("Advanced Units:");
			JustifyText("right");
			Style("TRANSPARENT");
		}
		CreateControl("AISDF", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(363, 200); // (145, 60)
			Size(125, 23);
			BorderSize(8);
			BevelSize(8);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("ISDF");
			UseVar("network.session.ivar105");
			Value(32);
			NotifyParent("Button::Select", "AISDF"); 
		}

		OnEvent("AISDF")
		{
			Cmd("network.session.svar4 MPVehicles66ia.odf");
//			Cmd("network.session.ivar4 4194303");
			Cmd("network.session.ivar4 131071");
			Cmd("network.session.ivar105 32");
		}

		CreateControl("ASCION", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(513, 200); // (145, 60)
			Size(125, 23);
			BorderSize(8);
			BevelSize(8);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("Scion");
			UseVar("network.session.ivar105");
			Value(64);
			NotifyParent("Button::Select", "ASCION");     
		}

		OnEvent("ASCION")
		{
			Cmd("network.session.svar4 MPVehicles66fa.odf"); 
			Cmd("network.session.ivar4 255");
			Cmd("network.session.ivar105 64");
		}

		// AllowedVehicle Toggle 
		CreateControl("StartingUnitsStaticInsane", "STATIC")
		{
			Geometry("LEFT", "TOP");
			Position(0, 250);
			Size(338, 23);
			Font("SMALL");
			Text("Insane Units:");
			JustifyText("right");
			Style("TRANSPARENT");
		}

		CreateControl("IISDF", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(363, 250); // (145, 60)
			Size(125, 23);
			BorderSize(8);
			BevelSize(8);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("ISDF");
			UseVar("network.session.ivar105");
			Value(128);
			NotifyParent("Button::Select", "IISDF"); 
		}

		OnEvent("IISDF")
		{
			Cmd("network.session.svar4 MPVehicles66ii.odf"); 
			Cmd("network.session.ivar4 511");
			Cmd("network.session.ivar105 128");
		}

		CreateControl("ISCION", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(513, 250); // (145, 60)
			Size(125, 23);
			BorderSize(8);
			BevelSize(8);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("Scion");
			UseVar("network.session.ivar105");
			Value(256);
			NotifyParent("Button::Select", "ISCION");     
		}

		OnEvent("ISCION")
		{
			Cmd("network.session.svar4 MPVehicles66fi.odf"); 
			Cmd("network.session.ivar4 31");
			Cmd("network.session.ivar105 256");
		}

		CreateControl("Default13", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(363, 300); // (145, 60)
			Size(275, 23);
			BorderSize(8);
			BevelSize(8);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("Default BzII");
			UseVar("network.session.ivar105");
			Value(512);
			NotifyParent("Button::Select", "Default13");     
		}

		OnEvent("Default13")
		{
			Cmd("network.session.svar4 mpvehicles66.odf"); 
			Cmd("network.session.ivar4 255");
			//Cmd("network.session.ivar4 131327");
			Cmd("network.session.ivar105 512");
		}

		CreateControl("Default13c", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(363, 350); // (145, 60)
			Size(275, 23);
			BorderSize(8);
			BevelSize(8);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("Default BzII + Interceptor");
			UseVar("network.session.ivar105");
			Value(1024);
			NotifyParent("Button::Select", "Default13c");     
		}

		OnEvent("Default13c")
		{
			Cmd("network.session.svar4 mpvehicles66.odf"); 
			//Cmd("network.session.ivar4 255");
			Cmd("network.session.ivar4 131327");
			Cmd("network.session.ivar105 1024");
		}


		CreateControl("Default", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(363, 400); // (145, 60)
			Size(275, 23);
			BorderSize(8);
			BevelSize(8);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("Default G66");
			UseVar("network.session.ivar105");
			Value(2048);
			NotifyParent("Button::Select", "Default"); 
		}

		OnEvent("Default")
		{
			Cmd("network.session.svar4 MPVehicles66.odf"); 
			Cmd("network.session.ivar4 1023");
			Cmd("network.session.ivar105 2048");
		}		

		CreateControl("Scouts", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(363, 450); // (145, 60)
			Size(275, 23);
			BorderSize(8);
			BevelSize(8);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("Default Scouts");
			UseVar("network.session.ivar105");
			Value(4096);
			NotifyParent("Button::Select", "Scouts");     
		}

		OnEvent("Scouts")
		{
			Cmd("network.session.svar4 MPVehicles66so.odf"); 
			Cmd("network.session.ivar4 3");
			Cmd("network.session.ivar105 4096");
		}

		CreateControl("Pilots", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(363, 500); // (145, 60)
			Size(275, 23);
			BorderSize(8);
			BevelSize(8);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("Pilots Only");
			UseVar("network.session.ivar105");
			Value(8192);
			NotifyParent("Button::Select", "Pilots");     
		}

		OnEvent("Pilots")
		{
			Cmd("network.session.svar4 MPVehicles66ap.odf"); 
			Cmd("network.session.ivar4 3");
			Cmd("network.session.ivar105 8192");
		}

      	CreateControl("PagesLabel", "STATIC")
      	{
      		Geometry("LEFT", "BOTTOM");
      		Position(0, 0);
      		Size(75, 23);
      		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(88, 0);
      		Size(75, 23);
      		BorderSize(8);
      		BevelSize(8);
      		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(188, 0);
      		Size(25, 23);
      		BorderSize(8);
      		BevelSize(8);
      		Style("ROLLOVER", "OUTLINE");
      		Cursor("Highlight");
      		Font("SMALL");
      		Text("1");
      		NotifyParent("Button::Press", "OpenExtraOptions1");
      	}
      
      	OnEvent("OpenExtraOptions1")
      	{
      		FadeOut("|ExtraOptions4");
      		FadeIn("|ExtraOptions");
			Cmd("network.session.ivar101 2"); 
      	}

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

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

	
		CreateControl("OpenExtraOptions4", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("BOTTOM", "LEFT");
			Position(338, 0);
			Size(25, 23);
			BorderSize(8);
			BevelSize(8);
			Style("INERT", "OUTLINE");
			Cursor("Highlight");
			Font("SMALL");
			Text("4");
			UseVar("network.session.ivar101");
			Value(16);
		}

		CreateControl("OpenExtraOptions5", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("BOTTOM", "LEFT");
			Position(388, 0);
			Size(25, 23);
			BorderSize(8);
			BevelSize(8);
			Style("ROLLOVER", "OUTLINE");
			Cursor("Highlight");
			Font("SMALL");
			Text("5");
			NotifyParent("Button::Press", "OpenExtraOptions5");			
		}
	
		OnEvent("OpenExtraOptions5")
		{
			FadeOut("|ExtraOptions4");
			FadeIn("|ExtraOptions5");
			Cmd("network.session.ivar101 32"); 
		}

 	CreateControl("OpenExtraOptions6", "BUTTON")
      	{
      		ColorGroup("BLACKBLUE");
      		Geometry("BOTTOM", "LEFT");
      		Position(438, 0);
      		Size(25, 23);
      		BorderSize(8);
      		BevelSize(8);
      		Style("ROLLOVER", "OUTLINE");
      		Cursor("Highlight");
      		Font("SMALL");
      		Text("6");
      		NotifyParent("Button::Press", "OpenExtraOptions6");			
      	}
      
      	OnEvent("OpenExtraOptions6")
      	{
      		FadeOut("|ExtraOptions4");
      		FadeIn("|ExtraOptions6");
			Cmd("network.session.ivar101 64"); 
      	}
}
