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="warningdialog",
	Bitmap
	{
		image="backgrounds/warning_background",
		x=kCenter,
		y=kCenter+234,

		SetStyle(SmallEmptyRoundButtonStyle),
		Button
		{
			x=kMax-80,
			y=5,
			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 = "constantWarningMessage",
			x=kCenter,
			y=2,
			w=750,
			h=50,
			flags = kHAlignCenter + kVAlignTop,
			label = "warningerrorText"
		};		

		Text
		{
			-- align=kHAlignRight + kVAlignTop,
			font = QuickTaskButtonFont,
			name = "warningbody",
			x=kCenter,
			y=48,
			w=750,
			h=50,
			flags = kHAlignCenter + kVAlignTop,
			label = "errorbody"
		};

	},
}