require( "screens/style.lua" );


MyFont = {
  standardFont,
  30,
  YellowColor
};

NameFont = {
  standardFont,
  20,
  YellowColor
};

ButtonFont = {
  standardFont,
  16,
  Color(0,0,0,255);
};






MakeDialog
{
	Bitmap
	{ 
		image="backgrounds/small_dialog.jpg",
		x=kCenter,
		y=kCenter,
		
		Text
		{
			font = MyFont,
			name = "entername",
			x=0,y=20,w=kMax,h=30,
			flags = kHAlignCenter + kVAlignTop,
			label = "entername"
		};
		
		Bitmap
		{
			image="backgrounds/textfield.png",
			x=50,
			y=70,
			
			TextEdit
			{
				font = NameFont,
				name = "nameedit",
				label = "",
				x=3,y=5,w=kMax-3,h=kMax,
				length=12
				
			};
		};
		
		
		TriclopsButton
		{
			x=25,
			y=130,
			Button
			{
				font = ButtonFont,
				graphics = NormalButtonGraphics,
				name="enterok",
				label="ok",
				type = kPush,
				scale = 0.4
			},
		},
		
		TriclopsButton
		{
			x=185,
			y=130,
			Button
			{
				font = ButtonFont,
				graphics = NormalButtonGraphics,
				name="entercancel",
				label="cancel",
				type = kPush,	
				scale = 0.4
			};
		}
		
	}
}



