// ================
// BATTLEZONE SHELL
// ================

//
// CREATE THE CHAT WINDOW
//
CreateControl("Communications", "WINDOW")
{
	Style( "INERT", "OUTLINE");
	Geometry("LEFT", "BOTTOM");
	ColorGroup("MAGENTA");
	Position(60, -60);
	Size(900, 690);
	BorderSize(30);
	BevelSize(15);
	TabSize(330, 30);
	Title("Communications");
	TitleFont("SMALL");

	//
	// create the chat line list
	//
	CreateControl("ChatList", "LISTBOX")
	{
		ColorGroup("LISTBOX");
		Geometry("LEFT", "TOP");
		Position(0, 0);
		Size(900, 600);
		CellSize(855, 30);
		BorderSize(15);
		BevelSize(9);
		SliderPadding(5);
		Style("INERT", "NOSELECTION", "AUTOSCROLL", "VSLIDER");
		Font("TINY");
		ItemConfig()
		{
			Style("TRANSPARENT");
		}
		UseVar("shell.multi.chatlist");
	}

	CreateControl("ChatLineIdentifier", "STATIC")
	{
		Geometry("LEFT", "BOTTOM");
		JustifyText("LEFT");
		Position(0, 0);
		Size(90, 30);
		Font("SMALL");
		Text("Say:");
		Style("TRANSPARENT");
	}

	//
	// create the chat edit box
	//
	CreateControl("ChatEdit", "EDIT")
	{
		Style( "ROLLOVER", "OUTLINE");
		Geometry("LEFT", "BOTTOM");
		ColorGroup("LISTBOX");
		Position(105, 0);
		Size(795, 30);
		BorderSize(15);
		BevelSize(9);
		Font("TINY");
		UseVar("network.chateditline");
		Cursor("Highlight");
		MaxLength(250);	
		NotifyParent("Edit::Enter", "ChatEnter");
	}

	//
	// User hit enter in chatline. Notify game,
	//
	OnEvent("ChatEnter")
	{
		Cmd("network.chatline.entered");
	}
}

