// ==================================================================================================================
// Battlezone II G66 3.1 MPI Options Shell File -- Page 2
// ==================================================================================================================
//
// 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("ExtraOptions2", "WINDOW")
{
	ColorGroup("MAGENTA");
	Geometry("RIGHT", "TOP");
	Position(-60, 180);
	Size(810, 1200);
	BorderSize(30);
	BevelSize(15);
	TabSize(600, 30);
	Title("G66 3.1 MPI Options");
	TitleFont("SMALL");
	Style("RIGHTTAB", "OUTLINE", "INERT");

	// G66 Human Team Options
	CreateControl("G66HTOptions", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(180, 30);
		Size(450, 27);
		Font("SMALL");
		Text("   Human Team Options ");
		JustifyText("right");
		Style("OUTLINE", "INERT");
	}

	// G66 HT Combat Unit Skill Level (ivar109)
	CreateControl("G66HTCmbtSkill", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 120);
		Size(405, 27);
		Font("SMALL");
		Text("Combat Unit Skill:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("G66HTCmbtSkill1", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(435, 120);
		Size(39, 27);
		BorderSize(9);
		BevelSize(9);
		Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
		Cursor("Highlight");
		Font("TINY");
		Text("1");
		UseVar("network.session.ivar109");
		Value(1);
	}

	CreateControl("G66HTCmbtSkill2", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(510, 120);
		Size(39, 27);
		BorderSize(9);
		BevelSize(9);
		Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
		Cursor("Highlight");
		Font("TINY");
		Text("2");
		UseVar("network.session.ivar109");
		Value(2);
	}

	CreateControl("G66HTCmbtSkill3", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(585, 120);
		Size(39, 27);
		BorderSize(9);
		BevelSize(9);
		Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
		Cursor("Highlight");
		Font("TINY");
		Text("3");
		UseVar("network.session.ivar109");
		Value(3);
	}

	// HT Turret Skill Level (ivar17)
	CreateControl("HTTurretSkill", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 180);
		Size(405, 27);
		Font("SMALL");
		Text("Turret Skill:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("HTTurretSkill1", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(435, 180);
		Size(39, 27);
		BorderSize(9);
		BevelSize(9);
		Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
		Cursor("Highlight");
		Font("TINY");
		Text("1");
		UseVar("network.session.ivar17");
		Value(1);
	}

	CreateControl("HTTurretSkill2", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(510, 180);
		Size(39, 27);
		BorderSize(9);
		BevelSize(9);
		Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
		Cursor("Highlight");
		Font("TINY");
		Text("2");
		UseVar("network.session.ivar17");
		Value(2);
	}

	CreateControl("HTTurretSkill3", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(585, 180);
		Size(39, 27);
		BorderSize(9);
		BevelSize(9);
		Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
		Cursor("Highlight");
		Font("TINY");
		Text("3");
		UseVar("network.session.ivar17");
		Value(3);
	}

	// G66 HT Non-Combat Skill Level (ivar110)
	CreateControl("G66HTNonCmbtSkill", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 240);
		Size(405, 27);
		Font("SMALL");
		Text("Non-Combat Skill:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("G66HTNonCmbtSkill1", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(435, 240);
		Size(39, 27);
		BorderSize(9);
		BevelSize(9);
		Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
		Cursor("Highlight");
		Font("TINY");
		Text("1");
		UseVar("network.session.ivar110");
		Value(1);
	}

	CreateControl("G66HTNonCmbtSkill2", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(510, 240);
		Size(39, 27);
		BorderSize(9);
		BevelSize(9);
		Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
		Cursor("Highlight");
		Font("TINY");
		Text("2");
		UseVar("network.session.ivar110");
		Value(2);
	}

	CreateControl("G66HTNonCmbtSkill3", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(585, 240);
		Size(39, 27);
		BorderSize(9);
		BevelSize(9);
		Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
		Cursor("Highlight");
		Font("TINY");
		Text("3");
		UseVar("network.session.ivar110");
		Value(3);
	}

	// G66 HT Starting Force (ivar111)
	// CreateControl("G66HTStartFrc", "STATIC")
	// {
		// Geometry("LEFT", "TOP");
		// Position(0, 100);
		// Size(135, 9);
		// Font("SMALL");
		// Text("Starting Force:");
		// JustifyText("right");
		// Style("TRANSPARENT");
	// }

	// CreateControl("G66HTStartFrc1", "BUTTON")
	// {
		// ColorGroup("BLACKBLUE");
		// Geometry("LEFT", "TOP");
		// Position(145, 100);
		// Size(13, 9);
		// BorderSize(3);
		// BevelSize(3);
		// Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
		// Cursor("Highlight");
		// Font("TINY");
		// Text("1");
		// UseVar("network.session.ivar111");
		// Value(1);
	// }

	// CreateControl("G66HTStartFrc2", "BUTTON")
	// {
		// ColorGroup("BLACKBLUE");
		// Geometry("LEFT", "TOP");
		// Position(170, 100);
		// Size(13, 9);
		// BorderSize(3);
		// BevelSize(3);
		// Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
		// Cursor("Highlight");
		// Font("TINY");
		// Text("2");
		// UseVar("network.session.ivar111");
		// Value(2);
	// }

	// CreateControl("G66HTStartFrc3", "BUTTON")
	// {
		// ColorGroup("BLACKBLUE");
		// Geometry("LEFT", "TOP");
		// Position(195, 100);
		// Size(13, 9);
		// BorderSize(3);
		// BevelSize(3);
		// Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
		// Cursor("Highlight");
		// Font("TINY");
		// Text("3");
		// UseVar("network.session.ivar111");
		// Value(3);
	// }

	// CreateControl("G66HTStartFrc4", "BUTTON")
	// {
		// ColorGroup("BLACKBLUE");
		// Geometry("LEFT", "TOP");
		// Position(220, 100);
		// Size(13, 9);
		// BorderSize(3);
		// BevelSize(3);
		// Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
		// Cursor("Highlight");
		// Font("TINY");
		// Text("4");
		// UseVar("network.session.ivar111");
		// Value(4);
	// }


	// G66 HT Crate Drops Option (ivar113)
	CreateControl("G66CrateDrop", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 360);
		Size(405, 27);
		Font("SMALL");
		Text("Crate Drops:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("G66CrateDropOff", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(435, 360); // (175, 200)
		Size(57, 27);
		BorderSize(9);
		BevelSize(9);
		Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
		Cursor("Highlight");
		Font("TINY");
		Text("Off");
		UseVar("network.session.ivar113");
		Value(0);
	}

	CreateControl("G66CrateDropOn", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(525, 360); // (145, 200)
		Size(57, 27);
		BorderSize(9);
		BevelSize(9);
		Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
		Cursor("Highlight");
		Font("TINY");
		Text("On");
		UseVar("network.session.ivar113");
		Value(1);
	}

	// G66 Combat Unit Skill Progression Option (ivar112)
	CreateControl("G66SkillProg", "STATIC")
	{
		Geometry("LEFT", "TOP");
		Position(0, 420);
		Size(405, 27);
		Font("SMALL");
		Text("Combat Skill Progression:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("G66SkillProgOn", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(525, 420); // (145, 140)
		Size(57, 27);
		BorderSize(9);
		BevelSize(9);
		Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
		Cursor("Highlight");
		Font("TINY");
		Text("On");
		UseVar("network.session.ivar112");
		Value(1);
	}

	CreateControl("G66SkillProgOff", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("LEFT", "TOP");
		Position(435, 420); // (175, 140)
		Size(57, 27);
		BorderSize(9);
		BevelSize(9);
		Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
		Cursor("Highlight");
		Font("TINY");
		Text("Off");
		UseVar("network.session.ivar112");
		Value(0);
	}

	CreateControl("PagesLabel", "STATIC")
	{
		Geometry("LEFT", "BOTTOM");
		Position(0, 0);
		Size(90, 27);
		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(105, 0);
		Size(90, 27);
		BorderSize(9);
		BevelSize(9);
		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(225, 0);
		Size(30, 27);
		BorderSize(9);
		BevelSize(9);
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		Font("SMALL");
		Text("1");
		NotifyParent("Button::Press", "OpenExtraOptions1");
	}

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

	CreateControl("OpenExtraOptions2", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("BOTTOM", "LEFT");
		Position(285, 0);
		Size(30, 27);
		BorderSize(9);
		BevelSize(9);
		Style("INERT", "OUTLINE");
		Cursor("Highlight");
		Font("SMALL");
		Text("2");
		UseVar("network.session.ivar101");
		Value(4);
	}

	CreateControl("OpenExtraOptions3", "BUTTON")
	{
		ColorGroup("BLACKBLUE");
		Geometry("BOTTOM", "LEFT");
		Position(345, 0);
		Size(30, 27);
		BorderSize(9);
		BevelSize(9);
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		Font("SMALL");
		Text("3");
		NotifyParent("Button::Press", "OpenExtraOptions3");			
	}

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

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

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

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

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

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

