// ==================================================================================================================
// Battlezone II G66 3.1 MPI Options Shell File -- Page 3
// ==================================================================================================================
//
// 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.
// ============================

//
// Mission-specific interface:
// Top-level entry must be named "ExtraOptions"
//
CreateControl("ExtraOptions3", "WINDOW")
{
		ColorGroup("MAGENTA");
		Geometry("RIGHT", "TOP");
		Position(-40, 120);
		Size(540, 800);
		BorderSize(20);
		BevelSize(10);
		TabSize(400, 20);
		Title("G66 3.1 MPI Options");
		TitleFont("SMALL");
		Style("RIGHTTAB", "OUTLINE");

	// G66 CPU Team Options
	CreateControl("G66CTOptions", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(120, 20);
		Size(300, 18);
		Font("SMALL");
		Text("   AI Team Options   ");
		JustifyText("right");
		Style("OUTLINE");
	}


	// G66 CPU Combat Unit Skill Level (ivar117)
	CreateControl("G66CTCmbtSkill", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 80);
		Size(270, 18);
		Font("SMALL");
		Text("Combat Unit Skill:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("G66CTCmbtSkill1", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(290, 80);
		Size(26, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("1");
		UseVar("network.session.ivar117");
		Value(1);
	}

	CreateControl("G66CTCmbtSkill2", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(340, 80);
		Size(26, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("2");
		UseVar("network.session.ivar117");
		Value(2);
	}

	CreateControl("G66CTCmbtSkill3", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(390, 80);
		Size(26, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("3");
		UseVar("network.session.ivar117");
		Value(3);
	}

	// CPU Turret Skill Level (ivar21)
	CreateControl("CPUTurretSkill", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 120);
		Size(270, 18);
		Font("SMALL");
		Text("Turret Skill:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("CPUTurretSkill1", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(290, 120);
		Size(26, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("1");
		UseVar("network.session.ivar21");
		Value(1);
	}

	CreateControl("CPUTurretSkill2", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(340, 120);
		Size(26, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("2");
		UseVar("network.session.ivar21");
		Value(2);
	}

	CreateControl("CPUTurretSkill3", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(390, 120);
		Size(26, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("3");
		UseVar("network.session.ivar21");
		Value(3);
	}

	// G66 CPU Non-Combat Unit Skill Level (ivar118)
	CreateControl("G66CTNonCmbtSkill", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 160);
		Size(270, 18);
		Font("SMALL");
		Text("Non-Combat Skill:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("G66CTNonCmbtSkill1", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(290, 160);
		Size(26, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("1");
		UseVar("network.session.ivar118");
		Value(1);
	}

	CreateControl("G66CTNonCmbtSkill2", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(340, 160);
		Size(26, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("2");
		UseVar("network.session.ivar118");
		Value(2);
	}

	CreateControl("G66CTNonCmbtSkill3", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(390, 160);
		Size(26, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("3");
		UseVar("network.session.ivar118");
		Value(3);
	}

	// G66 CPU Starting Force (ivar119)
	CreateControl("G66CTStartFrc", "STATIC")
	{
	Geometry("LEFT", "TOP");
	Position(0, 200);
	Size(270, 18);
	Font("SMALL");
	Text("Starting Force:");
	JustifyText("right");
	Style("TRANSPARENT");
	}

	CreateControl("G66CTStartFrc1", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(290, 200);
		Size(26, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("1");
		UseVar("network.session.ivar119");
		Value(0);
	}

	CreateControl("G66CTStartFrc2", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(340, 200);
		Size(26, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("2");
		UseVar("network.session.ivar119");
		Value(1);
	}

	CreateControl("G66CTStartFrc3", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(390, 200);
		Size(26, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("3");
		UseVar("network.session.ivar119");
		Value(2);
	}

	CreateControl("G66CTStartFrc4", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(440, 200);
		Size(26, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("4");
		UseVar("network.session.ivar119");
		Value(3);
	}


	// G66 CPU Scrap Boost (ivar120)
	CreateControl("G66CTScrapBst", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 240);
		Size(270, 18);
		Font("SMALL");
		Text("Scrap Boost:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("G66CTScrapBst1", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(290, 240);
		Size(26, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("1");
		UseVar("network.session.ivar120");
		Value(1);
	}

	CreateControl("G66CTScrapBst2", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(340, 240);
		Size(26, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("2");
		UseVar("network.session.ivar120");
		Value(2);
	}

	CreateControl("G66CTScrapBst3", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(390, 240);
		Size(26, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("3");
		UseVar("network.session.ivar120");
		Value(3);
	}

	CreateControl("G66CTScrapBst4", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(440, 240);
		Size(26, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("4");
		UseVar("network.session.ivar120");
		Value(4);
	}

	// G66 CPU Mine Fields Option (ivar122)
	CreateControl("G66CTMineFlds", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 280);
		Size(270, 18);
		Font("SMALL");
		Text("Mine Fields:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("G66CTMineFldsOff", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(290, 280); // (175, 340)
		Size(38, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("Off");
		UseVar("network.session.ivar122");
		Value(0);
	}

	CreateControl("G66CTMineFldsOn", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(350, 280); // (145, 340)
		Size(38, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("On");
		UseVar("network.session.ivar122");
		Value(1);
	}

	// G66 CPU advanced weapons option (civar4)
	CreateControl("G66CAdvwep", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 320);
		Size(270, 18);
		Font("SMALL");
		Text("Advanced Weapons:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("G66CAdvwepOff", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(290, 320); // (175, 360)
		Size(38, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("Off");
		UseVar("network.session.ivar121");
		Value(0);
	}

	CreateControl("G66CAdvwepOn", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(350, 320); // (145, 360)
		Size(38, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("On");
		UseVar("network.session.ivar121");
		Value(1);
	}

	// G66 CPU Surprise Attacks option
	CreateControl("G66CSurprise", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 360);
		Size(270, 18);
		Font("SMALL");
		Text("Surprise Attacks:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("G66CSurpriseOff", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(290, 360);
		Size(38, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("Off");
		UseVar("network.session.ivar126");
		Value(0);
	}

	CreateControl("G66CSurpriseOn", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(350, 360);
		Size(38, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("On");
		UseVar("network.session.ivar126");
		Value(1);
	}

	// G66 CPU Rogue Attacks option
	CreateControl("G66CRogue", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 400);
		Size(270, 18);
		Font("SMALL");
		Text("Rogue Attacks:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("G66CRogueOff", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(290, 400);
		Size(38, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("Off");
		UseVar("network.session.ivar127");
		Value(0);
	}

	CreateControl("G66CRogueOn", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(350, 400);
		Size(38, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("On");
		UseVar("network.session.ivar127");
		Value(1);
	}
	
	CreateControl("neutralSnipesTitle", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 440);
		Size(270, 18);
		Font("SMALL");
		Text("Neutral Snipes:");
		JustifyText("RIGHT");
		Style("TRANSPARENT");
	}

	CreateControl("neutralSnipesOff", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(290, 440);
		Size(38, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("Off");
		UseVar("network.session.ivar106");
		Value(0);
	}

	CreateControl("neutralSnipesOn", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(350, 440);
		Size(38, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("On");
		UseVar("network.session.ivar106");
		Value(1);
	}


	CreateControl("FightingPilotsTitle", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 480);
		Size(270, 18);
		Font("SMALL");
		Text("Fighting Pilots:");
		JustifyText("RIGHT");
		Style("TRANSPARENT");
	}

	CreateControl("FightingPilotsOff", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(290, 480);
		Size(38, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("Off");
		UseVar("network.session.ivar107");
		Value(0);
	}

	CreateControl("FightingPilotsOn", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(350, 480);
		Size(38, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("On");
		UseVar("network.session.ivar107");
		Value(1);
	}
	
	// G66 CPU Juggernaut Attacks option
	CreateControl("G66CJuggernaut", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 520);
		Size(270, 18);
		Font("SMALL");
		Text("Juggernaut:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("G66CJuggernautOff", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(290, 520);
		Size(38, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("Off");
		UseVar("network.session.ivar100");
		Value(0);
	}

	CreateControl("G66CJuggernautOn", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(350, 520);
		Size(38, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "RADIO", "OUTLINE");
		Cursor("Highlight");
		Font("TINY");
		Text("On");
		UseVar("network.session.ivar100");
		Value(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(70, 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("OpenExtraOptions1", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("BOTTOM", "LEFT");
		Position(150, 0);
		Size(20, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		Font("SMALL");
		Text("1");
		NotifyParent("Button::Press", "OpenExtraOptions1");
	}

	OnEvent("OpenExtraOptions1")
	{
		FadeOut("|ExtraOptions3");
		FadeIn("|ExtraOptions");
		Cmd("network.session.ivar101 2"); 
	}

	CreateControl("OpenExtraOptions2", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("BOTTOM", "LEFT");
		Position(190, 0);
		Size(20, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		Font("SMALL");
		Text("2");
		NotifyParent("Button::Press", "OpenExtraOptions2");			
	}

	OnEvent("OpenExtraOptions2")
	{
		FadeOut("|ExtraOptions3");
		FadeIn("|ExtraOptions2");
		Cmd("network.session.ivar101 4"); 
	}

	CreateControl("OpenExtraOptions3", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("BOTTOM", "LEFT");
		Position(230, 0);
		Size(20, 18);
		BorderSize(6);
		BevelSize(6);
		Style("INERT", "OUTLINE");
		Cursor("Highlight");
		Font("SMALL");
		Text("3");
		UseVar("network.session.ivar101");
		Value(8);
	}

	CreateControl("OpenExtraOptions4", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("BOTTOM", "LEFT");
		Position(270, 0);
		Size(20, 18);
		BorderSize(6);
		BevelSize(6);
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		Font("SMALL");
		Text("4");
		NotifyParent("Button::Press", "OpenExtraOptions4");			
	}

	OnEvent("OpenExtraOptions4")
	{
		FadeOut("|ExtraOptions3");
		FadeIn("|ExtraOptions4");
		Cmd("network.session.ivar101 16"); 
	}

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

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

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

