// ============================
// BATTLEZONE MISC EDITOR 
// ============================
//
// ============================================
// Oiled, polished and pinstriped by RocketmanX
// ============================================
// 
//         by Lizard
// CREATE THE MISC EDITOR WINDOW
//

CreateControl("EditMisc", "WINDOW")
{
	Pos(2, 10);
	Size(105, 415);

	ColorGroup("BACKGROUND");

	CreateControl("Lightning", "STATIC")
	{
		Pos(5, 5);
		Size(100, 10);
		Font("TINY");
		JustifyText("LEFT");
		Text("Lightning options");
		Style("TRANSPARENT");
	}

	CreateControl("BoltDuration", "STATIC")
	{
		Pos(5, 25);
		Size(80, 10);
		Font("TINY");
		JustifyText("LEFT");
		Text("Duration");
		Style("TRANSPARENT");
	}

	CreateControl("BoltDuration1", "BUTTON")
	{
		Pos(5, 45);
		Size(25, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("0.1");
		Cursor("Highlight");

		NotifyParent("Button::Press", "BoltDuration1");
	}

	OnEvent("BoltDuration1")
	{
		Cmd("sky.bolt.duration 0.1");
	}

	CreateControl("BoltDuration2", "BUTTON")
	{
		Pos(40, 45);
		Size(25, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("0.2");
		Cursor("Highlight");

		NotifyParent("Button::Press", "BoltDuration2");
	}

	OnEvent("BoltDuration2")
	{
		Cmd("sky.bolt.duration 0.2");
	}


	CreateControl("BoltDuration3", "BUTTON")
	{
		Pos(75, 45);
		Size(25, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("0.5");
		Cursor("Highlight");

		NotifyParent("Button::Press", "BoltDuration3");
	}

	OnEvent("BoltDuration3")
	{
		Cmd("sky.bolt.duration 0.5");
	}

	CreateControl("BoltEnable", "STATIC")
	{
		Pos(5, 65);
		Size(80, 10);
		Font("TINY");
		JustifyText("LEFT");
		Text("Lightning on/off");
		Style("TRANSPARENT");
	}

	CreateControl("BoltEnable1", "BUTTON")
	{
		Pos(5, 85);
		Size(45, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("Enable");
		Cursor("Highlight");

		NotifyParent("Button::Press", "BoltEnable1");
	}

	OnEvent("BoltEnable1")
	{
		Cmd("sky.bolt.enable 1");
	}

	CreateControl("BoltEnable2", "BUTTON")
	{
		Pos(55, 85);
		Size(45, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("Disable");
		Cursor("Highlight");

		NotifyParent("Button::Press", "BoltEnable2");
	}

	OnEvent("BoltEnable2")
	{
		Cmd("sky.bolt.enable 0");
	}

	CreateControl("BoltDelayMin", "STATIC")
	{
		Pos(5, 105);
		Size(80, 10);
		Font("TINY");
		JustifyText("LEFT");
		Text("Minimum Delay");
		Style("TRANSPARENT");
	}


	CreateControl("BoltDelMin1", "BUTTON")
	{
		Pos(5, 125);
		Size(15, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("2");
		Cursor("Highlight");

		NotifyParent("Button::Press", "BoltDelMin1");
	}

	OnEvent("BoltDelMin1")
	{
		Cmd("sky.bolt.mindelay 2.0");
	}


	CreateControl("BoltDelMin2", "BUTTON")
	{
		Pos(30, 125);
		Size(15, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("5");
		Cursor("Highlight");

		NotifyParent("Button::Press", "BoltDelMin2");
	}

	OnEvent("BoltDelMin2")
	{
		Cmd("sky.bolt.mindelay 5.0");
	}

	CreateControl("BoltDelMin3", "BUTTON")
	{
		Pos(55, 125);
		Size(15, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("10");
		Cursor("Highlight");

		NotifyParent("Button::Press", "BoltDelMin3");
	}

	OnEvent("BoltDelMin3")
	{
		Cmd("sky.bolt.mindelay 10");
	}

	CreateControl("BoltDelMin4", "BUTTON")
	{
		Pos(80, 125);
		Size(15, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("15");
		Cursor("Highlight");

		NotifyParent("Button::Press", "BoltDelMin4");
	}

	OnEvent("BoltDelMin4")
	{
		Cmd("sky.bolt.mindelay 15");
	}

	CreateControl("BoltDelayMax", "STATIC")
	{
		Pos(5, 145);
		Size(80, 10);
		Font("TINY");
		JustifyText("LEFT");
		Text("Maximum Delay");
		Style("TRANSPARENT");
	}

	CreateControl("BoltDelMax1", "BUTTON")
	{
		Pos(5, 165);
		Size(15, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("10");
		Cursor("Highlight");

		NotifyParent("Button::Press", "BoltDelMax1");
	}

	OnEvent("BoltDelMax1")
	{
		Cmd("sky.bolt.maxdelay 10");
	}



	CreateControl("BoltDelMax2", "BUTTON")
	{
		Pos(30, 165);
		Size(15, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("15");
		Cursor("Highlight");

		NotifyParent("Button::Press", "BoltDelMax2");
	}

	OnEvent("BoltDelMax2")
	{
		Cmd("sky.bolt.maxdelay 15");
	}

	CreateControl("BoltDelMax3", "BUTTON")
	{
		Pos(55, 165);
		Size(15, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("20");
		Cursor("Highlight");

		NotifyParent("Button::Press", "BoltDelMax3");
	}

	OnEvent("BoltDelMax3")
	{
		Cmd("sky.bolt.maxdelay 20");
	}


	CreateControl("BoltDelMax4", "BUTTON")
	{
		Pos(80, 165);
		Size(15, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("25");
		Cursor("Highlight");

		NotifyParent("Button::Press", "BoltDelMax4");
	}

	OnEvent("BoltDelMax4")
	{
		Cmd("sky.bolt.maxdelay 25");
	}

	CreateControl("BoltDistance", "STATIC")
	{
		Pos(5, 185);
		Size(80, 10);
		Font("TINY");
		JustifyText("LEFT");
		Text("Distance");
		Style("TRANSPARENT");
	}

	CreateControl("BoltDist1", "BUTTON")
	{
		Pos(5, 205);
		Size(15, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("50");
		Cursor("Highlight");

		NotifyParent("Button::Press", "BoltDist1");
	}

	OnEvent("BoltDist1")
	{
		Cmd("sky.bolt.distance 50");
	}


	CreateControl("BoltDist2", "BUTTON")
	{
		Pos(30, 205);
		Size(15, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("100");
		Cursor("Highlight");

		NotifyParent("Button::Press", "BoltDist2");
	}

	OnEvent("BoltDist2")
	{
		Cmd("sky.bolt.distance 100");
	}

	CreateControl("BoltDist3", "BUTTON")
	{
		Pos(55, 205);
		Size(15, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("200");
		Cursor("Highlight");

		NotifyParent("Button::Press", "BoltDist3");
	}

	OnEvent("BoltDist3")
	{
		Cmd("sky.bolt.distance 200");
	}

	CreateControl("BoltDist4", "BUTTON")
	{
		Pos(80, 205);
		Size(15, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("400");
		Cursor("Highlight");

		NotifyParent("Button::Press", "BoltDist4");
	}

	OnEvent("BoltDist4")
	{
		Cmd("sky.bolt.distance 400");
	}

	CreateControl("BoltWidth", "STATIC")
	{
		Pos(5, 225);
		Size(80, 10);
		Font("TINY");
		JustifyText("LEFT");
		Text("Start Width");
		Style("TRANSPARENT");
	}

	CreateControl("Boltwidth1", "BUTTON")
	{
		Pos(5, 245);
		Size(15, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("0.2");
		Cursor("Highlight");

		NotifyParent("Button::Press", "Boltwidth1");
	}

	OnEvent("Boltwidth1")
	{
		Cmd("sky.bolt.startwidth 0.2");
	}

	CreateControl("Boltwidth2", "BUTTON")
	{
		Pos(30, 245);
		Size(15, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("0.5");
		Cursor("Highlight");

		NotifyParent("Button::Press", "Boltwidth2");
	}

	OnEvent("Boltwidth2")
	{
		Cmd("sky.bolt.startwidth 0.5");
	}

	CreateControl("Boltwidth3", "BUTTON")
	{
		Pos(55, 245);
		Size(15, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("0.7");
		Cursor("Highlight");

		NotifyParent("Button::Press", "Boltwidth3");
	}

	OnEvent("Boltwidth3")
	{
		Cmd("sky.bolt.startwidth 0.7");
	}

	CreateControl("Boltwidth4", "BUTTON")
	{
		Pos(80, 245);
		Size(15, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("1.0");
		Cursor("Highlight");

		NotifyParent("Button::Press", "Boltwidth4");
	}

	OnEvent("Boltwidth4")
	{
		Cmd("sky.bolt.startwidth 1.0");
	}


	CreateControl("WaterOptions", "STATIC")
	{
		Pos(5, 265);
		Size(80, 10);
		Font("TINY");
		JustifyText("LEFT");
		Text("Water Options");
		Style("TRANSPARENT");
	}


	CreateControl("WaterDamage", "STATIC")
	{
		Pos(5, 285);
		Size(80, 10);
		Font("TINY");
		JustifyText("LEFT");
		Text("Water Damage");
		Style("TRANSPARENT");
	}

	CreateControl("WaterDamage1", "BUTTON")
	{
		Pos(5, 305);
		Size(15, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("0");
		Cursor("Highlight");

		NotifyParent("Button::Press", "WaterDamage1");
	}

	OnEvent("WaterDamage1")
	{
		Cmd("editor.water.damage 0");
	}

	CreateControl("WaterDamage2", "BUTTON")
	{
		Pos(30, 305);
		Size(15, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("200");
		Cursor("Highlight");

		NotifyParent("Button::Press", "WaterDamage2");
	}

	OnEvent("WaterDamage2")
	{
		Cmd("editor.water.damage 200");
	}


	CreateControl("WaterDamage3", "BUTTON")
	{
		Pos(55, 305);
		Size(15, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("400");
		Cursor("Highlight");

		NotifyParent("Button::Press", "WaterDamage3");
	}

	OnEvent("WaterDamage3")
	{
		Cmd("editor.water.damage 400");
	}

	CreateControl("WaterDamage4", "BUTTON")
	{
		Pos(80, 305);
		Size(15, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("600");
		Cursor("Highlight");

		NotifyParent("Button::Press", "WaterDamage4");
	}

	OnEvent("WaterDamage4")
	{
		Cmd("editor.water.damage 600");
	}


	CreateControl("Reflections", "STATIC")
	{
		Pos(5, 325);
		Size(80, 10);
		Font("TINY");
		JustifyText("LEFT");
		Text("Reflections");
		Style("TRANSPARENT");
	}

	CreateControl("MirrorEnable1", "BUTTON")
	{
		Pos(5, 345);
		Size(45, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("Enable");
		Cursor("Highlight");

		NotifyParent("Button::Press", "MirrorEnable1");
	}

	OnEvent("MirrorEnable1")
	{
		Cmd("mirror.enable 1");
	}


	CreateControl("MirrorEnable2", "BUTTON")
	{
		Pos(55, 345);
		Size(45, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("Disable");
		Cursor("Highlight");

		NotifyParent("Button::Press", "MirrorEnable2");
	}

	OnEvent("MirrorEnable2")
	{
		Cmd("mirror.enable 0");
	}

	CreateControl("MirrorEnable3", "BUTTON")
	{
		Pos(10, 365);
		Size(80, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("Toggle");
		Cursor("Highlight");

		NotifyParent("Button::Press", "MirrorEnable3");
	}

	OnEvent("MirrorEnable3")
	{
		Cmd("mirror.Toggle");
	}


	CreateControl("MirrorEnable4", "BUTTON")
	{
		Pos(10, 385);
		Size(80, 9);
		BorderSize(3);
		BevelSize(3);
		Font("TINY");
		Style("ROLLOVER", "OUTLINE");
       	Text("Toggle Texture");
		Cursor("Highlight");

		NotifyParent("Button::Press", "MirrorEnable4");
	}

	OnEvent("MirrorEnable4")
	{
		Cmd("mirror.texture");
	}

}