ButtonNormal={0,0,149,38};
ButtonOver={0,41,149,41+38};
ButtonPressed={0,82,149,82+38};



GuiImage="window1.png";

ButtonTextNormal=
{
	Font="font2.fnt",
	TextArea={0,6,148,25},
	HAlign="center",
};

ButtonTextOver=
{
	Font="font2.fnt",
	TextArea={0,6,148,25},
	HAlign="center",
};


ButtonTextPressed=
{
	Font="font2.fnt",
	TextArea={1,7,149,26},
	HAlign="center",
};


Text1="Maximum 7 characters.";
Text2="That name is already being used!";

PlayerName=
{

	Pos={213,206},
	Image="window2.png",
	SrcRect={0,0,372,188},
	

	{
		Name="PlayerName_Text_Title",
		Type="Text",	
		Caption="PLAYER NAME",
		Font="Font5.fnt",
		TextArea={93,7,279,50},
		HAlign="center",
	},

	{
		Name="PlayerName_Text",
		Type="Text",	
		Caption=Text1,
		Font="Font4.fnt",
		TextArea={25,95,343,127},
		HAlign="center",
	},


	{
		Name="PlayerName_Edit",
		Type="Edit",	
		Pos={55,51},
		Font="Title.fnt",
		ScrRect={0,0,260,34},
		CursorRect={18,205,24,225},
		MaxChars=7,
		Image="window2.png",
		SrcRect={0,189,264,225},

	},

	{
		Name="PlayerName_OK",
		Type="Button",
		Pos={186-149-10,136},
		Image=GuiImage,
		Caption="Ok", 
		Normal=ButtonNormal,
		Over=ButtonOver,
		Pressed=ButtonPressed,
		TextNormal=ButtonTextNormal,
		TextOver=ButtonTextOver,
		TextPressed=ButtonTextPressed,
		SoundPressed="butclick",
		--SoundHover="butclick1",

	},

	{
		Name="PlayerName_Cancel",
		Type="Button",
		Pos={186+10,136},
		Image=GuiImage,
		Caption="Cancel", 
		Normal=ButtonNormal,
		Over=ButtonOver,
		Pressed=ButtonPressed,
		TextNormal=ButtonTextNormal,
		TextOver=ButtonTextOver,
		TextPressed=ButtonTextPressed,
		SoundPressed="butclick",
		--SoundHover="butclick1",

	},

};


FirstPlayerName=
{

	Pos={213,206},
	Image="window2.png",
	SrcRect={0,0,372,188},
	

	{
		Name="FirstPlayerName_Text_Title",
		Type="Text",	
		Caption="PLAYER NAME",
		Font="Font5.fnt",
		TextArea={93,7,279,50},
		HAlign="center",
	},

	{
		Name="FirstPlayerName_Text",
		Type="Text",	
		Caption=Text1,
		Font="Font8.fnt",
		TextArea={31,95,338,127},
		HAlign="center",
	},


	{
		Name="FirstPlayerName_Edit",
		Type="Edit",	
		Pos={55,51},
		Font="Title.fnt",
		ScrRect={0,0,260,34},
		CursorRect={18,205,24,225},
		MaxChars=7,
		Image="window2.png",
		SrcRect={0,189,264,225},

	},

	{
		Name="FirstPlayerName_OK",
		Type="Button",
		Pos={186-149/2,136},
		Image=GuiImage,
		Caption="Ok", 
		Normal=ButtonNormal,
		Over=ButtonOver,
		Pressed=ButtonPressed,
		TextNormal=ButtonTextNormal,
		TextOver=ButtonTextOver,
		TextPressed=ButtonTextPressed,
		SoundPressed="butclick",
		--SoundHover="butclick1",

	},
	
};