require( "facebook/common/style.lua" );
dofile( "facebook/common/facebook_functions.lua" );

---------------------------------------------------------------
-- This is a message box with a title and body, and an OK box
--
-- gDialogTable.facebook_ok_title is the above-the-line title
-- gDialogTable.facebook_ok_body  is the below-the-line message
---------------------------------------------------------------

MakeDialog
{
	name='facebook_ok', 
	Bitmap
	{
		image="facebook/common/fb_posted_bg_box",
		x=kCenter,
		y=kCenter,
		Window
		{
			x = 2,
			y = 2,
			w = kMax - 2,
			h = 36,
			Text
			{
				font = FacebookTitleFont,
				x = 32,
				y = 10,
				w = kMax,
				h = 36,
				label= gDialogTable.facebook_ok_title,
				-- label = 'Successfully Posted'
			},
		},
		Window
		{
			x = 2,
			y = 39,
			h = kMax - 2,
			w = kMax - 2,
			Text
			{
				font = FacebookBodyFont,
				x = 13,
				y = 13,
				w = kMax - 13,
				h = 75,
				label = gDialogTable.facebook_ok_body,
				-- label = "Your message has not been posted to Facebook. There was some kind of error or revolution."
			};

			SetStyle(FacebookOkayButtonStyle),
			FBButton
			{
				y = kMax - 10,
				align = kVAlignBottom,
				label = "OK",
				cancel = true,	-- escape gets us out
				default = true,	-- return gets us out
				close = true,
				name = 'facebook_btn_ok',
				label = 'facebook_btn_ok',
			},
		},
	},
}
