// =======================
// BATTLEZONE COLOR EDITOR
// =======================

//
// CREATE COLOR EDITOR VARIABLES
//
ConfigureVarSys()
{
	CreateInteger("editor.color.shape.value", 0);
	SetIntegerRange("editor.color.shape.value", 0, 3);
	CreateInteger("editor.color.mode.value", 0);
	SetIntegerRange("editor.color.mode.value", 0, 5);
}

//
// CREATE THE COLOR EDITOR WINDOW
//
CreateControl("EditColor", "WINDOW")
{
	Pos(0, 165);
	Size(315, 1275);

	ColorGroup("BACKGROUND");

	CreateControl("WidthTitle", "STATIC")
	{
		Pos(15, 15);
		Size(240, 30);
		Font("TINY");
		JustifyText("LEFT");
		Text("Width");
		Style("TRANSPARENT");
	}

	CreateControl("Width", "EDIT")
	{
		Pos(24, 60);
		Size(267, 27);
		BorderSize(9);
		BevelSize(9);
		Cursor("Highlight");
		Font("TINY");
		UseVar("editor.color.size.width");
		Style("ROLLOVER", "OUTLINE");
	}

	CreateControl("DepthTitle", "STATIC")
	{
		Pos(15, 120);
		Size(240, 30);
		Font("TINY");
		JustifyText("LEFT");
		Text("Depth");
		Style("TRANSPARENT");
	}

	CreateControl("Depth", "EDIT")
	{
		Pos(24, 165);
		Size(267, 27);
		BorderSize(9);
		BevelSize(9);
		Cursor("Highlight");
		Font("TINY");
		UseVar("editor.color.size.depth");
		Style("ROLLOVER", "OUTLINE");
	}

	CreateControl("ShapeTitle", "STATIC")
	{
		Pos(15, 225);
		Size(240, 30);
		Font("TINY");
		JustifyText("LEFT");
		Text("Shape");
		Style("TRANSPARENT");
	}

	CreateControl("ShapeSquare", "BUTTON")
	{
		Pos(24, 270);
		Size(117, 27);
		BorderSize(9);
		BevelSize(9);
		Font("TINY");
		Text("Square");
		Cursor("Highlight");
		Style("ROLLOVER", "RADIO", "OUTLINE");
		UseVar("editor.color.shape.value");
		Value(0);
		NotifyParent("Button::Select", "Square");
	}

	CreateControl("ShapeCircle", "BUTTON")
	{
		Pos(174, 270);
		Size(117, 27);
		BorderSize(9);
		BevelSize(9);
		Font("TINY");
		Text("Circle");
		Cursor("Highlight");
		Style("ROLLOVER", "RADIO", "OUTLINE");
		UseVar("editor.color.shape.value");
		Value(1);
		NotifyParent("Button::Select", "Circle");
	}

	CreateControl("ShapeCone", "BUTTON")
	{
		Pos(24, 330);
		Size(117, 27);
		BorderSize(9);
		BevelSize(9);
		Font("TINY");
		Text("Cone");
		Cursor("Highlight");
		Style("ROLLOVER", "RADIO", "OUTLINE");
		UseVar("editor.color.shape.value");
		Value(2);
		NotifyParent("Button::Select", "Cone");
	}

	CreateControl("ShapeBell", "BUTTON")
	{
		Pos(174, 330);
		Size(117, 27);
		BorderSize(9);
		BevelSize(9);
		Font("TINY");
		Text("Bell");
		Cursor("Highlight");
		Style("ROLLOVER", "RADIO", "OUTLINE");
		UseVar("editor.color.shape.value");
		Value(3);
		NotifyParent("Button::Select", "Bell");
	}

	CreateControl("ModeTitle", "STATIC")
	{
		Pos(15, 390);
		Size(240, 30);
		Font("TINY");
		JustifyText("LEFT");
		Text("Mode");
		Style("TRANSPARENT");
	}

	CreateControl("ModePaint", "BUTTON")
	{
		Pos(24, 435);
		Size(117, 27);
		BorderSize(9);
		BevelSize(9);
		Font("TINY");
		Text("Paint");
		Cursor("Highlight");
		Style("ROLLOVER", "RADIO", "OUTLINE");
		UseVar("editor.color.mode.value");
		Value(0);
		NotifyParent("Button::Select", "Paint");
	}

	CreateControl("Spray", "BUTTON")
	{
		Pos(174, 435);
		Size(117, 27);
		BorderSize(9);
		BevelSize(9);
		Font("TINY");
		Text("Spray");
		Cursor("Highlight");
		Style("ROLLOVER", "RADIO", "OUTLINE");
		UseVar("editor.color.mode.value");
		Value(1);
		NotifyParent("Button::Select", "Spray");
	}

	CreateControl("Raise", "BUTTON")
	{
		Pos(24, 495);
		Size(117, 27);
		BorderSize(9);
		BevelSize(9);
		Font("TINY");
		Text("Raise");
		Cursor("Highlight");
		Style("ROLLOVER", "RADIO", "OUTLINE");
		UseVar("editor.color.mode.value");
		Value(2);
		NotifyParent("Button::Select", "Raise");
	}

	CreateControl("Blend", "BUTTON")
	{
		Pos(174, 495);
		Size(117, 27);
		BorderSize(9);
		BevelSize(9);
		Font("TINY");
		Text("Blend");
		Cursor("Highlight");
		Style("ROLLOVER", "RADIO", "OUTLINE");
		UseVar("editor.color.mode.value");
		Value(3);
		NotifyParent("Button::Select", "Blend");
	}

	CreateControl("Eyedrop", "BUTTON")
	{
		Pos(24, 555);
		Size(117, 27);
		BorderSize(9);
		BevelSize(9);
		Font("TINY");
		Text("Eyedrop");
		Cursor("Highlight");
		Style("ROLLOVER", "RADIO", "OUTLINE");
		UseVar("editor.color.mode.value");
		Value(4);
		NotifyParent("Button::Select", "Eyedrop");
	}
	
	CreateControl("PressureTitle", "STATIC")
	{
		Pos(15, 615);
		Size(240, 30);
		Font("TINY");
		JustifyText("LEFT");
		Text("Pressure");
		Style("Transparent");
	}

	CreateControl("Pressure", "EDIT")
	{
		Pos(24, 660);
		Size(267, 27);
		BorderSize(9);
		BevelSize(9);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		UseVar("editor.color.pressure");
	}

	CreateControl("ForegroundTitle", "STATIC")
	{
		Pos(15, 720);
		Size(240, 30);
		Font("TINY");
		JustifyText("LEFT");
		Text("Foreground");
		Style("Transparent");
	}

	CreateControl("ForegroundRed", "EDIT")
	{
		Pos(24, 765);
		Size(66, 27);
		BorderSize(9);
		BevelSize(9);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		UseVar("editor.color.foreground.red");
	}

	CreateControl("ForegroundGreen", "EDIT")
	{
		Pos(123, 765);
		Size(66, 27);
		BorderSize(9);
		BevelSize(9);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		UseVar("editor.color.foreground.green");
	}

	CreateControl("ForegroundBlue", "EDIT")
	{
		Pos(222, 765);
		Size(66, 27);
		BorderSize(9);
		BevelSize(9);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		UseVar("editor.color.foreground.blue");
	}

	CreateControl("BackgroundTitle", "STATIC")
	{
		Pos(15, 825);
		Size(240, 30);
		Font("TINY");
		JustifyText("LEFT");
		Text("Background");
		Style("Transparent");
	}

	CreateControl("BackgroundRed", "EDIT")
	{
		Pos(24, 870);
		Size(66, 27);
		BorderSize(9);
		BevelSize(9);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		UseVar("editor.color.background.red");
	}

	CreateControl("BackgroundGreen", "EDIT")
	{
		Pos(123, 870);
		Size(66, 27);
		BorderSize(9);
		BevelSize(9);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		UseVar("editor.color.background.green");
	}

	CreateControl("BackgroundBlue", "EDIT")
	{
		Pos(222, 870);
		Size(66, 27);
		BorderSize(9);
		BevelSize(9);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
		Cursor("Highlight");
		UseVar("editor.color.background.blue");
	}
// ADDED BY THE BLACK ROOKS - Colour Fill Button
CreateControl("Fill", "BUTTON")
	{
		Pos(24, 930);
		Size(267, 27);
		BorderSize(9);
		BevelSize(9);
		Font("TINY");
		Text("Fill with f/ground");
		Cursor("Highlight");
		Style("ROLLOVER", "RADIO", "OUTLINE");
		UseVar("editor.color.mode.value");
		Value(5);
		NotifyParent("Button::Select", "Fill");
	}

	OnEvent("Control::Activate")
	{
		Cmd("editor.mode.color");
	}

	OnEvent("Square")
	{
		Cmd("editor.color.shape.square");
	}

	OnEvent("Circle")
	{
		Cmd("editor.color.shape.circle");
	}

	OnEvent("Cone")
	{
		Cmd("editor.color.shape.cone");
	}

	OnEvent("Bell")
	{
		Cmd("editor.color.shape.bell");
	}

	OnEvent("Paint")
	{
		Cmd("editor.color.mode.paint");
	}

	OnEvent("Spray")
	{
		Cmd("editor.color.mode.spray");
	}

	OnEvent("Raise")
	{
		Cmd("editor.color.mode.raise");
	}

	OnEvent("Blend")
	{
		Cmd("editor.color.mode.blend");
	}

	OnEvent("Eyedrop")
	{
		Cmd("editor.color.mode.eyedrop");
	}
//ADDED BY THE BLACK ROOKS Colour Fill Command
	OnEvent("Fill")
	{
		Cmd("editor.color.fill");
	}

}
