// ==================================================================================================================
// Battlezone II G66 3.1 MPI Options Shell File -- Page 1
// ==================================================================================================================
//
// G66 brought to you by Natty Bumppo
// These config files have been modified to their current state by William "Commando" Powell and Natty Bumppo.
// Thanks goes to GSH for creating 1.3, Natty Bumppo for creating G66, and Red Devil and Spacecomber for
// helping with testing.
// ============================

//P3 indicates an option that is related to page three.  Delete all occurences of //P3 to enable the third page.

//C preceedes all options related to the custom difficulty button.  Delete all occurences of //C and edit //G66DiffLvlX

//
// Mission-specific interface:
// Top-level entry must be named "ExtraOptions"
//
CreateControl("ExtraOptions", "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");
	
	 // G66 General Options
	CreateControl("G66GenOptions", "STATIC")
	{
		Geometry("LEFT", "TOP");
		 Position(90, 15);
		 Size(233, 14);
		 Font("SMALL");
		 Text("    General Options  ");
		JustifyText("left");
		Style("OUTLINE");
	}

	OnEvent("Control::Activate")
	{
		Cmd("network.session.ivar9 0");
	}

	// G66 Difficulty (ivar108)
	 CreateControl("G66DiffLvl", "STATIC")
	{
		 Geometry("LEFT", "TOP");
		 Position(98, 60);
		 Size(105, 14);
		Font("SMALL");
		Text("Difficulty:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("G66DiffLvl1", "BUTTON")
	{
		 ColorGroup("BLACKBLUE");
		 Geometry("LEFT", "TOP");
		Position(218, 60);
		Size(15, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
 		Font("TINY");
		Text("1");
		UseVar("network.session.ivar108");
		Value(0);
		NotifyParent("Button::Select", "DiffLvl1");
	}

	CreateControl("G66DiffLvl2", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(248, 60);
		Size(15, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("2");
		UseVar("network.session.ivar108");
		Value(1);
		NotifyParent("Button::Select", "DiffLvl2");
	}

	CreateControl("G66DiffLvl3", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(278, 60);
		Size(15, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("3");
		UseVar("network.session.ivar108");
		Value(2);
		NotifyParent("Button::Select", "DiffLvl3");
	}

	CreateControl("G66DiffLvl4", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(308, 60);
		Size(15, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("4");
		UseVar("network.session.ivar108");
		Value(4);
		NotifyParent("Button::Select", "DiffLvl4");
	}

//C	CreateControl("G66DiffLvlC", "BUTTON")
//C	{
//C		ColorGroup("BLACKBLUE");
//C		Geometry("LEFT", "TOP");
//C		Position(225, 40);
//C		Size(13, 9);
//C		BorderSize(3);
//C		BevelSize(3);
//C		Style("ROLLOVER", "OUTLINE");
//C		Cursor("Highlight");
//C		Font("TINY");
//C		Text("C");
//C		NotifyParent("Button::Press", "DiffLvlC");
//C	}

	CreateControl("G66DiffLvlX", "STATIC")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(338, 60); //(235,0)
		Size(75, 14);
		BorderSize(5);
		BevelSize(5);
		JustifyText("LEFT"); //Right if the Custom button is enabled
		Font("TINY");
		Style("TRANSPARENT");
		Cursor("Highlight");
		UseVar("network.session.svar31");
	}

	// Unit Limit Integer (ivar9)
	CreateControl("UnitLimit", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 90);
		Size(203, 14);
		Font("SMALL");
		Text("Unit Limit:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("UnitEdit", "EDIT")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(218, 90);
		Size(29, 14);
		BorderSize(5);
		BevelSize(5);
		JustifyText("RIGHT");
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		UseVar("network.session.ivar9");
	}
	
	CreateControl("PilotLifeTime", "STATIC")
	{
		ColorGroup("BlackBlue");
		Geometry("LEFT", "TOP");
		Position(0, 120);
		Size(203, 14);
		Font("SMALL");
		Text("Pilot lifespan:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("PilotLifeTime", "EDIT")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(218, 120);
		Size(29, 14);
		BorderSize(5);
		BevelSize(5);
		JustifyText("RIGHT");
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		UseVar("network.session.ivar28");
	}
	
	// Sniper Respawn Toggle (ivar16)
	CreateControl("SniperRespawn", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 150);
		Size(203, 14);
		Font("SMALL");
		Text("Respawn w/ Sniper:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("SniperRespawnOn", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(263, 150); // (145, 40)
		Size(29, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("On");
		UseVar("network.session.ivar16");
		Value(1);
	}

		CreateControl("SniperRespawnOff", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(218, 150); // (175, 40)
		Size(29, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("Off");
		UseVar("network.session.ivar16");
		Value(0);
	}

	CreateControl("TLI", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 180);
		Size(203, 14);
		Font("SMALL");
		Text("TLI:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("TLIOff", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(218, 180);
		Size(29, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("Off");
		UseVar("network.session.ivar29");
		Value(1);
	}

	CreateControl("TLIOn", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(263, 180);
		Size(29, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("On");
		UseVar("network.session.ivar29");
		Value(0);
	}

	CreateControl("WeaponLinking", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 210);
		Size(203, 14);
		Font("SMALL");
		Text("Weapon Linking:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("LinkOff", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(218, 210);
		Size(29, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("Off");
		UseVar("network.session.ivar30");
		Value(0);		 
	}

	CreateControl("LinkOn", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(263, 210);
		Size(29, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("On");
		UseVar("network.session.ivar30");
		Value(1);		
	}

	CreateControl("PointsForKill", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 240);
		Size(203, 14);
		Font("SMALL");
		Text("Points for AI kill:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("PointsForKillOn", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(263, 240);
		Size(29, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("On");
		UseVar("network.session.ivar14");
		Value(1);
	}

	CreateControl("PointsForKillOff", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(218, 240);
		Size(29, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("Off");
		UseVar("network.session.ivar14");
		Value(0);
	}

	CreateControl("KillForKill", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 270);
		Size(203, 14);
		Font("SMALL");
		Text("Kill for AI kill:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("KillForKillOn", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(263, 270);
		Size(29, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("On");
		UseVar("network.session.ivar15");
		Value(1);
	}

	CreateControl("KillForKillOff", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(218, 270);
		Size(29, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("Off");
		UseVar("network.session.ivar15");
		Value(0);
	}

	// G66 Environmental Options
	CreateControl("G66EnvOptions", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(90, 315);
		Size(233, 14);
		Font("SMALL");
		Text("Environmental Options");
		JustifyText("right");
		Style("OUTLINE");
	}

	// Eruptions Toggle (ivar115)
	CreateControl("EruptionsToggle", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 360);
		Size(203, 14);
		Font("SMALL");
		Text("Eruptions:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("EruptionsOn", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(263, 360); // (145, 60)
		Size(29, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("On");
		UseVar("network.session.ivar115");
		Value(1);
	}

	CreateControl("EruptionsOff", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(218, 360); // (175, 60)
		Size(29, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("Off");
		UseVar("network.session.ivar115");
		Value(0);
	}

	CreateControl("EruptionsInfo", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(270, 360);
		Size(128, 14);
		Font("TINY");
		Text("Map-specific");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	// Earthquake Toggle (ivar116)
	CreateControl("QuakeToggle", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 390);
		Size(203, 14);
		Font("SMALL");
		Text("Earthquakes:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("QuakeToggleOn", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(263, 390); // (145, 60)
		Size(29, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("On");
		UseVar("network.session.ivar116");
		Value(1);
	}

	CreateControl("QuakeToggleOff", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(218, 390); // (175, 60)
		Size(29, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("Off");
		UseVar("network.session.ivar116");
		Value(0);
	}

	// Random Scrap Pools (ivar123)
	CreateControl("RandomPoolToggle", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 420);
		Size(203, 14);
		Font("SMALL");
		Text("Random Pools:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("RandomPoolOn", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(263, 420); // (145, 80)
		Size(29, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("On");
		UseVar("network.session.ivar123");
		Value(1);
	}
 
	CreateControl("RandomPoolOff", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(218, 420); // (175, 60)
		Size(29, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("Off");
		UseVar("network.session.ivar123");
		Value(0);
	}
  
		// Random Scrap Fields (ivar124)
	CreateControl("RandomFieldToggle", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 450);
		Size(203, 14);
		Font("SMALL");
		Text("Random Fields:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("RandomFieldOn", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(263, 450); // (145, 80)
		Size(29, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("On");
		UseVar("network.session.ivar124");
		Value(1);
	}

	CreateControl("RandomFieldOff", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(218, 450); // (175, 60)
		Size(29, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("Off");
		UseVar("network.session.ivar124");
		Value(0);
	}



	// Random Fauna (ivar125)
	CreateControl("RandomFaunaToggle", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 480);
		Size(203, 14);
		Font("SMALL");
		Text("Random Fauna:");
		JustifyText("right");
		Style("TRANSPARENT");
	}	
	CreateControl("RandomFaunaOn", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(263, 480); // (145, 80)
		Size(29, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("On");
		UseVar("network.session.ivar125");
		Value(1);
	}
 
	CreateControl("RandomFaunaOff", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(218, 480); // (175, 60)
		Size(29, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("Off");
		UseVar("network.session.ivar125");
		Value(0);
	}

  
	CreateControl("SunTitle", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 510);
		Size(203, 15);
		Style("TRANSPARENT");
		Font("SMALL");
		JustifyText("LEFT");
		Text("Mission Start Time:");
	}

	CreateControl("SunOff", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(218, 510); // (145, 80)
		Size(29, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("Off");
		UseVar("network.session.ivar102");
		Value(0);
		NotifyParent("Button::Select", "SetSunOff");   
	}

		OnEvent("SetSunOff")
		{
			Cmd("network.session.ivar102 0"); 
			Cmd("network.session.ivar103 0"); 
		}

	CreateControl("DayStart4", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(263, 510); // (145, 80)
		Size(15, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("4");
		UseVar("network.session.ivar102");
		Value(4);
		NotifyParent("Button::Select", "DAYSTART4");   
	}

		OnEvent("DAYSTART4")
		{
			Cmd("network.session.ivar102 4"); 
		}

	CreateControl("DayStart8", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(290, 510); // (145, 80)
		Size(15, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("8");
		UseVar("network.session.ivar102");
		Value(8);
		NotifyParent("Button::Select", "DAYSTART8");   
	}

		OnEvent("DAYSTART8")
		{
			Cmd("network.session.ivar102 8"); 
		}

	CreateControl("DayStart12", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(317, 510); // (145, 80)
		Size(15, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("12");
		UseVar("network.session.ivar102");
		Value(12);
		NotifyParent("Button::Select", "DAYSTART12");   
	}

		OnEvent("DAYSTART12")
		{
			Cmd("network.session.ivar102 12"); 
		}

	CreateControl("DayStart16", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(344, 510); // (145, 80)
		Size(15, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("16");
		UseVar("network.session.ivar102");
		Value(16);
		NotifyParent("Button::Select", "DAYSTART16");   
	}

		OnEvent("DAYSTART16")
		{
			Cmd("network.session.ivar102 16"); 
		}

	CreateControl("DayStart20", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(371, 510); // (145, 80)
		Size(15, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("20");
		UseVar("network.session.ivar102");
		Value(20);
		NotifyParent("Button::Select", "DAYSTART20");   
	}

		OnEvent("DAYSTART20")
		{
			Cmd("network.session.ivar102 20"); 
		}

	CreateControl("DayStart24", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(398, 510); // (145, 80)
		Size(15, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("24");
		UseVar("network.session.ivar102");
		Value(24);
		NotifyParent("Button::Select", "DAYSTART24");   
	}

		OnEvent("DAYSTART24")
		{
			Cmd("network.session.ivar102 24"); 
		}
  
	CreateControl("SunTitle", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(29, 540);
		Size(188, 15);
		Style("TRANSPARENT");
		Font("SMALL");
		JustifyText("LEFT");
		Text("Planet Rotation:");
	}

	CreateControl("SUNSPEEDOFF", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(218, 540); // (145, 80)
		Size(29, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("Off");
		UseVar("network.session.ivar103");
		Value(0);
		NotifyParent("Button::Select", "SUNSPEEDOFF");   
	}

		OnEvent("SUNSPEEDOFF")
		{
			Cmd("network.session.ivar103 0"); 
		}

	CreateControl("SUNSPEEDSLOW", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(263, 540); // (145, 80)
		Size(15, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("1");
		UseVar("network.session.ivar103");
		Value(1);
		NotifyParent("Button::Select", "SUNSPEEDSLOW");   
	}

		OnEvent("SUNSPEEDSLOW")
		{
			Cmd("network.session.ivar103 1"); 
		}

	CreateControl("SUNSPEEDNORMAL", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(290, 540); // (145, 80)
		Size(15, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("2");
		UseVar("network.session.ivar103");
		Value(2);
		NotifyParent("Button::Select", "SUNSPEEDNORMAL");   
	}

		OnEvent("SUNSPEEDNORMAL")
		{
			Cmd("network.session.ivar103 2"); 
		}
		
	CreateControl("SUNSPEEDFAST", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(317, 540); // (145, 80)
		Size(15, 14);
		BorderSize(5);
		BevelSize(5);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("3");
		UseVar("network.session.ivar103");
		Value(4);
		NotifyParent("Button::Select", "SUNSPEEDFAST");   
	}

		OnEvent("SUNSPEEDFAST")
		{
			Cmd("network.session.ivar103 4"); 
		}

//	CreateControl("SunSlider", "SLIDER")
//	{
//		// ColorGroup("LISTBOX");
//		ColorGroup("BLACKBLUE");
//		// ColorGroup("MAGENTA");
//		Geometry("LEFT", "TOP");
//		Position(145, 360);
//		Size(50, 9);
//		BorderSize(3);
//		BevelSize(3);
//		Style("ROLLOVER", "INERT");
//		Cursor("Highlight");
//		UseVar("network.session.ivar103");
//		SetIntegerRange("network.session.ivar103", 1, 3);
//	}
//		CreateControl("SunValue", "STATIC")
//	{
//		Geometry("LEFT", "TOP");
//		Position(200, 360);
//		Size(50, 9);
//		Style("TRANSPARENT");
//		Font("TINY");
//		JustifyText("LEFT");
//		Text("%d");
//		UseVar("network.session.ivar103");
//	}
 

	OnEvent("DiffLvl1")
	{
		Cmd("network.session.ivar4 131071");
		Cmd("network.session.ivar7 -1");
		Cmd("network.session.ivar8 0");
		Cmd("network.session.ivar9 0");
//		Cmd("network.session.ivar10 1");
		Cmd("network.session.ivar16 1");
		Cmd("network.session.ivar17 3");
		Cmd("network.session.ivar18 3");
		Cmd("network.session.ivar21 1");
		Cmd("network.session.ivar30 1");
//		Cmd("network.session.svar4 MPVehicles66ia.odf");
		Cmd("network.session.svar31 Easy"); 
		Cmd("network.session.ivar102 0");
		Cmd("network.session.ivar103 0");
		Cmd("network.session.ivar104 4");
		Cmd("network.session.ivar106 1");
		Cmd("network.session.ivar107 0");
		Cmd("network.session.ivar108 0");
		Cmd("network.session.ivar109 3");
		Cmd("network.session.ivar110 3");
		Cmd("network.session.ivar111 4");
		Cmd("network.session.ivar112 1");
		Cmd("network.session.ivar113 1");
		Cmd("network.session.ivar114 0");
		Cmd("network.session.ivar115 0");
		Cmd("network.session.ivar116 0");
		Cmd("network.session.ivar117 1");
		Cmd("network.session.ivar118 1");
		Cmd("network.session.ivar119 0");
		Cmd("network.session.ivar120 1");
		Cmd("network.session.ivar121 0");
		Cmd("network.session.ivar122 0");
		Cmd("network.session.ivar123 1");
		Cmd("network.session.ivar124 1");
		Cmd("network.session.ivar125 0");
		Cmd("network.session.ivar126 0");
		Cmd("network.session.ivar127 0");
	}

	OnEvent("DiffLvl2")
	{
		Cmd("network.session.ivar4 1023");
		Cmd("network.session.ivar7 3355443");
//		Cmd("network.session.ivar8 0");
		Cmd("network.session.ivar9 0");
//		Cmd("network.session.ivar10 0");
		Cmd("network.session.ivar16 1");
		Cmd("network.session.ivar17 3");
		Cmd("network.session.ivar18 3");
		Cmd("network.session.ivar21 2");
		Cmd("network.session.ivar30 1");
//		Cmd("network.session.svar4 MPVehicles66.odf"); 
		Cmd("network.session.svar31 Normal"); 
		Cmd("network.session.ivar102 0");
		Cmd("network.session.ivar103 0");
		Cmd("network.session.ivar104 2");
		Cmd("network.session.ivar106 1");
		Cmd("network.session.ivar107 0");
		Cmd("network.session.ivar108 1");
		Cmd("network.session.ivar109 3");
		Cmd("network.session.ivar110 3");
		Cmd("network.session.ivar111 3");
		Cmd("network.session.ivar112 1");
		Cmd("network.session.ivar113 1");
		Cmd("network.session.ivar114 0");
		Cmd("network.session.ivar115 0");
		Cmd("network.session.ivar116 0");
		Cmd("network.session.ivar117 2");
		Cmd("network.session.ivar118 2");
		Cmd("network.session.ivar119 1");
		Cmd("network.session.ivar120 2");
		Cmd("network.session.ivar121 0");
		Cmd("network.session.ivar122 0");
		Cmd("network.session.ivar123 1");
		Cmd("network.session.ivar124 1");
		Cmd("network.session.ivar125 0");
		Cmd("network.session.ivar126 0");
		Cmd("network.session.ivar127 0");
	}

	OnEvent("DiffLvl3")
	{
		Cmd("network.session.ivar4 3");
		Cmd("network.session.ivar7 3");
//		Cmd("network.session.ivar8 0");
		Cmd("network.session.ivar9 0");
//		Cmd("network.session.ivar10 0");
		Cmd("network.session.ivar16 0");
		Cmd("network.session.ivar17 2");
		Cmd("network.session.ivar18 1");
		Cmd("network.session.ivar21 3");
		Cmd("network.session.ivar30 0");
//		Cmd("network.session.svar4 MPVehicles66so.odf"); 
		Cmd("network.session.svar31 Hard"); 
		Cmd("network.session.ivar102 0");
		Cmd("network.session.ivar103 0");
		Cmd("network.session.ivar104 1");
		Cmd("network.session.ivar106 1");
		Cmd("network.session.ivar107 1");
		Cmd("network.session.ivar108 2");
		Cmd("network.session.ivar109 2");
		Cmd("network.session.ivar110 2");
		Cmd("network.session.ivar111 2");
		Cmd("network.session.ivar112 0");
		Cmd("network.session.ivar113 0");
		Cmd("network.session.ivar114 0");
		Cmd("network.session.ivar115 0");
		Cmd("network.session.ivar116 0");
		Cmd("network.session.ivar117 3");
		Cmd("network.session.ivar118 3");
		Cmd("network.session.ivar119 2");
		Cmd("network.session.ivar120 3");
		Cmd("network.session.ivar121 0");
		Cmd("network.session.ivar122 1");
		Cmd("network.session.ivar123 0");
		Cmd("network.session.ivar124 0");
		Cmd("network.session.ivar125 1");
		Cmd("network.session.ivar126 1");
		Cmd("network.session.ivar127 1");
		//Cmd("network.session.svar4 MPVehicles66.odf");
		//FadeOut("|ExtraOptions");
		//Exec("bzshell_multi_g66h.cfg");
		//FadeIn ("|ExtraOptions");
	}

	OnEvent("DiffLvl4")
	{
		Cmd("network.session.ivar4 3");
		Cmd("network.session.ivar7 0");
//		Cmd("network.session.ivar8 0");
		Cmd("network.session.ivar9 0");
//		Cmd("network.session.ivar10 0");
		Cmd("network.session.ivar16 0");
		Cmd("network.session.ivar17 1");
		Cmd("network.session.ivar18 1");
		Cmd("network.session.ivar21 3");
		Cmd("network.session.ivar30 0");
//		Cmd("network.session.svar4 MPVehicles66ap.odf"); 
		Cmd("network.session.svar31 Insane"); 
		Cmd("network.session.ivar102 0");
		Cmd("network.session.ivar103 0");
		Cmd("network.session.ivar104 0");
		Cmd("network.session.ivar106 1");
		Cmd("network.session.ivar107 1");
		Cmd("network.session.ivar108 4");
		Cmd("network.session.ivar109 1");
		Cmd("network.session.ivar110 1");
		Cmd("network.session.ivar111 1");
		Cmd("network.session.ivar112 0");
		Cmd("network.session.ivar113 0");
		Cmd("network.session.ivar114 0");
		Cmd("network.session.ivar115 1");
		Cmd("network.session.ivar116 1");
		Cmd("network.session.ivar117 3");
		Cmd("network.session.ivar118 3");
		Cmd("network.session.ivar119 3");
		Cmd("network.session.ivar120 4");
		Cmd("network.session.ivar121 1");
		Cmd("network.session.ivar122 1");
		Cmd("network.session.ivar123 0");
		Cmd("network.session.ivar124 0");
		Cmd("network.session.ivar125 1");
		Cmd("network.session.ivar126 1");
		Cmd("network.session.ivar127 1");
		//Cmd("network.session.svar4 MPVehicles66so.odf");
		//FadeOut("|ExtraOptions");
		//Exec("bzshell_multi_g66i.cfg");
		//FadeIn ("|ExtraOptions");		
  }


//C	OnEvent("DiffLvlC")
//C	{
//C		Cmd("network.session.ivar8 0"); // Sync Join (0 or 1)
//C		Cmd("network.session.ivar9 0"); // Unit Limit Integer (0 to 99)
//C		Cmd("network.session.ivar10 0");// Pause Join (0 or 1)
//C		Cmd("network.session.ivar16 1"); // Sniper Respawn Toggle (0 or 1)
//C		Cmd("network.session.ivar17 3"); // HT Turret Skill Level (1 to 3)
//C		Cmd("network.session.ivar18 1"); // AI skill for human non-turrets
//C		Cmd("network.session.ivar20 10"); // Multiworld Frequency
//C		Cmd("network.session.ivar21 1"); // CPU Turret Skill Level (1 to 3)
//C		Cmd("network.session.ivar30 0"); // Weapon Linking - 0 or 1
//C		Cmd("network.session.ivar105 2"); // Shell varb
//C		Cmd("network.session.ivar106 1"); // Neutral Snipes
//C		Cmd("network.session.ivar107 1"); // Fighting Pilots
//C		Cmd("network.session.ivar108 4"); // G66 Difficulty Level (1 to 4)
//C		Cmd("network.session.ivar109 3"); // HT Combat Unit Skill Level (1 to 3)
//C		Cmd("network.session.ivar110 3"); // HT Non-Combat Skill Level (1 to 3)
//C		Cmd("network.session.ivar111 1"); // HT Starting Force (1 to 3)
//C		Cmd("network.session.ivar112 0"); // Combat Unit Skill Progression (1 on, 0 off)
//C		Cmd("network.session.ivar113 0"); // HT Crate Drops Option (1 on, 0 off)
//C		Cmd("network.session.ivar114 0"); // Early AIP Option (0 to 4)
//C		Cmd("network.session.ivar115 0"); // Eruptions Option (1 on, 0 off)
//C		Cmd("network.session.ivar116 1"); // Earthquakes (1 on, 0 off)
//C		Cmd("network.session.ivar117 3"); // CPU Combat Unit Skill Level (1 to 3)
//C		Cmd("network.session.ivar118 3"); // CPU Non-Combat Unit Skill Level (1 to 3)
//C		Cmd("network.session.ivar119 3"); // CPU Starting Force (1 to 3)
//C		Cmd("network.session.ivar120 3"); // CPU Scrap Boost (1 to 4)
//C		Cmd("network.session.ivar121 0"); // G66 CPU advanced weapons option
//C		Cmd("network.session.ivar122 0"); // CPU Mine Fields Option (1 on, 0 off)
//C		Cmd("network.session.ivar123 0"); // Random Scrap Pools Option (1 on, 0 off)
//C		Cmd("network.session.ivar124 0"); // Random Scrap Fields Option (1 on, 0 off)
//C		Cmd("network.session.ivar125 0"); // Random Fauna Option (1 on, 0 off)
//C		Cmd("network.session.ivar126 1"); // CPU Surprise Attacks (1 on, 0 off)
//C		Cmd("network.session.ivar127 1"); // CPU Rogue Attacks  (1 on, 0 off)
//C		Cmd("network.session.civar4 1"); // AI Taunts
//C	}

		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("INERT", "OUTLINE");
			Cursor("Highlight");
			Font("SMALL");
			Text("1");
			UseVar("network.session.ivar101");
			Value(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("|ExtraOptions");
			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("|ExtraOptions");
			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("|ExtraOptions");
			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("|ExtraOptions");
			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("ROLLOVER", "OUTLINE");
      		Cursor("Highlight");
      		Font("SMALL");
      		Text("6");
      		NotifyParent("Button::Press", "OpenExtraOptions6");			
      	}
      
      	OnEvent("OpenExtraOptions6")
      	{
      		FadeOut("|ExtraOptions");
      		FadeIn("|ExtraOptions6");
			Cmd("network.session.ivar101 64"); 
      	}
}

	Exec("bzshell_multi_g662_x1_5.cfg");
	Exec("bzshell_multi_g663_x1_5.cfg");
	Exec("bzshell_multi_g664_x1_5.cfg");
	Exec("bzshell_multi_g665_x1_5.cfg");
	Exec("bzshell_multi_g666_x1_5.cfg");
