// =================================
// BATTLEZONE EDITOR CAMERA CONTROLS
// =================================
//
// ============================================
// Oiled, polished and pinstriped by RocketmanX
// ============================================
//
// CREATE THE CAMERA CONTROL WINDOW
//
CreateControl("EditCamera", "WINDOW")
{
	    Pos(107, 0);
	    Size(105, 64);
//		BorderSize(3);
		BevelSize(0);
	ColorGroup("BACKGROUND");

	CreateControl("Solid", "BUTTON")
	{
		ColorGroup("TVBUTTON1");
		Pos(7, 7);
		Size(35, 10);
		BorderSize(2);
		BevelSize(3);
		Font("TINY");
		Text("Solid");
		Cursor("Highlight");
		Style("ROLLOVER", "RADIO", "OUTLINE");
		UseVar("editor.camera.wireframe");
		Value(0);
	}

	CreateControl("Wire", "BUTTON")
	{
		ColorGroup("TVBUTTON1");
		Pos(63, 7);
		Size(35, 10);
		BorderSize(2);
		BevelSize(3);
		Font("TINY");
		Text("Wire");
		Cursor("Highlight");
		Style("ROLLOVER", "RADIO", "OUTLINE");
		UseVar("editor.camera.wireframe");
		Value(1);
	}

	CreateControl("Height", "BUTTON")
	{
		ColorGroup("TVBUTTON1");
		Pos(7, 28);
		Size(35, 10);
		BorderSize(2);
		BevelSize(3);
		Font("TINY");
		Text("Height");
		Cursor("Highlight");
		Style("ROLLOVER", "RADIO", "OUTLINE");
		UseVar("editor.camera.wireframe");
		Value(2);
	}

	CreateControl("Color", "BUTTON")
	{
		ColorGroup("TVBUTTON1");
		Pos(63, 28);
		Size(35, 10);
		BorderSize(2);
		BevelSize(3);
		Font("TINY");
		Text("Color");
		Cursor("Highlight");
		Style("ROLLOVER", "RADIO", "OUTLINE");
		UseVar("editor.camera.wireframe");
		Value(3);
	}
	CreateControl("Build", "BUTTON")
	{
		//ColorGroup("TVBUTTON1");
		Pos(47, 16);
		Size(12, 12);
		BorderSize(1);
		BevelSize(6);
		Font("TINY");
		Text("");
		Cursor("Highlight");
		Style("ROLLOVER", "RADIO", "OUTLINE");
		UseVar("editor.camera.wireframe");
		Value(4);
	}

	CreateControl("LowSet", "BUTTON")
	{
	//	ColorGroup("TVBUTTON2");
		Pos(7, 47);
		Size(24, 7);
		BorderSize(2);
		BevelSize(3);
		Font("TINY");
		Text("Low");
		Cursor("Highlight");
		Style("ROLLOVER", "OUTLINE");
		NotifyParent("Button::Press", "Low");
		}
		OnEvent("Low")
		{

// ----- values 0, 1 and 2  -------

Cmd("options.graphics.sky=0");
Cmd("options.graphics.lighting=0");
Cmd("options.graphics.terrain=0");
Cmd("options.graphics.particles=0");
Cmd("options.graphics.objects=0");
Cmd("options.graphics.props=0");
Cmd("options.graphics.shadows=0");
//Cmd("options.graphics.texsize=0");

// ------ values 0 and 1 --------

//Cmd("options.graphics.mirrors=0");
//Cmd("options.graphics.rain=0");
//Cmd("options.graphics.fog=0");

			}

	CreateControl("MedSet", "BUTTON")
	{
	//	ColorGroup("TVBUTTON2");
		Pos(40, 47);
		Size(25, 7);
		BorderSize(2);
		BevelSize(3);
		Font("TINY");
		Text("Med");
		Cursor("Highlight");
		Style("ROLLOVER", "OUTLINE");
		NotifyParent("Button::Press", "Med");
		}
		OnEvent("Med")
			{

// ----- values 0, 1 and 2  -------

Cmd("options.graphics.sky=1");
Cmd("options.graphics.lighting=1");
Cmd("options.graphics.terrain=1");
Cmd("options.graphics.particles=1");
Cmd("options.graphics.objects=1");
Cmd("options.graphics.props=1");
Cmd("options.graphics.shadows=1");
//Cmd("options.graphics.texsize=0");

// ------ values 0 and 1 --------

//Cmd("options.graphics.mirrors=0");
//Cmd("options.graphics.rain=0");
//Cmd("options.graphics.fog=0");

			}
	CreateControl("HighSet", "BUTTON")
	{
	//	ColorGroup("TVBUTTON2");
		Pos(73, 47);
		Size(25, 7);
		BorderSize(2);
		BevelSize(3);
		Font("TINY");
		Text("High");
		Cursor("Highlight");
		Style("ROLLOVER", "OUTLINE");
		NotifyParent("Button::Press", "High");
		}
		OnEvent("High")
			{

// ----- values 0, 1 and 2  -------

Cmd("options.graphics.sky=2");
Cmd("options.graphics.lighting=2");
Cmd("options.graphics.terrain=2");
Cmd("options.graphics.particles=2");
Cmd("options.graphics.objects=2");
Cmd("options.graphics.props=2");
Cmd("options.graphics.shadows=1");
//Cmd("options.graphics.texsize=0");

// ------ values 0 and 1 --------

//Cmd("options.graphics.mirrors=1");
//Cmd("options.graphics.rain=0");
//Cmd("options.graphics.fog=0");

			}
	
}
