require( "scripts/style.lua" );

SupplyNameFont = {
  stdLegibleFont,
  18,
  BlackColor,
};

AmountFont = {
    stdLegibleFont,
    20,
    Color(0,0,91,255)
};

MakeDialog
{
	GrapeTooltipWindow
	{
		name="lot_tooltip",
		x=kCenter, y=0, 
	},
	Text
	{
		name = "lot_name",
		font = SupplyNameFont,
		flags = kHAlignCenter + kVAlignBottom,
		x=0,y=84,w=kMax,h=40,
	},
	Text
	{
		name = "lot_price",
		font = AmountFont,
		flags = kHAlignCenter + kVAlignCenter,
		x=20, y=128, w=95, h=31,
	},
	Text
	{
		x = 10, y = 150, w = 55, h = 20,
		font = 
		{
			standardFont,
			16,
			BlackColor,
		},
		label = "quantity",
	},
	Bitmap
	{
		name="amount_display",
		x=0,y=168,
		image = "gui/supplier/amount_display",
		NumberEdit
		{
			x=6,y=5,
			w=57,h=20,
			name="amount_seed",
			flags=kHAlignRight+kVAlignCenter,
			font=AmountFont,
			text="1",
			length="5",
		},
	},
	Button
	{
		name = "add_button",
		x = 75, y = 157,
		graphics = 
		{
			"buttons/add",
		},
	},
}
