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),
};

local wineriesSeparation = 160
local wineriesOffset = 60

MakeDialog
{
  	Text
	{
		name="tab_title",
		label="tab_wineries",
		font=TabButtonFont,
		flags = kHAlignCenter + kVAlignTop,
		x=552,y=6,w=185,h=26,
	},
	
  	-- ENABLED BUTTONS
	Button
	{
		name="button_italy",
		x = wineriesOffset,
		y = 85,
		graphics = 
		{
			"buttons/wineries/italyidle",
			"buttons/wineries/italyactive",
			"buttons/wineries/italyover",
		},
		
		Bitmap
		{
			
			name = "italy_status",
		}
	},
	
	Button
	{
		name="button_germany",
		x = wineriesOffset + wineriesSeparation,
		y = 85,
		graphics = 
		{
			"buttons/wineries/germanyidle",
			"buttons/wineries/germanyactive",
			"buttons/wineries/germanyover",
		},
		
		Bitmap
		{
			
			name = "germany_status",
		}
	},
	
	Button
	{
		name="button_south_africa",
		x = wineriesOffset + wineriesSeparation*2,
		y = 88,
		graphics = 
		{
			"buttons/wineries/south_africaidle",
			"buttons/wineries/south_africaactive",
			"buttons/wineries/south_africaover",
		},
		
		Bitmap
		{
			
			name = "south_africa_status",
		}
	},
	
	Button
	{
		name="button_portugal",
		x = wineriesOffset + wineriesSeparation*3,
		y = 85,
		graphics = 
		{
			"buttons/wineries/portugalidle",
			"buttons/wineries/portugalactive",
			"buttons/wineries/portugalover",
		},
		
		Bitmap
		{
			
			name = "portugal_status",
		}
	},
	
	Button
	{
		name="button_france",
		x = wineriesOffset + wineriesSeparation*4,
		y = 85,
		graphics = 
		{
			"buttons/wineries/franceidle",
			"buttons/wineries/franceactive",
			"buttons/wineries/franceover",
		},
		
		Bitmap
		{
			name = "france_status",
		}
	},
	
	Button
	{
		name="button_usa",
		x = wineriesOffset + wineriesSeparation*5,
		y = 85,
		graphics = 
		{
			"buttons/wineries/usaidle",
			"buttons/wineries/usaactive",
			"buttons/wineries/usaover",
		},
		
		Bitmap
		{
			name = "usa_status",
		}
	},
	-- ENABLED BUTTONS - END

	-- ON / OFF IMAGES
	Bitmap
	{
		name="image_italy",
		x = wineriesOffset,
		y = 85,
		image = "buttons/wineries/italydisabled",
	},
	
	Bitmap
	{
		name="image_germany",
		x = wineriesOffset + wineriesSeparation,
		y = 85,
		image = "buttons/wineries/germanydisabled",
	},
	
	Bitmap
	{
		name="image_south_africa",
		x = wineriesOffset + wineriesSeparation*2,
		y = 88,
		image = "buttons/wineries/south_africadisabled",
	},
	
	Bitmap
	{
		name="image_portugal",
		x = wineriesOffset + wineriesSeparation*3,
		y = 85,
		image = "buttons/wineries/portugaldisabled",
	},
	
	Bitmap
	{
		name="image_france",
		x = wineriesOffset + wineriesSeparation*4,
		y = 85,
		image = "buttons/wineries/francedisabled",
	},
	
	Bitmap
	{
		name="image_usa",
		x = wineriesOffset + wineriesSeparation*5,
		y = 85,
		image = "buttons/wineries/usadisabled",
	},
	-- ON / OFF IMAGES - END
	
} -- MakeDialog
