require "scripts/style"
HeaderFont = {
  standardFont,
  30,
  BlackColor
};
BodyFont = {
  standardFont,
  16,
  BlackColor
};

MakeDialog
{
	-- Name the modal dialog
	name="GameOverDialog",-- name="pausemenu",
	-- parent="gameMainWindow",
-- new best time	
	Bitmap
	{
		name="bestTimeBitmap",
		image="backgrounds/dialog_strip",
		x=kCenter,
		y=kCenter-220,
        Text
        {
            font = StandardButtonFontFour,
            name = "newBestTimeTitle",
            x=kCenter,y=20,
            w=430,h=30,
            flags = kHAlignCenter + kVAlignCenter,
            label = "newBestTimeTitle"
        };

        Text
        {
            font = StandardButtonFontBig,
            name = "newBestTimeDescription",
            x=kCenter,y=50,w=430,h=60,
            flags = kHAlignCenter + kVAlignCenter,
            label = "newBestTimeDescription"
        };
	},

	Bitmap
	{
		image="backgrounds/dialog",
		x=kCenter,
		y=kCenter,			
		-- time passed matched
		Text
		{
			font = QuickTaskButtonFont,--StandardButtonFont,
			name = "TimePassedText",
			x=80,y=100, w=200,h=70,
			flags = kHAlignLeft,
			label = "TimePassedText"
		};
		Text
		{
			font = QuickTaskButtonFont,--StandardButtonFont,
			name = "TimePassedValue",
			x=230,y=100, w=100,h=70,
			flags = kHAlignRight,
			label = "TimePassedValue"
		};
------------------        
		-- all items matched
		Text
		{
			font = QuickTaskButtonFont,--StandardButtonFont,
			name = "AllItemsText",
			x=80,y=120, w=200,h=70,
			flags = kHAlignLeft,
			label = "AllItemsText"
		};
		Text
		{
			font = QuickTaskButtonFont,--StandardButtonFont,
			name = "AllItemsValue",
			x=230,y=120, w=100,h=70,
			flags = kHAlignRight,
			label = "zeroNumber"
		};		
		-- match3
		Text
		{
			font = QuickTaskButtonFont,--StandardButtonFont,
			name = "ItemsMatch3Text",
			x=80,y=140, w=250,h=72,
			flags = kHAlignLeft,
			label = "ItemsMatch3Text"
		};
		Text
		{
			font = QuickTaskButtonFont,--StandardButtonFont,
			name = "ItemsMatch3Value",
			x=230,y=140, w=100,h=72,
			flags = kHAlignRight,
			label = "zeroNumber"
		};
		-- match4
		Text
		{
			font = QuickTaskButtonFont,--StandardButtonFont,
			name = "ItemsMatch4Text",
			x=80,y=160, w=250,h=72,
			flags = kHAlignLeft,
			label = "ItemsMatch4Text"
		};
		Text
		{
			font = QuickTaskButtonFont,--StandardButtonFont,
			name = "ItemsMatch4Value",
			x=230,y=160, w=100,h=72,
			flags = kHAlignRight,
			label = "zeroNumber"
		};				
		-- match5 or more
		Text
		{
			font = QuickTaskButtonFont,--StandardButtonFont,
			name = "ItemsMatch5pText",
			x=80,y=180, w=250,h=72,
			flags = kHAlignLeft,
			label = "ItemsMatch5pText"
		};
		Text
		{
			font = QuickTaskButtonFont,--StandardButtonFont,
			name = "ItemsMatch5pValue",
			x=230,y=180, w=100,h=72,
			flags = kHAlignRight,
			label = "zeroNumber"
		};	
		-- number of tries on this level 
		Text
		{
			font = QuickTaskButtonFont,--StandardButtonFont,
			name = "LevelTriesText",
			x=80,y=200, w=250,h=72,
			flags = kHAlignLeft,
			label = "LevelTriesText"
		};
		Text
		{
			font = QuickTaskButtonFont,--StandardButtonFont,
			name = "LevelTriesValue",
			x=230,y=200, w=100,h=72,
			flags = kHAlignRight,
			label = "zeroNumber"
		};			
		SetStyle(CheckboxButtonStyle),
		AppendStyle
		{
			tx=5, -- move the text over a bit
			w=150,-- set our common width
		},
		SetStyle(LargeEmptyRoundButtonStyle),
		--SetStyle(ButtonStyle),
		AppendStyle
		{
			scale=1.2
		},
		SetStyle(SmallEmptyRoundButtonStyle),
		--SetStyle(ButtonStyle),
		Button
		{
			name = "gamemode1",
			label = "ok",
			x = kCenter,
			y = 235,
			-- close = true,
			command =
			function()
				SwapToModal('scripts/worldMap.lua');
			end
		},
		Bitmap
		{
			name = "gBitmap0001",
			image = "pics/congrat",
			x = kCenter,
			y = 30,
			scale = 1.00
		}
	},
}

SetWindowVisible("bestTimeBitmap", false);