// ================
// BATTLEZONE SHELL
// ================

//
// CREATE SHELL INSTANT ACTION PAGE
//
ConfigureInterface()
{
	// BlueGray interface elements
	DefineColorGroup("BLUEGRAY")
	{
		// unselected, unhighlit, enabled
		Foreground(0, 255, 255, 255, 255);
		Background(0, 49, 79, 79, 127);	// gray
		  Gradient(0, 49, 79, 79, 127);	// gray

		// unselected, highlit, enabled
		Foreground(1, 255, 255, 255, 255);	// white
		Background(1, 0, 127, 255, 127);	// blue
		  Gradient(1, 0, 63, 127, 127);

		// selected, unhighlit, enabled
		Foreground(2, 255, 255, 255, 255);
		Background(2, 0, 127, 255, 127);	//blue
		  Gradient(2, 0, 63, 127, 127);

		  // selected, highlit, enabled
		Foreground(3, 255, 255, 255, 255);
		Background(3, 127, 191, 255, 127);	// turquoise
		  Gradient(3, 63, 95, 127, 127);

		// unselected, unhighlit, disabled
		Foreground(4, 191, 191, 191, 255);
		Background(4, 127, 127, 127, 127);
		  Gradient(4, 63, 63, 63, 127);

		// selected, unhighlit, disabled
		Foreground(5, 255, 255, 255, 255);
		Background(5, 191, 191, 191, 127);
		  Gradient(5, 95, 95, 95, 127);

		// unselected, highlit, disabled
		Foreground(6, 255, 255, 255, 255);
		Background(6, 191, 191, 191, 127);
		  Gradient(6, 95, 95, 95, 127);

		// selected, highlit, disabled
		Foreground(7, 255, 255, 255, 255);
		Background(7, 255, 255, 255, 127);
		  Gradient(7, 127, 127, 127, 127);
	}
}

CreateControl("ShellInstant", "WINDOW")
{
	// inherit root window's dimensions
	Geometry("PARENTWIDTH", "PARENTHEIGHT");

	// set window style
	Style("TRANSPARENT", "INERT");

	CreateControl("Instant", "WINDOW")
	{
		Geometry("HCENTRE", "VCENTRE");
		ColorGroup("BLUEGRAY");
		Position(0, 0);
		Size(1250, 625);
		BorderSize(25);
		BevelSize(13);
		TabSize(375, 25);
		Style("RIGHTTAB", "OUTLINE");
		Projector(1);
		Title("G66 3.1");
		TitleFont("MEDIUM");

		CreateControl("List", "ListBox")
		{
			ColorGroup("BLUEGRAY");
			Geometry("LEFT", "TOP");
			Position(0, 0);
			Size(388, 320);
			CellSize(363, 25);
			BorderSize(13);
			BevelSize(8);
			Font("TINY");
			NotifyParent("LISTBOX::DblClick", "Launch");
			UseVar("shell.instant.name");
			Value("dunesi.bzn");
			NotifyParent("LISTBOX::SelChange", "FillData");
			Style("VSLIDER");
			Cursor("Highlight");
		}

		OnEvent("FillData")
		{
			cmd("shell.instant.loadData");
		}

		CreateControl("Map", "STATIC")
		{
			ColorGroup("WHITE");
			Geometry("RIGHT", "TOP");
			Position(0, 0);
			Size(320, 320);
		}

		CreateControl("MapSpecs", "LISTBOX")
		{
			Geometry("LEFT", "TOP");
			ColorGroup("BACKGROUND");
			Size(475, 320);
			CellSize(450, 25);
			Position(425, 0);
			BorderSize(13);
			BevelSize(8);
			Font("TINY");
			Style("NOSELECTION");
			Style("VSLIDER");
			ItemConfig()
			{
				Style("TRANSPARENT");
			}
		}


		//
		// create the difficulty title
		//
		CreateControl("Difficulty", "STATIC")
		{
			Geometry("LEFT", "TOP");
			Position(0, 338);
			Size(250, 25);
			Style("TRANSPARENT");
			Font("MEDIUM");
			JustifyText("LEFT");
			Text("Difficulty");
		}
	
		// // G66 Difficulty (ivar108)
		 // CreateControl("G66DiffLvl", "STATIC")
		// {
			 // Geometry("LEFT", "TOP");
			 // Position(260, 25);
			 // Size(70, 9);
			// Font("SMALL");
			// Text("Difficulty:");
			// JustifyText("right");
			// Style("TRANSPARENT");
		// }

		// CreateControl("G66DiffLvl1", "BUTTON")
		// {
			 // ColorGroup("BLACKBLUE");
			 // Geometry("LEFT", "TOP");
			// Position(5, 155);
			// Size(13, 9);
			// BorderSize(3);
			// BevelSize(3);
			// Style("ROLLOVER", "RADIO", "OUTLINE");
			// Cursor("Highlight");
			// Font("TINY");
			// Text("1");
			// UseVar("options.instant.int108");
			// Value(0);
			// NotifyParent("Button::Select", "DiffLvl1");
		// }

		// CreateControl("G66DiffLvl2", "BUTTON")
		// {
			// ColorGroup("BLACKBLUE");
			// Geometry("LEFT", "TOP");
			// Position(25, 155);
			// Size(13, 9);
			// BorderSize(3);
			// BevelSize(3);
			// Style("ROLLOVER", "RADIO", "OUTLINE");
			// Cursor("Highlight");
			// Font("TINY");
			// Text("2");
			// UseVar("options.instant.int108");
			// Value(1);
			// NotifyParent("Button::Select", "DiffLvl2");
		// }

		// CreateControl("G66DiffLvl3", "BUTTON")
		// {
			// ColorGroup("BLACKBLUE");
			// Geometry("LEFT", "TOP");
			// Position(50, 155);
			// Size(13, 9);
			// BorderSize(3);
			// BevelSize(3);
			// Style("ROLLOVER", "RADIO", "OUTLINE");
			// Cursor("Highlight");
			// Font("TINY");
			// Text("3");
			// UseVar("options.instant.int108");
			// Value(2);
			// NotifyParent("Button::Select", "DiffLvl3");
		// }

		// CreateControl("G66DiffLvl4", "BUTTON")
		// {
			// ColorGroup("BLACKBLUE");
			// Geometry("LEFT", "TOP");
			// Position(75, 155);
			// Size(13, 9);
			// BorderSize(3);
			// BevelSize(3);
			// Style("ROLLOVER", "RADIO", "OUTLINE");
			// Cursor("Highlight");
			// Font("TINY");
			// Text("4");
			// UseVar("options.instant.int108");
			// Value(3);
			// 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(100, 155); //(235,0)
			// Size(50, 9);
			// BorderSize(3);
			// BevelSize(3);
			// JustifyText("LEFT"); //Right if the Custom button is enabled
			// Font("TINY");
			// Style("TRANSPARENT");
			// Cursor("Highlight");
			// UseVar("options.instant.string14");
		// }

		//
		// create easy difficulty button
		//
		CreateControl("Easy", "BUTTON")
		{
			ColorGroup("BLUEGRAY");
			Geometry("LEFT", "TOP");
			Position(13, 388);
			Size(100, 25);
			BorderSize(13);
			BevelSize(8);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Font("SMALL");
			Text("Easy");
			Cursor("Highlight");
			UseVar("shell.instant.difficulty");
			Value(0);
			NotifyParent("Button::Select", "DiffLvl1");
		}

		//
		// create the medium difficulty button
		//
		CreateControl("Normal", "BUTTON")
		{
			ColorGroup("BLUEGRAY");
			Geometry("LEFT", "TOP");
			Position(150, 388);
			Size(125, 25);
			BorderSize(13);
			BevelSize(8);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Font("SMALL");
			Text("Normal");
			Cursor("Highlight");
			UseVar("shell.instant.difficulty");
			Value(1);
			NotifyParent("Button::Select", "DiffLvl2");
		}

		//
		// create the hard difficulty button
		//
		CreateControl("Hard", "BUTTON")
		{
			ColorGroup("BLUEGRAY");
			Geometry("LEFT", "TOP");
			Position(313, 388);
			Size(113, 25);
			BorderSize(13);
			BevelSize(8);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Font("SMALL");
			Text("Hard");
			Cursor("Highlight");
			UseVar("shell.instant.difficulty");
			Value(2);
			NotifyParent("Button::Select", "DiffLvl3");
		}

		//
		// create the insane difficulty button
		//
		CreateControl("Insane", "BUTTON")
		{
			ColorGroup("BLUEGRAY");
			Geometry("LEFT", "TOP");
			Position(463, 388);
			Size(113, 25);
			BorderSize(13);
			BevelSize(8);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Font("SMALL");
			Text("Insane");
			Cursor("Highlight");
			UseVar("shell.instant.difficulty");
			Value(4);
			NotifyParent("Button::Select", "DiffLvl4");
		}

		// CreateControl("G66DiffLvlX", "STATIC")
		// {
			// ColorGroup("BLACKBLUE");
			// Geometry("LEFT", "TOP");
			// Position(240, 155); //(235,0)
			// Size(50, 9);
			// BorderSize(3);
			// BevelSize(3);
			// JustifyText("LEFT"); //Right if the Custom button is enabled
			// Font("TINY");
			// Style("TRANSPARENT");
			// Cursor("Highlight");
			// UseVar("options.instant.string14");
		// }

		OnEvent("DiffLvl1")
		{
			Cmd("options.instant.bool0 1"); 	// Player Respawn toggle (on)
			Cmd("options.instant.bool1 1"); 	// points for killing AI toggle (on)
			Cmd("options.instant.bool2 1"); 	// kill for killing AI toggle (on)
			Cmd("options.instant.bool3 1"); 	// keep sniper rifle on pilot respawn toggle (on)
			Cmd("options.instant.bool4 1"); 	// Default G66 human combat skill progression toggle (on)
			Cmd("options.instant.bool5 1"); 	// Default G66 crate drops toggle (on)
			Cmd("options.instant.bool6 1"); 	// Eruptions toggle (off)
			Cmd("options.instant.bool7 0"); 	// Earthquakes toggle (off)
			Cmd("options.instant.bool8 0"); 	// Default G66 CPU advanced weapons toggle (off)
			Cmd("options.instant.bool9 0"); 	// Default G66 CPU mine fields toggle (off)
			Cmd("options.instant.bool10 1"); 	// G66 Random Scrap Pools toggle (off)
			Cmd("options.instant.bool11 1"); 	// G66 Random Scrap Fields toggle (off)
			Cmd("options.instant.bool12 0"); 	// G66 Random Fauna toggle (off)
			Cmd("options.instant.bool13 0"); 	// G66 Surprise Attacks toggle (off)
			Cmd("options.instant.bool14 0"); 	// G66 Rogue Attacks toggle (off)
			Cmd("options.instant.bool15 1"); 	// G66 Neutral Snipes toggle (off)
			Cmd("options.instant.bool16 0");  	// G66 Juggernaut toggle (off)
			Cmd("options.instant.bool17 0");  	// G66 Fighting Pilots toggle (off)
			Cmd("options.instant.bool18 1");  	// TLI toggle (off)
			Cmd("options.instant.bool19 1");  	// Weapons Linking toggle (off)
			Cmd("options.instant.bool20 1");  	// Human Reinforcements toggle (off)

			Cmd("options.instant.int0 0");		// Kill limit, 0 is unlimited
			Cmd("options.instant.int1 0");		// Time limit, 0 is unlimited
			Cmd("options.instant.int2 0");		// unit limit, 0 is unlimited	
			Cmd("options.instant.int3 3");		// Default AI skill for human turrets
			Cmd("options.instant.int4 4");		// Default AI skill for human non-turrets
			Cmd("options.instant.int5 1");		// Default CPU AI skill for turrets
			Cmd("options.instant.int6 1");		// Default CPU AI skill for non-turrets.
			Cmd("options.instant.int7 1023");	// Bitfields saying which vehicles out of mpvehicles66*.odf are allowable. 3 = both scouts
			Cmd("options.instant.int8 3");		// Default scrap boost for humans
			Cmd("options.instant.int9 0");		// Default scrap boost for CPU
//	Cmd("options.instant.int10 0"); 	// Default G66 Difficulty Level Button
			Cmd("shell.instant.difficulty 0"); 	// Default G66 Difficulty Level
			Cmd("options.instant.int12 3"); 	// Default G66 human combat unit skill
			Cmd("options.instant.int13 3"); 	// Default G66 human non-combat unit skill
			Cmd("shell.instant.playerforce 4"); 	// Default G66 human starting force
			Cmd("options.instant.int15 0"); 	// EarlyAIP Option (0..4)
			Cmd("options.instant.int16 1"); 	// Default G66 CPU combat unit skill
			Cmd("options.instant.int17 1"); 	// Default G66 CPU non-combat unit skill
			Cmd("shell.instant.computerforce 0"); 	// Default G66 CPU starting force
//			Cmd("options.instant.int19 0"); 	// Default G66 CPU scrap boost
			Cmd("options.instant.int20 0"); 	// Default G66 Sun Rotation Speed
			Cmd("options.instant.int21 0"); 	// Default G66 Time of Day
			Cmd("options.instant.int22 180"); 	// Default G66 Pilot Lifetime
//			Cmd("options.instant.int23 1");		// Default G66 Extra Options button
			Cmd("options.instant.int24 16");		// Default Starting Ships Button
			Cmd("options.instant.int25 32");	// Default Starting Vehicles List 
			Cmd("options.instant.int26 4");		// Default Human Extra Starting Forces Button
		}

		OnEvent("DiffLvl2")
		{
			Cmd("options.instant.bool0 1"); 	// Player Respawn toggle (on)
			Cmd("options.instant.bool1 1"); 	// points for killing AI toggle (on)
			Cmd("options.instant.bool2 1"); 	// kill for killing AI toggle (on)
			Cmd("options.instant.bool3 1"); 	// keep sniper rifle on pilot respawn toggle (on)
			Cmd("options.instant.bool4 1"); 	// Default G66 human combat skill progression toggle (on)
			Cmd("options.instant.bool5 1"); 	// Default G66 crate drops toggle (on)
			Cmd("options.instant.bool6 1"); 	// Eruptions toggle (off)
			Cmd("options.instant.bool7 0"); 	// Earthquakes toggle (off)
			Cmd("options.instant.bool8 0"); 	// Default G66 CPU advanced weapons toggle (off)
			Cmd("options.instant.bool9 0"); 	// Default G66 CPU mine fields toggle (off)
			Cmd("options.instant.bool10 0"); 	// G66 Random Scrap Pools toggle (off)
			Cmd("options.instant.bool11 1"); 	// G66 Random Scrap Fields toggle (off)
			Cmd("options.instant.bool12 0"); 	// G66 Random Fauna toggle (off)
			Cmd("options.instant.bool13 0"); 	// G66 Surprise Attacks toggle (off)
			Cmd("options.instant.bool14 0"); 	// G66 Rogue Attacks toggle (off)
			Cmd("options.instant.bool15 1"); 	// G66 Neutral Snipes toggle (off)
			Cmd("options.instant.bool16 0");  	// G66 Juggernaut toggle (off)
			Cmd("options.instant.bool17 0");  	// G66 Fighting Pilots toggle (off)
			Cmd("options.instant.bool18 1");  	// TLI toggle (off)
			Cmd("options.instant.bool19 0");  	// Weapons Linking toggle (off)
			Cmd("options.instant.bool20 1");  	// Human Reinforcements toggle (off)

			Cmd("options.instant.int0 0");		// Kill limit, 0 is unlimited
			Cmd("options.instant.int1 0");		// Time limit, 0 is unlimited
			Cmd("options.instant.int2 0");		// unit limit, 0 is unlimited	
			Cmd("options.instant.int3 2");		// Default AI skill for human turrets
			Cmd("options.instant.int4 2");		// Default AI skill for human non-turrets
			Cmd("options.instant.int5 2");		// Default CPU AI skill for turrets
			Cmd("options.instant.int6 2");		// Default CPU AI skill for non-turrets.
			Cmd("options.instant.int7 1023");	// Bitfields saying which vehicles out of mpvehicles66*.odf are allowable. 3 = both scouts
			Cmd("options.instant.int8 2");		// Default scrap boost for humans
			Cmd("options.instant.int9 1");		// Default scrap boost for CPU
//	Cmd("options.instant.int10 4"); 	// Default G66 Difficulty Level Button
			Cmd("shell.instant.difficulty 1"); 	// Default G66 Difficulty Level
			Cmd("options.instant.int12 2"); 	// Default G66 human combat unit skill
			Cmd("options.instant.int13 2"); 	// Default G66 human non-combat unit skill
			Cmd("shell.instant.playerforce 1"); 	// Default G66 human starting force
			Cmd("options.instant.int15 0"); 	// EarlyAIP Option (0..4)
			Cmd("options.instant.int16 2"); 	// Default G66 CPU combat unit skill
			Cmd("options.instant.int17 2"); 	// Default G66 CPU non-combat unit skill
			Cmd("shell.instant.computerforce 1"); 	// Default G66 CPU starting force
//			Cmd("options.instant.int19 1"); 	// Default G66 CPU scrap boost
			Cmd("options.instant.int20 1"); 	// Default G66 Planet Rotation Speed
			Cmd("options.instant.int21 2"); 	// Default G66 Time of Day
			Cmd("options.instant.int22 180"); 	// Default G66 Pilot Lifetime
//			Cmd("options.instant.int23 1");		// Default G66 Extra Options button
			Cmd("options.instant.int24 1024");		// Default Starting Ships Button
			Cmd("options.instant.int25 2048");	// Default Starting Vehicles List 
			Cmd("options.instant.int26 2");		// Default Human Extra Starting Forces Button

			Cmd("options.instant.string4 MPVehicles66ap.odf"); 
//			Cmd("options.instant.string13 Insane"); 
		}

		OnEvent("DiffLvl3")
		{
			Cmd("options.instant.bool0 1"); 	// Player Respawn toggle (on)
			Cmd("options.instant.bool1 1"); 	// points for killing AI toggle (on)
			Cmd("options.instant.bool2 1"); 	// kill for killing AI toggle (on)
			Cmd("options.instant.bool3 1"); 	// keep sniper rifle on pilot respawn toggle (on)
			Cmd("options.instant.bool4 1"); 	// Default G66 human combat skill progression toggle (on)
			Cmd("options.instant.bool5 0"); 	// Default G66 crate drops toggle (on)
			Cmd("options.instant.bool6 1"); 	// Eruptions toggle (off)
			Cmd("options.instant.bool7 1"); 	// Earthquakes toggle (off)
			Cmd("options.instant.bool8 1"); 	// Default G66 CPU advanced weapons toggle (off)
			Cmd("options.instant.bool9 1"); 	// Default G66 CPU mine fields toggle (off)
			Cmd("options.instant.bool10 0"); 	// G66 Random Scrap Pools toggle (off)
			Cmd("options.instant.bool11 1"); 	// G66 Random Scrap Fields toggle (off)
			Cmd("options.instant.bool12 1"); 	// G66 Random Fauna toggle (off)
			Cmd("options.instant.bool13 1"); 	// G66 Surprise Attacks toggle (off)
			Cmd("options.instant.bool14 0"); 	// G66 Rogue Attacks toggle (off)
			Cmd("options.instant.bool15 0"); 	// G66 Neutral Snipes toggle (off)
			Cmd("options.instant.bool16 1");  	// G66 Juggernaut toggle (off)
			Cmd("options.instant.bool17 0");  	// G66 Fighting Pilots toggle (off)
			Cmd("options.instant.bool18 1");  	// TLI toggle (off)
			Cmd("options.instant.bool19 0");  	// Weapons Linking toggle (off)
			Cmd("options.instant.bool20 0");  	// Human Reinforcements toggle (off)

			Cmd("options.instant.int0 0");		// Kill limit, 0 is unlimited
			Cmd("options.instant.int1 0");		// Time limit, 0 is unlimited
			Cmd("options.instant.int2 0");		// unit limit, 0 is unlimited	
			Cmd("options.instant.int3 2");		// Default AI skill for human turrets
			Cmd("options.instant.int4 2");		// Default AI skill for human non-turrets
			Cmd("options.instant.int5 2");		// Default CPU AI skill for turrets
			Cmd("options.instant.int6 2");		// Default CPU AI skill for non-turrets.
			Cmd("options.instant.int7 1023");	// Bitfields saying which vehicles out of mpvehicles66*.odf are allowable. 3 = both scouts
			Cmd("options.instant.int8 1");		// Default scrap boost for humans
			Cmd("options.instant.int9 2");		// Default scrap boost for CPU
//	Cmd("options.instant.int10 4"); 	// Default G66 Difficulty Level Button
			Cmd("shell.instant.difficulty 2"); 	// Default G66 Difficulty Level
			Cmd("options.instant.int12 2"); 	// Default G66 human combat unit skill
			Cmd("options.instant.int13 2"); 	// Default G66 human non-combat unit skill
			Cmd("shell.instant.playerforce 1"); 	// Default G66 human starting force
			Cmd("options.instant.int15 0"); 	// EarlyAIP Option (0..4)
			Cmd("options.instant.int16 2"); 	// Default G66 CPU combat unit skill
			Cmd("options.instant.int17 2"); 	// Default G66 CPU non-combat unit skill
			Cmd("shell.instant.computerforce 2"); 	// Default G66 CPU starting force
//			Cmd("options.instant.int19 1"); 	// Default G66 CPU scrap boost
			Cmd("options.instant.int20 1"); 	// Default G66 Planet Rotation Speed
			Cmd("options.instant.int21 8"); 	// Default G66 Time of Day
			Cmd("options.instant.int22 180"); 	// Default G66 Pilot Lifetime
//			Cmd("options.instant.int23 1");		// Default G66 Extra Options button
			Cmd("options.instant.int24 2048");		// Default Starting Ships Button
			Cmd("options.instant.int25 4096");	// Default Starting Vehicles List 
			Cmd("options.instant.int26 1");		// Default Human Extra Starting Forces Button

			Cmd("options.instant.string4 MPVehicles66ap.odf"); 
//			Cmd("options.instant.string13 Insane"); 
			//FadeOut("|ExtraOptions");
			//Exec("bzshell_instant_xo_g66h.cfg");
			//FadeIn ("|ExtraOptions");
		}

		OnEvent("DiffLvl4")
		{
			Cmd("options.instant.bool0 1"); 	// Player Respawn toggle (on)
			Cmd("options.instant.bool1 1"); 	// points for killing AI toggle (on)
			Cmd("options.instant.bool2 1"); 	// kill for killing AI toggle (on)
			Cmd("options.instant.bool3 0"); 	// keep sniper rifle on pilot respawn toggle (on)
			Cmd("options.instant.bool4 0"); 	// Default G66 human combat skill progression toggle (on)
			Cmd("options.instant.bool5 0"); 	// Default G66 crate drops toggle (on)
			Cmd("options.instant.bool6 1"); 	// Eruptions toggle (off)
			Cmd("options.instant.bool7 1"); 	// Earthquakes toggle (off)
			Cmd("options.instant.bool8 1"); 	// Default G66 CPU advanced weapons toggle (off)
			Cmd("options.instant.bool9 1"); 	// Default G66 CPU mine fields toggle (off)
			Cmd("options.instant.bool10 0"); 	// G66 Random Scrap Pools toggle (off)
			Cmd("options.instant.bool11 0"); 	// G66 Random Scrap Fields toggle (off)
			Cmd("options.instant.bool12 1"); 	// G66 Random Fauna toggle (off)
			Cmd("options.instant.bool13 1"); 	// G66 Surprise Attacks toggle (off)
			Cmd("options.instant.bool14 1"); 	// G66 Rogue Attacks toggle (off)
			Cmd("options.instant.bool15 0"); 	// G66 Neutral Snipes toggle (off)
			Cmd("options.instant.bool16 1");  	// G66 Juggernaut toggle (off)
			Cmd("options.instant.bool17 1");  	// G66 Fighting Pilots toggle (off)
			Cmd("options.instant.bool18 0");  	// TLI toggle (off)
			Cmd("options.instant.bool19 0");  	// Weapons Linking toggle (off)
			Cmd("options.instant.bool20 0");  	// Human Reinforcements toggle (off)

			Cmd("options.instant.int0 0");		// Kill limit, 0 is unlimited
			Cmd("options.instant.int1 0");		// Time limit, 0 is unlimited
			Cmd("options.instant.int2 30");		// unit limit, 0 is unlimited	
			Cmd("options.instant.int3 1");		// Default AI skill for human turrets
			Cmd("options.instant.int4 0");		// Default AI skill for human non-turrets
			Cmd("options.instant.int5 3");		// Default CPU AI skill for turrets
			Cmd("options.instant.int6 3");		// Default CPU AI skill for non-turrets.
			Cmd("options.instant.int7 1023");	// Bitfields saying which vehicles out of mpvehicles66*.odf are allowable. 3 = both scouts
			Cmd("options.instant.int8 0");		// Default scrap boost for humans
			Cmd("options.instant.int9 3");		// Default scrap boost for CPU
//	Cmd("options.instant.int10 4"); 	// Default G66 Difficulty Level Button
			Cmd("shell.instant.difficulty 4"); 	// Default G66 Difficulty Level
			Cmd("options.instant.int12 1"); 	// Default G66 human combat unit skill
			Cmd("options.instant.int13 1"); 	// Default G66 human non-combat unit skill
			Cmd("shell.instant.playerforce 0"); 	// Default G66 human starting force
			Cmd("options.instant.int15 0"); 	// EarlyAIP Option (0..4)
			Cmd("options.instant.int16 3"); 	// Default G66 CPU combat unit skill
			Cmd("options.instant.int17 3"); 	// Default G66 CPU non-combat unit skill
			Cmd("shell.instant.computerforce 4"); 	// Default G66 CPU starting force
//			Cmd("options.instant.int19 1"); 	// Default G66 CPU scrap boost
			Cmd("options.instant.int20 0"); 	// Default G66 Planet Rotation Speed
			Cmd("options.instant.int21 8"); 	// Default G66 Time of Day
			Cmd("options.instant.int22 180"); 	// Default G66 Pilot Lifetime
//			Cmd("options.instant.int23 1");		// Default G66 Extra Options button
			Cmd("options.instant.int24 4096");		// Default Starting Ships Button
			Cmd("options.instant.int25 8192");	// Default Starting Vehicles List 
			Cmd("options.instant.int26 0");		// Default Human Extra Starting Forces Button

			Cmd("options.instant.string4 MPVehicles66ap.odf"); 
//			Cmd("options.instant.string13 Insane"); 
			//FadeOut("|ExtraOptions");
			//Exec("bzshell_instant_xo_g66i.cfg");
			//FadeIn ("|ExtraOptions");		
	  }
	
		//
		// create the computer force title
		//
		CreateControl("Computer", "STATIC")
		{
			Geometry("LEFT", "TOP");
			Position(0, 438);
			Size(375, 25);
			Style("TRANSPARENT");
			Font("MEDIUM");
			JustifyText("LEFT");
			Text("Computer Force");
		}

		//
		// create the small force button
		//
		CreateControl("Small", "BUTTON")
		{
			ColorGroup("BLUEGRAY");

			Geometry("LEFT", "TOP");
			Position(13, 488);
			Size(100, 25);
			BorderSize(13);
			BevelSize(8);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Font("SMALL");
			Text("Small");
			Cursor("Highlight");
			UseVar("shell.instant.computerforce");
			Value(0);
		}

		//
		// create the medium force button
		//
		CreateControl("Medium", "BUTTON")
		{
			ColorGroup("BLUEGRAY");

			Geometry("LEFT", "TOP");
			Position(150, 488);
			Size(125, 25);
			BorderSize(13);
			BevelSize(8);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Font("SMALL");
			Text("Medium");
			Cursor("Highlight");
			UseVar("shell.instant.computerforce");
			Value(1);
		}

		//
		// create the large force button
		//
		CreateControl("Large", "BUTTON")
		{
			ColorGroup("BLUEGRAY");

			Geometry("LEFT", "TOP");
			Position(313, 488);
			Size(113, 25);
			BorderSize(13);
			BevelSize(8);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Font("SMALL");
			Text("Large");
			Cursor("Highlight");
			UseVar("shell.instant.computerforce");
			Value(2);
		}

		//
		// create the huge force button
		//
		CreateControl("Huge", "BUTTON")
		{
			ColorGroup("BLUEGRAY");
			Geometry("LEFT", "TOP");
			Position(463, 488);
			Size(113, 25);
			BorderSize(13);
			BevelSize(8);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Font("SMALL");
			Text("Huge");
			Cursor("Highlight");
			UseVar("shell.instant.computerforce");
			Value(4);
		}

		//
		// create player force title
		//
		CreateControl("Player", "STATIC")
		{
			Geometry("LEFT", "TOP");
			Position(0, 538);
			Size(300, 25);
			Style("TRANSPARENT");
			Font("MEDIUM");
			JustifyText("LEFT");
			Text("Player Force");
		}

		//
		// create the small force button
		//
		CreateControl("Small", "BUTTON")
		{
			ColorGroup("BLUEGRAY");

			Geometry("LEFT", "TOP");
			Position(13, 588);
			Size(100, 25);
			BorderSize(13);
			BevelSize(8);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Font("SMALL");
			Text("Small");
			Cursor("Highlight");
			UseVar("shell.instant.playerforce");
			Value(0);
		}

		//
		// create the medium force button
		//
		CreateControl("Medium", "BUTTON")
		{
			ColorGroup("BLUEGRAY");

			Geometry("LEFT", "TOP");
			Position(150, 588);
			Size(125, 25);
			BorderSize(13);
			BevelSize(8);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Font("SMALL");
			Text("Medium");
			Cursor("Highlight");
			UseVar("shell.instant.playerforce");
			Value(1);
		}

		//
		// create the large force button
		//
		CreateControl("Large", "BUTTON")
		{
			ColorGroup("BLUEGRAY");

			Geometry("LEFT", "TOP");
			Position(313, 588);
			Size(113, 25);
			BorderSize(13);
			BevelSize(8);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Font("SMALL");
			Text("Large");
			Cursor("Highlight");
			UseVar("shell.instant.playerforce");
			Value(2);
		}

		//
		// create the huge force button
		//
		CreateControl("Huge", "BUTTON")
		{
			ColorGroup("BLUEGRAY");
			Geometry("LEFT", "TOP");
			Position(463, 588);
			Size(113, 25);
			BorderSize(13);
			BevelSize(8);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Font("SMALL");
			Text("Huge");
			Cursor("Highlight");
			// UseVar("options.instant.bool11", "OUTLINE");
			// Value(4);
			// UseVar("options.instant.int108");
			// Value(3);
			// NotifyParent("Button::Select", "DiffLvl4");
			UseVar("shell.instant.playerforce");
			Value(4);
		}

		// This window (Aware13Items) is enabled if the Instant INF doesn't
		// have 'Aware_v13 1");' in it.
		CreateControl("Aware12Items", "STATIC")
		{
			Geometry("Right", "TOP");
			Position(0, 338);
			Size(625, 300);
			Style("TRANSPARENT");

			//
			// create the mission mode title
			//
			CreateControl("Mode", "STATIC")
			{
				Geometry("LEFT", "TOP");
				Position(0, 0);
				Size(375, 25);
				Style("TRANSPARENT");
				Font("MEDIUM");
				JustifyText("LEFT");
				Text("Game Mode");
			}

			//
			// create the thug button
			//
			CreateControl("Thug", "BUTTON")
			{
				ColorGroup("BLUEGRAY");

				Geometry("LEFT", "TOP");
				Position(13, 50);
				Size(263, 25);
				BorderSize(13);
				BevelSize(8);
				Style("ROLLOVER", "RADIO", "OUTLINE");
				Font("SMALL");
				Text("Pilot");
				Cursor("Highlight");
				UseVar("shell.instant.goaltype");
				Value(0);
			}

			//
			// create the commander button
			//
			CreateControl("Commander", "BUTTON")
			{
				ColorGroup("BLUEGRAY");

				Geometry("LEFT", "TOP");
				Position(313, 50);
				Size(263, 25);
				BorderSize(13);
				BevelSize(8);
				Style("ROLLOVER", "RADIO", "OUTLINE");
				Font("SMALL");
				Text("Commander");
				Cursor("Highlight");
				UseVar("shell.instant.goaltype");
				Value(1);
			}

		} // End of Aware12Items

		// This window (Aware13Items) is disabled if the Instant INF doesn't
		// have 'Aware_v13 1");' in it.
		CreateControl("Aware13Items", "STATIC")
		{
			Geometry("Right", "TOP");
			Position(0, 338);
			Size(625, 300);
			Style("TRANSPARENT");

			CreateControl("MyRaceTitle", "STATIC")
			{
				Geometry("LEFT", "TOP");
				Position(0, 0);
				Size(375, 25);
				Style("TRANSPARENT");
				Font("MEDIUM");
				JustifyText("LEFT");
				Text("Human's Race:");
			}

			CreateControl("MyRaceFixed", "STATIC")
			{
				Geometry("LEFT", "TOP");
				Position(0, 50);
				Size(375, 25);
				Style("TRANSPARENT");
				Font("MEDIUM");
				JustifyText("LEFT");
				Text("");
			}

			CreateControl("MyRaceList", "LISTBOX")
			{
				ColorGroup("BLUEGRAY");	
				//				ColorGroup("BLACKBLUE");
				Geometry("LEFT", "TOP");
				Position(0, 50); // (0, 0)
				Size(275, 138); // (125, 60) // (120, 55)
				CellSize(250, 28); // (115, 10) //(115, 11)
				BorderSize(13); // Was nonexistent
				BevelSize(5); // Was nonexistent
				Style("OUTLINE");
				Cursor("Highlight");
				Font("TINY");
				Style("VSLIDER");
				UseVar("options.instant.myraceidx");
			}

			CreateControl("CPURaceTitle", "STATIC")
			{
				Geometry("LEFT", "TOP");
				Position(313, 0);
				Size(375, 25);
				Style("TRANSPARENT");
				Font("MEDIUM");
				JustifyText("LEFT");
				Text("Enemy's Race:");
			}

			CreateControl("CPURaceFixed", "STATIC")
			{
				Geometry("LEFT", "TOP");
				Position(313, 50);
				Size(375, 25);
				Style("TRANSPARENT");
				Font("MEDIUM");
				JustifyText("LEFT");
				Text("");
			}

			CreateControl("CPURaceList", "LISTBOX")
			{
				ColorGroup("BLUEGRAY");
				//				ColorGroup("BLACKBLUE");
				Geometry("LEFT", "TOP");
				Position(313, 50); // (0, 0)
				Size(275, 138); // (125, 60) // (120, 55)
				CellSize(250, 28); // (115, 10) //(115, 11)
				BorderSize(13); // Was nonexistent
				BevelSize(5); // Was nonexistent
				Style("OUTLINE");
				Cursor("Highlight");
				Font("TINY");
				Style("VSLIDER");
				UseVar("options.instant.hisraceidx");
			}

			CreateControl("ExtraOptions", "BUTTON")
			{
//				ColorGroup("BlackBlue");
								ColorGroup("BLUEGRAY");
				//				ColorGroup("BLUEGRAY");

				Geometry("RIGHT", "TOP");
				Position(0, 250);
				Size(150, 25);
				BorderSize(13);
				BevelSize(8);
				Style("ROLLOVER", "OUTLINE");
				Font("SMALL");
				Text("Options");
				Cursor("Highlight");
				NotifyParent("Button::Press", "OpenExtras");
			}

			//
			// handle the "open extras" event
			//
			OnEvent("OpenExtras")
			{
				cmd("shell.instant.openextras");
				Cmd("options.instant.int23 1"); 
			}
		} // end of Aware13Items

	} // Instant window


	//
	// create the "launch" button
	//
	CreateControl("Launch", "BUTTON")
	{
		ColorGroup("BLUEGRAY");

		Geometry("RIGHT", "TOP");
		Position(-50, 50);
		Size(238, 0);
		BorderSize(25);
		BevelSize(13);
		Text("Launch");
		Font("MEDIUM");
		Style("ROLLOVER", "OUTLINE");
		Projector(4);
		Cursor("Highlight");
		NotifyParent("Button::Press", "Launch");
	}

	//
	// create the "Main" button
	//
	CreateControl("Main", "BUTTON")
	{
		ColorGroup("BLUEGRAY");

		Geometry("LEFT", "TOP");
		Position(50, 50);
		Size(238, 0);
		BorderSize(25);
		BevelSize(13);
		Text("Main");
		Font("MEDIUM");
		Style("ROLLOVER", "OUTLINE");
		Projector(4);
		Cursor("Highlight");
		NotifyParent("Button::Press", "Main");
	}

	//
	// handle activation
	//
	OnEvent("Control::StartFadeIn")
	{
		Cmd("shell.instant.load");
	}

	//
	// handle the "launch" event
	//
	OnEvent("Launch")
	{
		cmd("shell.stopSound mire22_4.wav");
		Cmd("shell.instant.launch");
		Exec("bzgame_instant_time_x2_5.cfg");
		FadeIn("|StatsPanel");
	//	Exec("bzgame_speed.cfg");
//		FadeIn("|Speedometer");
	}

	//
	// handle the back event
	//
	OnEvent("Main")
	{
		cmd("shell.stopSound mire22_4.wav");
		FadeOut("|ShellInstant");
		FadeIn("|ShellMain");
	}

	//
	// handle activation
	//
	OnEvent("Control::Activate")
	{
		cmd("shell.backgroundSound mire22_4.wav");
		cmd("shell.background instant.tga");
		Cmd("shell.instant.load");
		Cmd("shell.instant.name dunes662i.bzn");	// map name
	}
}

Exec("bzshell_instant_xo_g66_x2_5.cfg");
Exec("bzshell_instant_xo_g662_x2_5.cfg");
Exec("bzshell_instant_xo_g663_x2_5.cfg");
Exec("bzshell_instant_xo_g664_x2_5.cfg");
