require( "scripts/style.lua" );

TitleFont = {
  standardFont,
  30,
  Color(51,13,0,255),
};

MakeDialog
{
  	Text
	{
		name="tab_title",
		label="tab_blends",
		font=TabButtonFont,
		flags = kHAlignCenter + kVAlignTop,
		x=184,y=6,w=185,h=26,
	},
	BlendInfo
	{
		name = "blend_info",
		fit=true,
		grapes_separation_x = 150,
		grapes_separation_y = 32,

		Bitmap
		{
			image = "gui/main/blendinfobg",
			--fit = true,
			x=20,y=38,
		},
		Bitmap
		{
			name = "bottle_image",
			--fit = true,
			x=40,y=108,
		},
		Text
		{
			name = "title",
			font = TitleFont,
			flags = kHAlignLeft + kVAlignTop,
			x=32,y=40,w=340,h=40,
		},
		Button
		{
			name = "blends_list",
			fit=true,
			x=924,y=86,
			tx=0, ty=20,
			tw=kMax-5, th=kMax,
			flags = kHAlignCenter + kVAlignCenter,
			label = "#<outline color=\"0c194b\" size='2'>"..GetString("back_label").."</outline>",
			font = 
			{
				stdLegibleFont,
				20,
				WhiteColor,
			},
			graphics = 
			{
				"buttons/backidle",
				"buttons/backdown",
				"buttons/backover",
			},
		},
		
		Window
		{
			name="recipe",
			x=82,y=88,w=380,h=116,
		},
		Text
		{
			name="title_recipe",
			x=12, y=70, w=88, h=32,
			flags = kHAlignCenter + kVAlignCenter,
			font = {
			  stdLegibleFont,
			  18,
			  Color(0,0,0,255),
			},
			label = "recipe",
		},
		Text
		{
			name="blend_notes",
			x=260, y=128, w=138, h=60,
			flags = kHAlignRight + kVAlignBottom,
			font = {
			  stdLegibleFont,
			  15,
			  Color(0,0,0,255),
			},
		},
		Window
		{
			name="maintenance",
			x=424,y=110,w=250,h=84,
		},
		Text
		{
			name="title_maintenance",
			x=404, y=85, w=128, h=32,
			flags = kHAlignCenter + kVAlignCenter,
			font = {
			  stdLegibleFont,
			  18,
			  Color(0,0,0,255),
			},
			label = "maintenance",
		},
		Button
		{
			name="wine_facts",
			fit=true,
			x=676, y=112,
			graphics = 
			{
				"buttons/checkidle",
				"buttons/checkdown",
				"buttons/checkover",
			},
			
			Text
			{
				label = "#<outline color=\"".."592518".."\" size='".."2"..">"..GetString("check_info_label").."</outline>",
				w = kMax, h = kMax,
				flags = kHAlignCenter + kVAlignCenter,
				font = 
				{
					stdLegibleFont,
					20,
					WhiteColor,
				},
			}
		},
		Text
		{
			name="title_avgprice",
			x=785, y=115, w=128, h=32,
			flags = kHAlignCenter + kVAlignCenter,
			font = {
			  stdLegibleFont,
			  22,
			  Color(0,0,0,255),
			},
			label = "average_price",
		},
		Text
		{
			name="avgprice",
			x=785, y=145, w=128, h=32,
			flags = kHAlignCenter + kVAlignCenter,
			font = {
			  stdLegibleFont,
			  32,
			  Color(0,0,0,255),
			},
			label = "#$ 100",
		},
--		Bitmap
--		{
--			name="produce_wine_disabled",
--			fit=true,
--			x=780, y=102,
--			image = "buttons/producedown",
--		},
--		Button
--		{
--			name="produce_wine",
--			fit=true,
--			x=780, y=102,
--			graphics = 
--			{
--				"buttons/produceidle",
--				"buttons/producedown",
--				"buttons/produceover",
--			},
--		},
	},
} -- MakeDialog
