require "scripts/style"

errormessage = "boo";
kButtonSpacing = 60;	-- Put our buttons 60 pixels apart
kButtonY = kCenter-60;	-- Three buttons means center 60 pixels above the center

-- When this dialog is popped up, we're entering pause state, so
-- let's just notify TGameState now.
--SetState( kPause, true );

MakeDialog
{
	-- Name the modal dialog
	name="errordialog",
	Bitmap
	{
		image="backgrounds/error_background",
		x=kCenter,
		y=kCenter,

		SetStyle(LargeEmptyRoundButtonStyle),
		Button
		{
			x=kCenter,
			y=300,
			name="okbutton",
			label="ok",
			close = true,	-- Just close this window
			cancel=true,
			command=
				function()
	                --SetState( kPause, false );
				end;

		};
		Text
		{
			-- align=kHAlignRight + kVAlignTop,
			font = StandardButtonFontTwo,
			name = "constantmessage",
			x=15,
			y=15,
			w=625,
			h=100,
			flags = kHAlignCenter + kVAlignCenter,
			label = "warningerrorText"
		};		

		Text
		{
			-- align=kHAlignRight + kVAlignTop,
			font = QuickTaskButtonFont,
			name = "errorbody",
			x=15,
			y=120,
			w=625,
			h=130,
			flags = kHAlignCenter + kVAlignCenter,
			label = "errorbody"
		};

	},
}