// ================
// 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("CTF 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("Client 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("RandomizeType", "STATIC")
		{
			Geometry("LEFT", "TOP");
			Position(0, 60);
			Size(135, 9);
			Font("SMALL");
			Text("Respawn Vehicle:");
			JustifyText("right");
			Style("TRANSPARENT");
		}

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

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

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

	CreateControl("SpawnkillLimit", "STATIC")
		{
			Geometry("LEFT", "TOP");
			Position(0, 80);
			Size(225, 9);
			Font("SMALL");
			Text("Spawnkill if under (seconds):");
			JustifyText("right");
			Style("TRANSPARENT");
		}

	CreateControl("SpawnkillEdit", "STATIC")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(230, 80);
			Size(19, 9);
			BorderSize(3);
			BevelSize(3);
			JustifyText("LEFT");
			Font("TINY");
			Style("ROLLOVER", "OUTLINE");
			Cursor("Highlight");
			UseVar("network.session.ivar13");
		}


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

		CreateControl("CPUNonTurretSkill0", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(140, 100);
			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, 100);
			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, 100);
			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, 100);
			Size(13, 9);
			BorderSize(3);
			BevelSize(3);
			Style("INERT", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("3");
			UseVar("network.session.ivar22");
			Value(3);
		}

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

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

		CreateControl("TauntsOn", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(140, 120);
			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, 120);
			Size(19, 9);
			BorderSize(3);
			BevelSize(3);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("N");
			UseVar("network.session.civar4");
			Value(1);
		}


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

