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

//
// Mission-specific interface. Top-level entry must be named
// "ExtraOptions"
//
CreateControl("ExtraOptions", "WINDOW")
{
	ColorGroup("MAGENTA");
	Geometry("RIGHT", "TOP");
	Position(-20, 60);
	Size(270, 400);
	BorderSize(10);
	BevelSize(5);
	TabSize(110, 10);
	Title("Strat Options");
	TitleFont("SMALL");
	Style("RIGHTTAB", "OUTLINE");

	// Required control: gotta be able to get out of here.
	CreateControl("CloseExtras", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "BOTTOM");
			Position(0, 0);
			Size(140, 9);
			BorderSize(3);
			BevelSize(3);
			Style("ROLLOVER", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("Server options");
			NotifyParent("Button::Press", "CloseExtra");
		}

	CreateControl("TimeLimit", "STATIC")
		{
			Geometry("LEFT", "TOP");
			Position(0, 0);
			Size(135, 9);
			Font("SMALL");
			Text("Time Limit (minutes):");
			JustifyText("right");
			Style("TRANSPARENT");
		}

	CreateControl("TimeEdit", "STATIC")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(140, 0);
			Size(19, 9);
			BorderSize(3);
			BevelSize(3);
			JustifyText("left");
			Font("TINY");
			Style("ROLLOVER", "OUTLINE");
			Cursor("Highlight");
			UseVar("network.session.ivar1");
			SetIntegerRange("network.session.ivar1", 0, 99999);
		}

	CreateControl("KillLimit", "STATIC")
		{
			Geometry("LEFT", "TOP");
			Position(0, 20);
			Size(135, 9);
			Font("SMALL");
			Text("Kill Limit:");
			JustifyText("right");
			Style("TRANSPARENT");
		}

	CreateControl("KillEdit", "STATIC")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(140, 20);
			Size(19, 9);
			BorderSize(3);
			BevelSize(3);
			JustifyText("left");
			Font("TINY");
			Style("ROLLOVER", "OUTLINE");
			Cursor("Highlight");
			UseVar("network.session.ivar0");
			SetIntegerRange("network.session.ivar0", 0, 99999);
		}

	CreateControl("UnitLimit", "STATIC")
		{
			Geometry("LEFT", "TOP");
			Position(0, 40);
			Size(135, 9);
			Font("SMALL");
			Text("Unit Limit:");
			JustifyText("right");
			Style("TRANSPARENT");
		}

	CreateControl("UnitEdit", "STATIC")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(140, 40);
			Size(19, 9);
			BorderSize(3);
			BevelSize(3);
			JustifyText("left");
			Font("TINY");
			Style("ROLLOVER", "OUTLINE");
			Cursor("Highlight");
			UseVar("network.session.ivar9");
		}

	CreateControl("SniperRespawn", "STATIC")
		{
			Geometry("LEFT", "TOP");
			Position(0, 60);
			Size(135, 9);
			Font("SMALL");
			Text("Respawn w/ sniper:");
			JustifyText("right");
			Style("TRANSPARENT");
		}

		CreateControl("SniperRespawnOn", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(140, 60);
			Size(19, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("N");
			UseVar("network.session.ivar16");
			Value(0);
		}

		CreateControl("SniperRespawnOff", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(165, 60);
			Size(19, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("Y");
			UseVar("network.session.ivar16");
			Value(1);
		}

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

		CreateControl("PointsForKillOn", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(140, 80);
			Size(19, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("N");
			UseVar("network.session.ivar14");
			Value(0);
		}

		CreateControl("PointsForKillOff", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(165, 80);
			Size(19, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("Y");
			UseVar("network.session.ivar14");
			Value(1);
		}

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

		CreateControl("KillForKillOn", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(140, 100);
			Size(19, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("N");
			UseVar("network.session.ivar15");
			Value(0);
		}

		CreateControl("KillForKillOff", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(165, 100);
			Size(19, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("Y");
			UseVar("network.session.ivar15");
			Value(1);
		}

		//
	CreateControl("TurretSkill", "STATIC")
		{
			Geometry("LEFT", "TOP");
			Position(0, 120);
			Size(135, 9);
			Font("SMALL");
			Text("Turret AI skill:");
			JustifyText("right");
			Style("TRANSPARENT");
		}

		CreateControl("TurretSkill0", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(140, 120);
			Size(13, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("0");
			UseVar("network.session.ivar17");
			Value(0);
		}

		CreateControl("TurretSkill1", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(160, 120);
			Size(13, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("1");
			UseVar("network.session.ivar17");
			Value(1);
		}

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

		CreateControl("TurretSkill3", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(200, 120);
			Size(13, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("3");
			UseVar("network.session.ivar17");
			Value(3);
		}

	CreateControl("NonTurretSkill", "STATIC")
		{
			Geometry("LEFT", "TOP");
			Position(0, 140);
			Size(135, 9);
			Font("SMALL");
			Text("Non-Turret AI skill:");
			JustifyText("right");
			Style("TRANSPARENT");
		}

		CreateControl("NonTurretSkill0", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(140, 140);
			Size(13, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("0");
			UseVar("network.session.ivar18");
			Value(0);
		}

		CreateControl("NonTurretSkill1", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(160, 140);
			Size(13, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("1");
			UseVar("network.session.ivar18");
			Value(1);
		}

		CreateControl("NonTurretSkill2", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(180, 140);
			Size(13, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("2");
			UseVar("network.session.ivar18");
			Value(2);
		}

		CreateControl("NonTurretSkill3", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(200, 140);
			Size(13, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("3");
			UseVar("network.session.ivar18");
			Value(3);
		}

		// 
	CreateControl("CPUTurretSkill", "STATIC")
		{
			Geometry("LEFT", "TOP");
			Position(0, 160);
			Size(135, 9);
			Font("SMALL");
			Text("CPU Turret skill:");
			JustifyText("right");
			Style("TRANSPARENT");
		}

		CreateControl("CPUTurretSkill0", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(140, 160);
			Size(13, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("0");
			UseVar("network.session.ivar21");
			Value(0);
		}

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

		CreateControl("CPUTurretSkill2", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(180, 160);
			Size(13, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("2");
			UseVar("network.session.ivar21");
			Value(2);
		}

		CreateControl("CPUTurretSkill3", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(200, 160);
			Size(13, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("3");
			UseVar("network.session.ivar21");
			Value(3);
		}

	CreateControl("CPUNonTurretSkill", "STATIC")
		{
			Geometry("LEFT", "TOP");
			Position(0, 180);
			Size(135, 9);
			Font("SMALL");
			Text("CPU NonTurret skill:");
			JustifyText("right");
			Style("TRANSPARENT");
		}

		CreateControl("CPUNonTurretSkill0", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(140, 180);
			Size(13, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("0");
			UseVar("network.session.ivar22");
			Value(0);
		}

		CreateControl("CPUNonTurretSkill1", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(160, 180);
			Size(13, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("1");
			UseVar("network.session.ivar22");
			Value(1);
		}

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

		CreateControl("NonTurretSkill3", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(200, 180);
			Size(13, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("3");
			UseVar("network.session.ivar22");
			Value(3);
		}

		// human scrap cheat

	CreateControl("HumanScrapCheat", "STATIC")
		{
			Geometry("LEFT", "TOP");
			Position(0, 200);
			Size(135, 9);
			Font("SMALL");
			Text("Human scrap cheat:");
			JustifyText("right");
			Style("TRANSPARENT");
		}

		CreateControl("HumanScrapCheat0", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(140, 200);
			Size(13, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("0");
			UseVar("network.session.ivar23");
			Value(0);
		}

		CreateControl("HumanScrapCheat1", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(160, 200);
			Size(13, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("1");
			UseVar("network.session.ivar23");
			Value(1);
		}

		CreateControl("HumanScrapCheat2", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(180, 200);
			Size(13, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("2");
			UseVar("network.session.ivar23");
			Value(2);
		}

		CreateControl("HumanScrapCheat3", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(200, 200);
			Size(13, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("3");
			UseVar("network.session.ivar23");
			Value(3);
		}

		// CPU scrap cheat

	CreateControl("CPUScrapCheat", "STATIC")
		{
			Geometry("LEFT", "TOP");
			Position(0, 220);
			Size(135, 9);
			Font("SMALL");
			Text("CPU scrap cheat:");
			JustifyText("right");
			Style("TRANSPARENT");
		}

		CreateControl("CPUScrapCheat0", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(140, 220);
			Size(13, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("0");
			UseVar("network.session.ivar24");
			Value(0);
		}

		CreateControl("CPUScrapCheat1", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(160, 220);
			Size(13, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("1");
			UseVar("network.session.ivar24");
			Value(1);
		}

		CreateControl("CPUScrapCheat2", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(180, 220);
			Size(13, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("2");
			UseVar("network.session.ivar24");
			Value(2);
		}

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

	CreateControl("TauntsLabel", "STATIC")
		{
			Geometry("LEFT", "TOP");
			Position(0, 240);
			Size(135, 9);
			Font("SMALL");
			Text("Taunts:");
			JustifyText("right");
			Style("TRANSPARENT");
		}

		CreateControl("TauntsOn", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(140, 240);
			Size(19, 9);
			BorderSize(3);
			BevelSize(3);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("Y");
			UseVar("network.session.civar4");
			Value(0);
		}

		CreateControl("TauntsOff", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(165, 240);
			Size(19, 9);
			BorderSize(3);
			BevelSize(3);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("N");
			UseVar("network.session.civar4");
			Value(1);
		}

	CreateControl("StartingForce", "STATIC")
		{
			Geometry("LEFT", "TOP");
			Position(0, 260);
			Size(125, 9);
			Font("SMALL");
			Text("Starting Force:");
			JustifyText("left");
			Style("TRANSPARENT");
		}

	CreateControl("VehicleList", "CHECKLIST")
		{
			Geom("LEFT", "TOP");
			ColorGroup("LISTBOX");
			Position(0, 280);
			Size(150, 100);
			CellSize(140, 10);
			BorderSize(5);
			BevelSize(3);
			Font("SMALL");
			Style("VSLIDER");
			// Contents filled in from code now (MPVehicle.cpp thru NetCommands)
		}

	OnEvent("CloseExtra")
		{
			Cmd("network.session.closeextras");
		}

	OnEvent("SetStartForce0")
		{
			Cmd("network.session.ivar7 0");
		}

	OnEvent("SetStartForce1")
		{
			Cmd("network.session.ivar7 3");
		}

	OnEvent("SetStartForce2")
		{
			Cmd("network.session.ivar7 51");
		}

	OnEvent("SetStartForce3")
		{
			Cmd("network.session.ivar7 -1");
		}
}

