require( "scripts/style.lua" );

WineNameFont = {
  stdLegibleFont,
  20,
  Color(51,13,0,255),
};

WineClassFont = {
  "fonts/wineclass.mvec",
  20,
  Color(51,13,0,255),
};

QtyFont = {
  stdLegibleFont,
  50,
  Color(0,0,0,250),
};

WineryNameLabelFont = {
  standardFont,
  32,
  Color(0,0,0,250),
};

WineryStatusFont = {
  standardFont,
  22,
  Color(0,0,0,250),
};

VineyardFont = {
  standardFont,
  25,
  Color(0,0,0,255),
};

GrapeNameFont = {
  stdLegibleFont,
  15,
  Color(0,0,0,255),
};

ProductionTxtFont = {
  stdLegibleFont,
  17,
  Color(0,0,0,255),
};

ProductionFont = {
  stdLegibleFont,
  23,
  Color(0,0,0,255),
};

MakeDialog
{
  	Text
	{
		name="tab_title",
		label="tab_wineries",
		font=TabButtonFont,
		flags = kHAlignCenter + kVAlignTop,
		x=552,y=6,w=185,h=26,
	},
	
	Bitmap
	{
		name="winery_info_bg",
		image="gui/main/wineryinfobg",
		x=30,y=52,
	},

  	Text
	{
		name="winery_name",
		label="",
		w=510,h=33,
		font = WineryNameLabelFont,
		flags = kHAlignLeft + kVAlignTop,
		x=25,
		y=45,
	},
	
	Text
	{
		name="winery_status",
		label="",
		w=610,h=33,
		font = WineryStatusFont,
		flags = kHAlignLeft + kVAlignTop,
		x=730,
		y=47,
	},
	
	Window
	{
		name="bottle_image",
		x="50", y="105",
	},
	
	Text
	{
		name="blend_name",
		label="",
		font=WineNameFont,
		flags = kHAlignCenter + kVAlignTop,
		x=70,y=95,w=200,h=40,
	},
	
	Text
	{
		name="blend_quality",
		label="",
		font=WineClassFont,
		flags = kHAlignCenter + kVAlignTop,
		x=70,y=120,w=200,h=40,
	},
	
	Text
	{
		name="blend_quantity",
		label="",
		font=QtyFont,
		flags = kHAlignCenter + kVAlignTop,
		x=90,y=145,w=100,h=50,
	},
	
	Text
	{
		name="bottles",
		label="",
		font=WineNameFont,
		flags = kHAlignCenter + kVAlignTop,
		x=140,y=165,w=100,h=20,
	},
	
	Text
	{
		name="txt_bottles",
		label="",
		font=WineNameFont,
		flags = kHAlignCenter + kVAlignTop,
		x=140,y=165,w=100,h=20,
	},
	
	Text
	{
		name="txt_needed",
		label="",
		font=WineNameFont,
		flags = kHAlignLeft + kVAlignTop,
		x=290,y=90,w=300,h=20,
	},
	
	Window
	{
		name="supplies",
		x=282,y=108, w=420, h=80,
	},
	
	Text
	{
		name="txt_vineyard",
		label="vineyard",
		font=VineyardFont,
		flags = kHAlignCenter + kVAlignTop,
		x=780,y=60,w=100,h=25,
	},
	
	Bitmap
	{
		name="grape_image",
		x=805,y=80,
	},
	
	Text
	{
		name="grape_name",
		label="",
		font=GrapeNameFont,
		flags = kHAlignCenter + kVAlignBottom,
		x=783,y=100,w=100,h=40,
	},
	
	Text
	{
		name="txt_grape_production",
		label="grapes_production_txt",
		font=ProductionTxtFont,
		flags = kHAlignCenter + kVAlignTop,
		x=783,y=140,w=100,h=20,
	},
	
	Text
	{
		name="grape_production",
		label="",
		font=ProductionFont,
		flags = kHAlignCenter + kVAlignTop,
		x=783,y=160,w=100,h=23,
	},
	
	Button
	{
		name="back",
		x=930,
		y=70,
		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",
		},
	},
} -- MakeDialog
