require( "scripts/style" );

------------------------------------------
-- 					Init
------------------------------------------
MakeDialog
{
	name = "confirm",
	Bitmap
	{
		name = "dialogshadow",
		image = "backgrounds/dialogs/backgroundalpha",
	},

	Bitmap
	{
		name = "backgroundimage",
		image = "backgrounds/popups/popupdefault",
		Bitmap
		{
			x = 400,
			y = 600,
			w = 800,
			h = 600,
			rows = gRows,
			columns = gColumns,
		},
		
		SetStyle( ButtonStyle ),
		
		Button
		{
			name = okname,
			x = kCenter,
			y = kMax - 320,
			close = true,
			flags = 5,
			DefaultButtonLabel("ok"),
			command = okcommand
		},
		
		SetStyle( DialogBodyText ),
		Text
		{
			name = "oktitle",
			x = 0, 
			y = 150,
			w = kMax,
			h = kMax,
			flags = kVAlignCenter + kHAlignCenter,
			label = gDialogTable.title,
		};
	
		ColorShadowColorText(400,
								200,
								kCenter,
								kCenter - 10	,
								40,
								gDialogTable.body, 
								DefaultColor, 
								DefaultShadowColor,
								"okbody",
								kDefaultButtonFontShadowSize,
								kHAlignCenter + kVAlignCenter,
								defaultgameplayfont);
	},
}