require "scripts/style"


--[[
TitleFont = {
  standardFont,
  20,
  BlackColor
};--]]


MakeDialog
{
	-- Name the modal dialog
	name="creditswindow",
	Bitmap
	{
		image="backgrounds/fullscreendialog",
--[[
		Text
		{
			font = TitleFont,
			name = "title",
			x=kCenter,y=0,w=kMax ,h=75,
			flags = kHAlignCenter,-- + kVAlignTop,
			label = "credits"
		};--]]

		CreditsWindow
		{
			x = 0, y = 80,
			w = kMax, h = kMax - 100,
			font = clockFont,
			fontsize = 20,
			fontcolor = WhiteColor,
			headercolor = RedColor,
			columngap = 50,
			columnwidth = 325,
			time = 20000, 		-- Time to play credits in milliseconds
			intropause = 100, 	-- Time to pause credits at start, in ms
			file = "credits/credits.txt",
		},

		Text
		{
			flags=kHAlignCenter + kVAlignTop,
			x=0,y=kMax-22,
			w=kMax;h=39;
			label="#"..GetString("version",GetConfig(kGameVersion)) ;
		};

		SetStyle(SmallFilledRoundButtonStyle),
		Button
		{
			x=kCenter,
			y=kMax-60,
			name="back",
			default=true,
			cancel=true,
			label="back",
			command =
				function()
					PopModal("creditswindow");
				end
		};
	},
}