// ================
// BATTLEZONE CLASSIC SHELL - Client Game Lobby Page
// Made by General BlackDragon
// ================

//
// CREATE SHELL MULTIPLAYER GAME OPTIONS PAGE
//
CreateControl("ShellMultiClientOption", "WINDOW")
{
	Style("TRANSPARENT", "INERT");
	Geom("PARENTWIDTH", "PARENTHEIGHT");

	OnEvent("Control::Activate")
	{
		cmd("shell.background multip_client.tga");
		Activate("|ShellMultiVehicle");
		Deactivate("|ShellMulti");
		Deactivate("|ShellMultiJoin");
		Activate("|MapInfo");
		//FadeOut("|MapInfo_Small");
	}

	CreateControl("BZCTag", "STATIC")
	{
		ColorGroup("WHITE");
		Geometry("HCENTRE", "TOP");
		Position(0, 0);
		Size(128, 32);
		Image("BZCTag.tga", 0, 0, 128, 32);
	}

	//
	// create the "leave" button
	//
	CreateControl("ButtonTLBG", "STATIC")
	{
		ColorGroup("WHITE");
		Geometry("LEFT", "TOP");
		Position(0, 0);
		Size(154, 34);
		Image("ButtonTLBG.tga", 0, 2, 308, 70);
	}
	CreateControl("Leave", "BUTTON")
	{
		ColorGroup("BZCBUTTON");
		Geometry("LEFT", "TOP");
		Position(0, 0);
		Size(154, 34);
		Style("ROLLOVER");
		Cursor("Highlight");
		Image("ButtonTL.tga", 0, 1, 154, 35);
		NotifyParent("Button::Press", "Leave");

		CreateControl("Text", "STATIC")
		{
			Geometry("RIGHT", "TOP");
			Position(-18, 9);
			Size(90, 12);
			ColorGroup("BZCBUTTON");
			Font("SMALL");
			Style("INERT");
			JustifyText("CENTER");
			Text("BACK");
		}
	}

	//
	// create the "launch" button
	//
	CreateControl("Launch", "STATIC")
	{
		ColorGroup("WHITE");
		Geometry("RIGHT", "TOP");
		Position(0, 0);
		Size(152, 34);
		Image("ButtonTLBG.tga", 304, 2, 0, 70);

		CreateControl("Launch", "BUTTON")
		{
			ColorGroup("BZCBUTTON");
			Geometry("RIGHT", "TOP");
			Position(0, 0);
			Size(152, 34);
			Style("ROLLOVER");
			Cursor("Highlight");
			Image("ButtonTL.tga", 152, 1, 0, 35);
			NotifyParent("Button::Press", "Launch");

			CreateControl("Text", "STATIC")
			{
				Geometry("LEFT", "TOP");
				Position(18, 9);
				Size(90, 12);
				ColorGroup("BZCBUTTON");
				Font("SMALL");
				Style("INERT");
				JustifyText("CENTER");
				Text("LAUNCH");
			}
		}


		// handle the launch event
		OnEvent("Launch")
		{
			//Cmd("network.chattoggle");
			cmd("shell.stopSound battlezone.ogg");
			Cmd("shell.multi.launch");
			Cmd("network.launch");
		}
	}

	//
	// create options button
	//
	CreateControl("ButtonBLBG", "STATIC")
	{
		ColorGroup("WHITE");
		Geometry("LEFT", "BOTTOM");
		Position(0, 0);
		Size(201, 35);
		Image("ButtonBLBG.tga", 0, 0, 402, 70);
	}
	CreateControl("MPOptions", "BUTTON")
	{
		ColorGroup("BZCBUTTON");
		Geometry("LEFT", "BOTTOM");
		Position(0, 0);
		Size(201, 35);
		Style("ROLLOVER");
		Cursor("Highlight");
		Image("ButtonBL.tga", 0, 0, 201, 35);
		NotifyParent("Button::Press", "MPOptions");

		CreateControl("Text", "STATIC")
		{
			Geometry("RIGHT", "TOP");
			Position(-65, 12);
			Size(90, 12);
			ColorGroup("BZCBUTTON");
			Font("SMALL");
			Style("INERT");
			JustifyText("CENTER");
			Text("OPTIONS");
		}
	}

	OnEvent("Leave")
	{
		//Cmd("network.chattoggle");
		Cmd("network.session.leave");
		// FadeIn/Outs done from NetCommands::DoIfaceLeaveSession() now
		//Activate("|ShellMultiServerInfo");
	}

	OnEvent("MPOptions")
	{
		Activate("|MP2OptionPanel");
		cmd("shell.background single_options.tga");
	}

	//
	// create the options window
	//
	CreateControl("Option", "WINDOW")
	{
		Geometry("RIGHT", "TOP");
		Position(-35, 190);
		Size(570, 100);
		Style("TRANSPARENT", "INERT");

		CreateControl("PlayerLimitTitle", "STATIC")
		{
			ColorGroup("LISTBOX");
			Geometry("LEFT", "TOP");
			Position(320, 50);
			Size(95, 9);
			Font("SMALL");
			Text("Player Limit");
			JustifyText("LEFT");
			Style("TRANSPARENT");
		}

		CreateControl("PlayerLimitEdit", "EDIT")
		{
			ColorGroup("BZCLISTBOX");
			Geometry("LEFT", "TOP");
			Position(399, 50);
			Size(29, 10);
			JustifyText("CENTER");
			Font("SMALL");
			Style("ROLLOVER", "INERT");
			Cursor("Highlight");
			UseVar("network.session.ivar2");
			//SetIntegerRange("network.session.ivar2", 0, 14);
		}

		CreateControl("TimeLimit", "STATIC")
		{
			ColorGroup("LISTBOX");
			Geometry("LEFT", "TOP");
			Position(329, 71);
			Size(175, 9);
			Font("SMALL");
			Text("Time Limit");
			JustifyText("LEFT");
			Style("TRANSPARENT");
		}

		CreateControl("TimeEdit", "EDIT")
		{
			ColorGroup("BZCLISTBOX");
			Geometry("LEFT", "TOP");
			Position(399, 71);
			Size(29, 10);
			JustifyText("CENTER");
			Font("SMALL");
			Style("ROLLOVER", "INERT");
			Cursor("Highlight");
			UseVar("network.session.ivar1");
			//SetIntegerRange("network.session.ivar1", 0, 864000);
		}

		CreateControl("TeamsTitle", "STATIC")
		{
			ColorGroup("LISTBOX");
			Geometry("LEFT", "TOP");
			Position(473, 29);
			Size(175, 9);
			Font("SMALL");
			Text("Teams");
			JustifyText("LEFT");
			Style("TRANSPARENT");
		}

		CreateControl("TeamsOff", "BUTTON")
		{
			ColorGroup("BZCLISTBOX");
			Geometry("LEFT", "TOP");
			Position(542, 35);
			Size(19, 9);
			BorderSize(0);
			BevelSize(0);
			Style("ROLLOVER", "RADIO", "INERT");
			Cursor("Highlight");
			Font("SMALL");
			Text("OFF");
			UseVar("network.session.ivar3");
			Sound("MouseEnter", "multion.wav");
			Sound("ButtonPress", "multiclk.wav");
			Value(0);
		}

		CreateControl("TeamsOn", "BUTTON")
		{
			ColorGroup("BZCLISTBOX");
			Geometry("LEFT", "TOP");
			Position(542, 25);
			Size(19, 9);
			BorderSize(0);
			BevelSize(0);
			Style("ROLLOVER", "RADIO", "INERT");
			Cursor("Highlight");
			Font("SMALL");
			Text("ON");
			UseVar("network.session.ivar3");
			Sound("MouseEnter", "multion.wav");
			Sound("ButtonPress", "multiclk.wav");
			Value(1);
		}

		CreateControl("KillLimit", "STATIC")
		{
			ColorGroup("LISTBOX");
			Geometry("LEFT", "TOP");
			Position(467, 50);
			Size(175, 9);
			Font("SMALL");
			Text("Kill Limit");
			JustifyText("LEFT");
			Style("TRANSPARENT");
		}

		CreateControl("KillEdit", "EDIT")
		{
			ColorGroup("BZCLISTBOX");
			Geometry("LEFT", "TOP");
			Position(539, 50);
			Size(29, 10);
			JustifyText("CENTER");
			Font("SMALL");
			Style("ROLLOVER", "INERT", "OUTLINE");
			Cursor("Highlight");
			UseVar("network.session.ivar0");
			//SetIntegerRange("network.session.ivar0", 0, 99999);
		}

		CreateControl("Lives", "STATIC")
		{
			ColorGroup("LISTBOX");
			Geometry("LEFT", "TOP");
			Position(318, 29);
			Size(165, 9);
			Font("SMALL");
			Text("Player Lives");
			JustifyText("LEFT");
			Style("TRANSPARENT");
		}

		CreateControl("LivesEdit", "EDIT")
		{
			ColorGroup("BZCLISTBOX");
			Geometry("LEFT", "TOP");
			Position(399, 30);
			Size(29, 9);
			JustifyText("RIGHT");
			Font("SMALL");
			Style("ROLLOVER", "INERT", "OUTLINE");
			Cursor("Highlight");
			UseVar("network.session.ivar60");
			SetIntegerRange("network.session.ivar60", 0, 999);
		}

		CreateControl("SyncTitle", "STATIC")
		{
			ColorGroup("LISTBOX");
			Geometry("LEFT", "TOP");
			Position(0, 50);
			Size(85, 9);
			Font("SMALL");
			Text("Sync Join");
			JustifyText("RIGHT");
			Style("TRANSPARENT");
		}

		CreateControl("SyncOff", "BUTTON")
		{
			ColorGroup("BZCLISTBOX");
			Geometry("LEFT", "TOP");
			Position(120, 56);
			Size(19, 9);
			BorderSize(0);
			BevelSize(0);
			Style("ROLLOVER", "RADIO", "INERT");
			Cursor("Highlight");
			Font("SMALL");
			Text("OFF");
			UseVar("network.session.ivar8");
			Sound("MouseEnter", "multion.wav");
			Sound("ButtonPress", "multiclk.wav");
			Value(0);
		}

		CreateControl("SyncOn", "BUTTON")
		{
			ColorGroup("BZCLISTBOX");
			Geometry("LEFT", "TOP");
			Position(120, 46);
			Size(19, 9);
			BorderSize(0);
			BevelSize(0);
			Style("ROLLOVER", "RADIO", "INERT");
			Cursor("Highlight");
			Font("SMALL");
			Text("ON");
			UseVar("network.session.ivar8");
			Sound("MouseEnter", "multion.wav");
			Sound("ButtonPress", "multiclk.wav");
			Value(1);
		}

		CreateControl("PausingTitle", "STATIC")
		{
			ColorGroup("LISTBOX");
			Geometry("LEFT", "TOP");
			Position(3, 71);
			Size(85, 9);
			Font("SMALL");
			Text("Pause Join");
			JustifyText("RIGHT");
			Style("TRANSPARENT");
		}

		CreateControl("PausingOff", "BUTTON")
		{
			ColorGroup("BZCLISTBOX");
			Geometry("LEFT", "TOP");
			Position(120, 77);
			Size(19, 9);
			BorderSize(0);
			BevelSize(0);
			Style("ROLLOVER", "RADIO", "INERT");
			Cursor("Highlight");
			Font("SMALL");
			Text("OFF");
			UseVar("network.session.ivar10");
			Sound("MouseEnter", "multion.wav");
			Sound("ButtonPress", "multiclk.wav");
			Value(1);
		}

		CreateControl("PausingOn", "BUTTON")
		{
			ColorGroup("BZCLISTBOX");
			Geometry("LEFT", "TOP");
			Position(120, 67);
			Size(19, 9);
			BorderSize(0);
			BevelSize(0);
			Style("ROLLOVER", "RADIO", "INERT");
			Cursor("Highlight");
			Font("SMALL");
			Text("ON");
			UseVar("network.session.ivar10");
			Sound("MouseEnter", "multion.wav");
			Sound("ButtonPress", "multiclk.wav");
			Value(0);
		}

		CreateControl("ExtraOptions", "BUTTON")
		{
			ColorGroup("BUTTONBOXBG");
			Geometry("RIGHT", "TOP");
			Position(-2, 68);
			Size(120, 9);
			BorderSize(0);
			BevelSize(0);
			Style("ROLLOVER", "OUTLINE");
			Cursor("Highlight");
			Font("SMALL");
			Text("Extra Options");
			NotifyParent("Button::Press", "DoExtra");
			Sound("MouseEnter", "multion.wav");
			Sound("ButtonPress", "multiclk.wav");
		}

		OnEvent("DoExtra")
		{
			cmd("shell.background multip_extra.png");
			Cmd("network.session.openextras");
		}

		CreateControl("ShowTeamNames", "BUTTON")
		{
			ColorGroup("BUTTONBOXBG");
			Geometry("RIGHT", "TOP");
			Position(-2, 77);
			Size(120, 9);
			Style("Rollover", "OUTLINE");
			Cursor("Highlight");
			Font("SMALL");
			Text("Team Names");
			Sound("MouseEnter", "multion.wav");
			Sound("ButtonPress", "multiclk.wav");
			NotifyParent("Button::Press","DoShowNames");
		}

		OnEvent("DoShowNames")
		{
			Cmd("network.session.showteamnames");
		}

		CreateControl("JoinsTitle", "STATIC")
		{
			ColorGroup("LISTBOX");
			Geometry("LEFT", "TOP");
			Position(140, 50);
			Size(85, 9);
			Font("SMALL");
			Text("Joins");
			JustifyText("RIGHT");
			Style("TRANSPARENT");
		}

		CreateControl("JoinsOff", "BUTTON")
		{
			ColorGroup("BZCLISTBOX");
			Geometry("LEFT", "TOP");
			Position(260, 56);
			Size(19, 9);
			BorderSize(0);
			BevelSize(0);
			Style("ROLLOVER", "RADIO", "INERT");
			Cursor("Highlight");
			Font("SMALL");
			Text("OFF");
			UseVar("network.session.joinsonoff");
			Sound("MouseEnter", "multion.wav");
			Sound("ButtonPress", "multiclk.wav");
			Value(0);
		}

		CreateControl("JoinsOn", "BUTTON")
		{
			ColorGroup("BZCLISTBOX");
			Geometry("LEFT", "TOP");
			Position(260, 46);
			Size(19, 9);
			BorderSize(0);
			BevelSize(0);
			Style("ROLLOVER", "RADIO", "INERT");
			Cursor("Highlight");
			Font("SMALL");
			Text("ON");
			UseVar("network.session.joinsonoff");
			Sound("MouseEnter", "multion.wav");
			Sound("ButtonPress", "multiclk.wav");
			Value(1);
		}

		CreateControl("MWFTitle", "STATIC")
		{
			ColorGroup("LISTBOX");
			Geometry("LEFT", "TOP");
			Position(470, 8);
			Size(165, 9);
			Font("SMALL");
			Text("MW Freq");
			JustifyText("LEFT");
			Style("TRANSPARENT");
		}

		CreateControl("MWFEdit", "EDIT")
		{
			ColorGroup("BZCLISTBOX");
			Geometry("LEFT", "TOP");
			Position(538, 9);
			Size(29, 9);
			JustifyText("RIGHT");
			Font("SMALL");
			Style("ROLLOVER", "INERT", "OUTLINE");
			Cursor("Highlight");
			UseVar("network.session.ivar20");
			SetIntegerRange("network.session.ivar20", 1, 20);
		}

		CreateControl("PingLimitTitle", "STATIC")
		{
			ColorGroup("LISTBOX");
			Geometry("LEFT", "TOP");
			Position(170, 71);
			Size(65, 9);
			Font("SMALL");
			Text("Max Ping");
			JustifyText("RIGHT");
			Style("TRANSPARENT");
		}

		CreateControl("PingLimitEdit", "EDIT")
		{
			ColorGroup("BZCLISTBOX");
			Geometry("LEFT", "TOP");
			Position(255, 72);
			Size(29, 9);
			Font("SMALL");
			Style("ROLLOVER", "INERT");
			Cursor("Highlight");
			UseVar("network.session.maxping");
		}

	}

	//
	// create the teams window
	//
	CreateControl("Players", "WINDOW")
	{
		Geometry("LEFT", "BOTTOM");
		Position(40, -45);
		Size(265, 125);
		Style("TRANSPARENT", "OUTLINE");

		CreateControl("Title", "STATIC")
		{
			ColorGroup("LISTBOX");
			Geometry("LEFT", "TOP");
			Position(20, -20);
			Size(100, 10);
			Style("TRANSPARENT");
			Font("SMALL");
			Text("Player Stats");
		}

		CreateControl("TimeMessage", "STATIC")
		{
			ColorGroup("LISTBOX");
			Geometry("LEFT", "TOP");
			Position(0, -20);
			Size(250, 15);
			Font("SMALL");
			JustifyText("RIGHT");
			UseVar("network.stats.timestring");
			Style("TRANSPARENT");
		}

		CreateControl("Title", "STATIC")
		{
			ColorGroup("LISTBOX");
			Geometry("LEFT", "TOP");
			Position(-25, 0);
			Size(100, 10);
			Style("TRANSPARENT");
			Font("SMALL");
			Text("Player");
		}

		CreateControl("Title", "STATIC")
		{
			ColorGroup("LISTBOX");
			Geometry("LEFT", "TOP");
			Position(56, 0);
			Size(100, 10);
			Style("TRANSPARENT");
			Font("SMALL");
			Text("Vehicle");
		}

		CreateControl("PlayerList", "LISTBOX")
		{
			ColorGroup("BZCLISTBOX");

			Geometry("LEFT", "TOP");
			Position(-2, 18);
			Size(270, 96);
			CellSize(260, 12);
			Font("SMALL");
			Cursor("Highlight");
			//Style("VSLIDER");
			UseVar("network.session.playerlist");

		}

		CreateControl("ChatOptions", "BUTTON")
		{
			ColorGroup("BZCLISTBOXG");
			Geometry("LEFT", "BOTTOM");
			Position(-4, 6);
			Size(62, 18);
			Style("ROLLOVER");
			Cursor("Highlight");
			Font("SMALL");
			Text("Chat With");
			//Image("ButtonMPC4.tga", 0, 0, 62, 18);
			NotifyParent("Button::Press", "ChatOptions");
			Sound("MouseEnter", "multion.wav");
			Sound("ButtonPress", "multiclk.wav");
		}

		// This is called from bzshell_multi_option.cfg :)
		OnEvent("ChatOptions")
		{
			Activate("|ChatOptionsWindow");
		}

		CreateControl("Mute", "BUTTON")
		{
			ColorGroup("BZCLISTBOXG");
			Geometry("LEFT", "BOTTOM");
			Position(59, 6);
			Size(32, 18);
			Style("ROLLOVER");
			Cursor("Highlight");
			Font("SMALL");
			Text("Mute");
			//Image("ButtonMPC2.tga", 0, 0, 32, 18);
			NotifyParent("Button::Press", "Mute");
			Sound("MouseEnter", "multion.wav");
			Sound("ButtonPress", "multiclk.wav");
		}

		OnEvent("Mute")
		{
			Cmd("network.session.guimute");
			Cmd("network.session.guiignore");
		}

		CreateControl("UnMute", "BUTTON")
		{
			ColorGroup("BZCLISTBOXG");
			Geometry("LEFT", "BOTTOM");
			Position(92, 6);
			Size(49, 18);
			Style("ROLLOVER");
			Cursor("Highlight");
			Font("SMALL");
			Text("UnMute");
			//Image("ButtonMPC3.tga", 0, 0, 49, 18);
			NotifyParent("Button::Press", "UnMute");
			Sound("MouseEnter", "multion.wav");
			Sound("ButtonPress", "multiclk.wav");
		}

		OnEvent("UnMute")
		{
			Cmd("network.session.guiunmute");
			Cmd("network.session.guiunignore");
		}
	}
}



CreateControl("MapInfo_Small", "WINDOW")
{
	Style("TRANSPARENT", "INERT");
	Geom("PARENTWIDTH", "PARENTHEIGHT");

	CreateControl("Map", "WINDOW")
	{
		Geometry("RIGHT", "TOP");
		Position(-40, 60);
		Size(260, 150);
		Style("TRANSPARENT", "INERT");

		CreateControl("Title", "STATIC")
		{
			ColorGroup("LISTBOX");
			Geometry("LEFT", "TOP");
			Position(0, -15);
			Size(100, 10);
			Style("TRANSPARENT");
			Font("SMALL");
			Text("Map");
		}

		CreateControl("Title", "STATIC")
		{
			ColorGroup("LISTBOX");
			Geometry("LEFT", "TOP");
			Position(150, -15);
			Size(100, 10);
			Style("TRANSPARENT");
			Font("SMALL");
			Text("Description");
		}

		CreateControl("Map", "STATIC")
		{
			ColorGroup("WHITE");
			Geometry("LEFT", "TOP");
			//Position(-5, 3);
			//Size(150, 120);
			Position(-4, -52);
			Size(175, 175);
		}

		CreateControl("MapSpecs", "LISTBOX")
		{
			ColorGroup("LISTBOX");
			Geometry("TOP", "RIGHT");
			Position(0, 3);
			Size(110, 120);
			CellSize(100, 12);
			BorderSize(0);
			BevelSize(0);
			Style("INERT");
			Font("SMALL");
			UseSlider("<MapSpecsSliderB");
		}

		CreateControl("MapSpecsSliderB", "LISTSLIDER")
		{
			ColorGroup("TRANSPARENT");
			Orientation("VERTICAL");
			Geometry("RIGHT", "TOP");
			Position(4, 93);
			Size(16, 32);
			Style("ROLLOVER", "BUTTONS", "INERT");
		//	SliderIncImage("buttonscrdn.tga", 0, 0, 16, 16);
		//	SliderDecImage("buttonscrup.tga", 0, 0, 16, 16);
			Cursor("Highlight");
		}

		OnEvent("FillData")
		{
			Cmd("shell.multi.missionInfo");
		}
	}

	
	//
	// create the "VehicleSelect" button
	//
	CreateControl("VehicleSelect", "BUTTON")
	{
		Geometry("RIGHT", "TOP");
		ColorGroup("BZCBUTTON");
		Position(-154, 189);
		Size(152, 30);
		Font("SMALL");
		JustifyText("CENTER");
		Text("My Vehicle");
		Style("ROLLOVER");
		Cursor("Highlight");
		Image("ButtonMPE1.tga", 0, 0, 152, 30);
		NotifyParent("Button::Press", "vehSel");
		Sound("MouseEnter", "multion.wav");
		Sound("ButtonPress", "multiclk.wav");
	}
	
	//
	// handle the vehicle selection event
	//
	OnEvent("vehSel")
	{
		Deactivate("|MapInfo_Small");
		Activate("|MapButt_Small");
		Activate("|ShellMultiVehicle_Small");
	}
}


CreateControl("MapInfo", "WINDOW")
{
	Style("TRANSPARENT", "INERT");
	Geom("PARENTWIDTH", "PARENTHEIGHT");

	CreateControl("Map", "WINDOW")
	{
		Geometry("LEFT", "TOP");
		Position(40, 60);
		Size(270, 160);
		Style("TRANSPARENT", "INERT");

		CreateControl("Title", "STATIC")
		{
			ColorGroup("LISTBOX");
			Geometry("LEFT", "TOP");
			Position(10, -16);
			Size(50, 10);
			Style("TRANSPARENT");
			Font("SMALL");
			Text("Maps");
		}

		CreateControl("Title", "STATIC")
		{
			ColorGroup("LISTBOX");
			Geometry("LEFT", "TOP");
			Position(160, -16);
			Size(100, 10);
			Style("TRANSPARENT");
			Font("SMALL");
			Text("Map Layout");
		}

		CreateControl("SessionList5", "STATIC")
		{
			ColorGroup("LISTBOX");
			Geometry("LEFT", "TOP");
			Position(63, -16);
			Size(73, 10);
			CellSize(73, 10);
			Style("TRANSPARENT");
			Font("SMALL");
			JustifyText("LEFT");
			//Text("Map Layout");
			UseVar("network.session.svar0");
			//UseVar("network.session.namecrc");
		}

		CreateControl("MapList", "LISTBOX")
		{
			ColorGroup("BZCLISTBOXG");
			Geometry("TOP", "LEFT");
			Position(-5, 1);
			Size(160, 96);
			CellSize(150, 14);
			//Style("VSLIDER");
			Font("SMALL");
			Cursor("Highlight");
			UseVar("network.session.svar0");
			UseSlider("<MapListSlider");
			// Contents of this list filled in automatically from code [NetCommands.cpp]
		}

		CreateControl("MapListSlider", "LISTSLIDER")
		{
			ColorGroup("TRANSPARENT");
			Orientation("VERTICAL");
			Geometry("LEFT", "TOP");
			Position(140, 61);
			Size(16, 32);
			Style("ROLLOVER", "BUTTONS", "INERT");
		//	SliderIncImage("buttonscrdn.tga", 0, 0, 16, 16);
		//	SliderDecImage("buttonscrup.tga", 0, 0, 16, 16);
			Cursor("Highlight");
		}

		CreateControl("Map", "STATIC")
		{
			ColorGroup("WHITE");
			Geometry("LEFT", "TOP");
			//Position(161, 3);
			//Size(108, 89);
			Position(161, -36);
			Size(128, 128);
		}

		CreateControl("MapSpecs", "LISTBOX")
		{
			ColorGroup("LISTBOX");
			Geometry("TOP", "LEFT");
			Position(-3, 97);
			Size(254, 60); //Size(270, 60);
			CellSize(260, 12);
			Style("INERT");
			Font("SMALL");
			UseSlider("<MapSpecsSlider");
		}

		CreateControl("MapSpecsSlider", "LISTSLIDER")
		{
			ColorGroup("TRANSPARENT");
			Orientation("VERTICAL");
			Geometry("LEFT", "TOP");
			Position(254, 128);
			Size(16, 32);
			Style("ROLLOVER", "BUTTONS", "INERT");
		//	SliderIncImage("buttonscrdn.tga", 0, 0, 16, 16);
		//	SliderDecImage("buttonscrup.tga", 0, 0, 16, 16);
			Cursor("Highlight");
		}

		OnEvent("FillData")
		{
			Cmd("shell.multi.missionInfo");
		}
	}
}

CreateControl("MapButt", "WINDOW")
{
	Style("TRANSPARENT", "INERT");
	Geom("PARENTWIDTH", "PARENTHEIGHT");
}

CreateControl("MapButt_Small", "WINDOW")
{
	Style("TRANSPARENT", "INERT");
	Geom("PARENTWIDTH", "PARENTHEIGHT");

	//
	// create the "MapButt" button
	//
	CreateControl("MapButton", "BUTTON")
	{
		Geometry("RIGHT", "TOP");
		ColorGroup("BZCBUTTON");
		Position(-154, 189);
		Size(152, 30);
		Font("SMALL");
		JustifyText("CENTER");
		Text("Map Info");
		Style("ROLLOVER");
		Cursor("Highlight");
		Image("ButtonMPE1.tga", 0, 0, 152, 30);
		NotifyParent("Button::Press", "mapSel");
		Sound("MouseEnter", "multion.wav");
		Sound("ButtonPress", "multiclk.wav");
	}
	
	//
	// handle the vehicle selection event
	//
	OnEvent("mapSel")
	{
		Deactivate("|MapButt_Small");
		Deactivate("|ShellMultiVehicle_Small");
		Activate("|MapInfo_Small");
	}
}
