require( "scripts/style.lua" );


MakeDialog
{
    FaderWindow
	{
		wait=0,
		duration=100,
		fit = true,
		startalpha = 0,
		finalalpha = 0.99,
		skip = false,
		
		Bitmap
		{
			name="shade",
			image="backgrounds/shade",
			Bitmap
			{
				name="page",
				image="gui/blendsbook/winefacts",
				--x=tx,
				--y=ty,
				x=kCenter,
				y=kCenter,
		        
				--ShadowedButton
		        
				SetStyle(DialogTitleText),
				Text
				{
					x = 8, y=8,
					w = kMax-8,
					flags = kHAlignCenter + kVAlignCenter,
					name = "oktitle",
					label= gDialogTable.title,
				};
				
				--SetStyle(DialogBodyText),
				Text
				{
					font=
					{
						stdLegibleFont,
						16,
						BlackColor,
					},
					x=32,y=40,w=kMax-36,h=kMax-32,
					name = "okbody",
					label= gDialogTable.body,
				};
			},
			Button
			{
				clickSound = "audio/sfx/buttons/default_click.ogg",
				--command = gDialogTable.action,
				graphics = {
					"buttons/blueidle",
					"buttons/bluedown",
					"buttons/blueover"
					},
				font = StandardButtonFont,
				close = true,
				flags = 5,
				label = "ok",
				name = "ok",
				tw=kMax-8,
				th=kMax-2,
				x = kCenter,
				y = 512,
			},
		},
	},
} -- MakeDialog
