// ================
// BATTLEZONE CLASSIC SHELL - Moon Extra Options - FFA ST MPI Page 2
// Made by General BlackDragon
// ================

//
// Mission-specific interface. Top-level entry must be named
// "ExtraOptions"
//
CreateControl("ExtraOptions2", "WINDOW")
{
	Geometry("LEFT", "TOP");
	Position(45, 65);
	Size(590, 380); //255, 380);
	Style("TRANSPARENT", "INERT", "OUTLINE");

	CreateControl("Title", "STATIC")
		{
			ColorGroup("LISTBOX");
			Geometry("LEFT", "TOP");
			Position(20, -20);
			Size(175, 9);
			Font("SMALL");
			Text("BZC MPI Options");
			JustifyText("LEFT");
			Style("TRANSPARENT");
		}

	// Required control: gotta be able to get out of here.
	CreateControl("CloseExtras", "BUTTON")
		{
			ColorGroup("BUTTONBOXBG");
			Geometry("LEFT", "BOTTOM");
			Position(0, -10);
			Size(130, 9);
			BorderSize(3);
			BevelSize(3);
			Style("ROLLOVER", "OUTLINE", "BLINK");
			Cursor("Highlight");
			Font("SMALL");
			Text("Server options");
			NotifyParent("Button::Press", "CloseExtra");
			Sound("MouseEnter", "multion.wav");
			Sound("ButtonPress", "multiclk.wav");
		}

		OnEvent("CloseExtra")
		{
			Cmd("network.session.closeextras");
		}
//====================================================================================================================
//	More Options Button Code -- Begin
//====================================================================================================================

	CreateControl("PagesLabel", "STATIC")
	{
		ColorGroup("LISTBOX");
		Geometry("LEFT", "BOTTOM");
		Position(140, -10);
		Size(60, 9);
		Font("SMALL");
		Text("More Pages:");
		JustifyText("left");
		Style("TRANSPARENT");
	}

	CreateControl("OpenExtraOptions", "BUTTON")
	{
		ColorGroup("BUTTONBOXBG");
		Geometry("BOTTOM", "LEFT");
		Position(210, -10);
		Size(20, 9);
		BorderSize(3);
		BevelSize(3);
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		Font("SMALL");
		Text("1");
		NotifyParent("Button::Press", "OpenExtraOptions");
		Sound("MouseEnter", "multion.wav");
		Sound("ButtonPress", "multiclk.wav");			
	}	
	OnEvent("OpenExtraOptions")
	{
		FadeOut("|ExtraOptions2");
		FadeIn("|ExtraOptions");
	}

	CreateControl("OpenExtraOptions3", "BUTTON")
	{
		ColorGroup("BUTTONBOXBG");
		Geometry("BOTTOM", "LEFT");
		Position(240, -10);
		Size(20, 9);
		BorderSize(3);
		BevelSize(3);
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		Font("SMALL");
		Text("3");
		NotifyParent("Button::Press", "OpenExtraOptions3");
		Sound("MouseEnter", "multion.wav");
		Sound("ButtonPress", "multiclk.wav");			
	}	
	OnEvent("OpenExtraOptions3")
	{
		FadeOut("|ExtraOptions2");
		FadeIn("|ExtraOptions3");
	}

	

//====================================================================================================================
//	More Options Button Code -- End
//====================================================================================================================

//====================================================================================================================
//	Only in FFA and Only in TeamPlay -- Beginning
//====================================================================================================================

	// This window (ExtraOptions.OnlyInFFA, name must match exactly) is
	// disabled if teamplay is on
	CreateControl("OnlyInFFA", "WINDOW")
	{
		Position(0, 15);
		Size(260, 120);
		Geometry("LEFT", "TOP");
		Style("TRANSPARENT", "OUTLINE", "INERT");
	}

	CreateControl("Friendly Fire", "STATIC")
	{
		ColorGroup("LISTBOX");
		Geometry("LEFT", "TOP");
		Position(0, 140);
		Size(165, 9);
		Font("SMALL");
		Text("Friendly Fire:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("FriendlyFireOff", "BUTTON")
	{
		ColorGroup("BUTTONBOX");
		Geometry("LEFT", "TOP");
		Position(170, 140);
		Size(19, 9);
		BorderSize(3);
		BevelSize(3);
		Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
		Cursor("Highlight");
		Font("SMALL");
		Text("OFF");
		UseVar("network.session.ivar32");
		Sound("MouseEnter", "multion.wav");
		Sound("ButtonPress", "multiclk.wav");
		Value(0);
	}

	CreateControl("FriendlyFireOn", "BUTTON")
	{
		ColorGroup("BUTTONBOX");
		Geometry("LEFT", "TOP");
		Position(200, 140);
		Size(19, 9);
		BorderSize(3);
		BevelSize(3);
		Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
		Cursor("Highlight");
		Font("SMALL");
		Text("ON");
		UseVar("network.session.ivar32");
		Sound("MouseEnter", "multion.wav");
		Sound("ButtonPress", "multiclk.wav");
		Value(1);
	}


	CreateControl("ReinforcementTimeTitle", "STATIC")
	{
		ColorGroup("LISTBOX");
		Position(0, 175);
		Size(150, 10);
		Style("TRANSPARENT");
		Font("SMALL");
		JustifyText("LEFT");
		Text("Reinforcement Time:");
	}

	CreateControl("ReinforcementTimeSlider", "SLIDER")
	{
		ColorGroup("BZCBUTTON");
		Position(0, 190);
		Size(260, 9);
		BorderSize(3);
		BevelSize(3);
		Style("ROLLOVER", "INERT");
		Cursor("Highlight");
		UseVar("network.session.ivar61");
	}

	CreateControl("ReinforcementTimeValue", "STATIC")
	{
		ColorGroup("LISTBOX");
		Position(200, 175);
		Size(70, 9);
		Style("TRANSPARENT");
		Font("SMALL");
		JustifyText("LEFT");
		Text("%d Minutes");
		UseVar("network.session.ivar61");
	}


	CreateControl("ReinforcementNumberTitle", "STATIC")
	{
		ColorGroup("LISTBOX");
		Position(0, 210);
		Size(130, 10);
		Style("TRANSPARENT");
		Font("SMALL");
		JustifyText("LEFT");
		Text("Reinforcement Amount:");
	}

	CreateControl("ReinforcementNumberSlider", "SLIDER")
	{
		ColorGroup("BZCBUTTON");
		Position(125, 210);
		Size(100, 9);
		BorderSize(3);
		BevelSize(3);
		Style("ROLLOVER", "INERT");
		Cursor("Highlight");
		UseVar("network.session.ivar82");
	}

	CreateControl("ReinforcementNumberValue", "STATIC")
	{
		ColorGroup("LISTBOX");
		Position(235, 210);
		Size(70, 9);
		Style("TRANSPARENT");
		Font("SMALL");
		JustifyText("LEFT");
		Text("%d");
		UseVar("network.session.ivar82");
	}

		CreateControl("ScrapMult", "STATIC")
		{
			ColorGroup("LISTBOX");
			Geometry("LEFT", "TOP");
			Position(0, 100);
			Size(135, 9);
			Font("SMALL");
			Text("Scrap Multiplier:");
			JustifyText("right");
			Style("TRANSPARENT");
		}

		CreateControl("ScrapMult0", "BUTTON")
		{
			ColorGroup("BUTTONBOX");
			Geometry("LEFT", "TOP");
			Position(140, 100);
			Size(19, 9);
			BorderSize(3);
			BevelSize(3);
			Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
			Cursor("Highlight");
			Font("SMALL");
			Text("1x");
			UseVar("network.session.ivar81");
			Sound("MouseEnter", "multion.wav");
			Sound("ButtonPress", "multiclk.wav");
			Value(0);
		}

		CreateControl("ScrapMult1", "BUTTON")
		{
			ColorGroup("BUTTONBOX");
			Geometry("LEFT", "TOP");
			Position(170, 100);
			Size(19, 9);
			BorderSize(3);
			BevelSize(3);
			Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
			Cursor("Highlight");
			Font("SMALL");
			Text("2x");
			UseVar("network.session.ivar81");
			Sound("MouseEnter", "multion.wav");
			Sound("ButtonPress", "multiclk.wav");
			Value(1);
		}

		CreateControl("ScrapMult2", "BUTTON")
		{
			ColorGroup("BUTTONBOX");
			Geometry("LEFT", "TOP");
			Position(200, 100);
			Size(19, 9);
			BorderSize(3);
			BevelSize(3);
			Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
			Cursor("Highlight");
			Font("SMALL");
			Text("3x");
			UseVar("network.session.ivar81");
			Sound("MouseEnter", "multion.wav");
			Sound("ButtonPress", "multiclk.wav");
			Value(2);
		}

		CreateControl("ScrapMult3", "BUTTON")
		{
			ColorGroup("BUTTONBOX");
			Geometry("LEFT", "TOP");
			Position(230, 100);
			Size(19, 9);
			BorderSize(3);
			BevelSize(3);
			Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
			Cursor("Highlight");
			Font("SMALL");
			Text("4x");
			UseVar("network.session.ivar81");
			Sound("MouseEnter", "multion.wav");
			Sound("ButtonPress", "multiclk.wav");
			Value(3);
		}

		CreateControl("ScrapType", "STATIC")
		{
			ColorGroup("LISTBOX");
			Geometry("LEFT", "TOP");
			Position(0, 120);
			Size(100, 9);
			Font("SMALL");
			Text("Respawning Scrap:");
			JustifyText("LEFT");
			Style("TRANSPARENT");
		}

		CreateControl("Type1", "BUTTON")
		{
			ColorGroup("BUTTONBOX");
			Geometry("LEFT", "TOP");
			Position(105, 120);
			Size(40, 9);
			BorderSize(3);
			BevelSize(3);
			Style("ROLLOVER", "OUTLINE", "RADIO", "INERT");
			Cursor("Highlight");
			Font("SMALL");
			Text("None");
			Sound("MouseEnter", "multion.wav");
			Sound("ButtonPress", "multiclk.wav");
			NotifyParent("Button::Select", "SetType1");
			UseVar("network.session.ivar59");
			Value(0);		 
		}

		OnEvent("SetType1")
		{
			Cmd("network.session.ivar59 0"); 
		}

		CreateControl("Type2", "BUTTON")
		{
			ColorGroup("BUTTONBOX");
			Geometry("LEFT", "TOP");
			Position(155, 120);
			Size(50, 9);
			BorderSize(3);
			BevelSize(3);
			Style("ROLLOVER", "OUTLINE","RADIO", "INERT");
			Cursor("Highlight");
			Font("SMALL");
			Text("Respawn");
			Sound("MouseEnter", "multion.wav");
			Sound("ButtonPress", "multiclk.wav");
			NotifyParent("Button::Select", "SetType2");
			UseVar("network.session.ivar59");
			Value(1);		
		}
	
		OnEvent("SetType2")
		{
			Cmd("network.session.ivar59 1"); 
		}

		CreateControl("Type3", "BUTTON")
		{
			ColorGroup("BUTTONBOX");
			Geometry("LEFT", "TOP");
			Position(215, 120);
			Size(45, 9);
			BorderSize(3);
			BevelSize(3);
			Style("ROLLOVER", "OUTLINE","RADIO", "INERT");
			Cursor("Highlight");
			Font("SMALL");
			Text("Meteor");
			Sound("MouseEnter", "multion.wav");
			Sound("ButtonPress", "multiclk.wav");
			NotifyParent("Button::Select", "SetType3");
			UseVar("network.session.ivar59");
			Value(2);		
		}
	
		OnEvent("SetType3")
		{
			Cmd("network.session.ivar59 2"); 
		}

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

	CreateControl("StartForce0", "BUTTON")
	{
		ColorGroup("BUTTONBOX");
		Geometry("LEFT", "TOP");
		Position(90, 230);
		Size(35, 9);
		BorderSize(3);
		BevelSize(3);
		Style("ROLLOVER", "OUTLINE", "RADIO", "INERT");
		Cursor("Highlight");
		Font("SMALL");
		Text("None");
		Sound("MouseEnter", "multion.wav");
		Sound("ButtonPress", "multiclk.wav");
		UseVar("network.session.ivar7");
		Value(0);
	}

	CreateControl("StartForce1", "BUTTON")
	{
		ColorGroup("BUTTONBOX");
		Geometry("LEFT", "TOP");
		Position(135, 230);
		Size(35, 9);
		BorderSize(3);
		BevelSize(3);
		Style("ROLLOVER", "OUTLINE", "RADIO", "INERT");
		Cursor("Highlight");
		Font("SMALL");
		Text("Small");
		Sound("MouseEnter", "multion.wav");
		Sound("ButtonPress", "multiclk.wav");
		UseVar("network.session.ivar7");
		Value(3);
	}

	CreateControl("StartForce2", "BUTTON")
	{
		ColorGroup("BUTTONBOX");
		Geometry("LEFT", "TOP");
		Position(180, 230);
		Size(35, 9);
		BorderSize(3);
		BevelSize(3);
		Style("ROLLOVER", "OUTLINE", "RADIO", "INERT");
		Cursor("Highlight");
		Font("SMALL");
		Text("Medium");
		Sound("MouseEnter", "multion.wav");
		Sound("ButtonPress", "multiclk.wav");
		UseVar("network.session.ivar7");
		Value(51);
	}

	CreateControl("StartForce3", "BUTTON")
	{
		ColorGroup("BUTTONBOX");
		Geometry("LEFT", "TOP");
		Position(225, 230);
		Size(35, 9);
		BorderSize(3);
		BevelSize(3);
		Style("ROLLOVER", "OUTLINE", "RADIO", "INERT");
		Cursor("Highlight");
		Font("SMALL");
		Text("Large");
		Sound("MouseEnter", "multion.wav");
		Sound("ButtonPress", "multiclk.wav");
		UseVar("network.session.ivar7");
		Value(-1);
	}
	
	CreateControl("VehicleListWindow", "WINDOW")
	{
		Position(0, 260);
		Size(260, 200);
		Geometry("LEFT", "TOP");
		Style("TRANSPARENT", "OUTLINE", "INERT");	

		CreateControl("Title", "STATIC")
		{
			ColorGroup("LISTBOX");
			Position(0, -15);
			Size(260, 10);
			Style("TRANSPARENT");
			Font("SMALL");
			JustifyText("LEFT");
			Text("Starting Forces:");
		}
	
	}

	CreateControl("VehicleList", "CHECKLIST")
	{
		Geom("LEFT", "TOP");
		ColorGroup("BZCLISTBOX");
		Position(0, 260);
		Size(260, 90);
		CellSize(250, 10);
		BorderSize(5);
		BevelSize(3);
		Font("SMALL");
		Style("VSLIDER", "INERT");
		// Contents filled in from code now (MPVehicle.cpp thru NetCommands)
	}

	CreateControl("TeamsAllowed", "STATIC")
	{
		ColorGroup("LISTBOX");
		Geometry("LEFT", "TOP");
		Position(0, 160);
		Size(165, 9);
		Font("SMALL");
		Text("Teams Allowed:");
		JustifyText("right");
		Style("TRANSPARENT");
	}

	CreateControl("TeamsAllowedOne", "BUTTON")
	{
		ColorGroup("BUTTONBOX");
		Geometry("LEFT", "TOP");
		Position(170, 160);
		Size(29, 9);
		BorderSize(3);
		BevelSize(3);
		Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
		Cursor("Highlight");
		Font("SMALL");
		Text("One");
		UseVar("network.session.ivar12");
		Sound("MouseEnter", "multion.wav");
		Sound("ButtonPress", "multiclk.wav");
		Value(1);
	}

	CreateControl("TeamsAllowedTwo", "BUTTON")
	{
		ColorGroup("BUTTONBOX");
		Geometry("LEFT", "TOP");
		Position(210, 160);
		Size(29, 9);
		BorderSize(3);
		BevelSize(3);
		Style("ROLLOVER", "RADIO", "OUTLINE", "INERT");
		Cursor("Highlight");
		Font("SMALL");
		Text("Two");
		UseVar("network.session.ivar12");
		Sound("MouseEnter", "multion.wav");
		Sound("ButtonPress", "multiclk.wav");
		Value(0);
	}

	// This window (ExtraOptions.OnlyInTeamplay, name must match
	// exactly) is disabled if teamplay is off
	CreateControl("OnlyInTeamplay", "WINDOW")
 	{
		Position(5, 285);
		Size(260, 90);
		Style("TRANSPARENT", "INERT");
		Geometry("RIGHT", "TOP");
		// Nothing else in here (for now?)
	}


//====================================================================================================================
//	Only in FFA and only in TeamPlay -- End
//====================================================================================================================

}

