require( "scripts/style.lua" );



TitleFont = {
  papyrusFont,
  70,
  BlackColor
};


MakeDialog
{
	-- Name the modal dialog
	name="creditswindow",
	
	Bitmap
	{
		x = kCenter - 596,
		y = kCenter,
		image = "backgrounds/map_1024_left_168",
	},
	
	Bitmap
	{
		x = kCenter + 596,
		y = kCenter,
		image = "backgrounds/map_1024_right_168",
	},
	
	Bitmap
	{
		image="backgrounds/map_1024",
		x = kCenter,
		y = kCenter,

		Text
		{
			font = TitleFont,
			name = "title",
			x=744,y=60,w=280 ,h=75,
			flags = kHAlignCenter + kVAlignTop,
			label = "credits"
		};

		CreditsWindow
		{
			x = 750, y = 150,
			w = 256, h = 386,
			font = bookantiquaFont,
			fontsize = 16,
			fontcolor = BlackColor,
			headercolor = DarkBlueColor,
			columngap = 33,
			columnwidth = 81,
			speed = 50, 		-- Speed
			intropause = 2000, 	-- Time to pause credits at start, in ms
			file = "credits/credits.txt",
			changedelay = 20, -- Time interval between sprite image changes in sec
			sprites_list = 
			{
				"credits/ImageCredit_2",
				"credits/ImageCredit_3",
				"credits/ImageCredit_4",
				"credits/ImageCredit_5"
			}
		},

		SetStyle( OptionsButtonStyle ),
		Button
		{
			x= 815,
			y= kMax - 150,
			name="back",
			type = kPush,
			flags = kHAlignCenter + kVAlignCenter,
			label="quit",
			command =
				function()
					PopModal("creditswindow");
				end
		};
		
		Bitmap
		{
			y = kCenter,
			name = "game_sprite",
		},
	},
}