require( "scripts/style.lua" );



TitleFont = {
  standardFont,
  50,
  BlackColor
};


MakeDialog
{
	Bitmap
	{
		name="creditsbackground",
		image="credits/creditsbg",
		x = kCenter,
		y = kCenter,
		w = kMax,
		h = kMax,
		Text
		{
			font = TitleFont,
			name = "title",
			x=kCenter,y=5,w=kMax ,h=300,
			flags = kHAlignCenter + kVAlignTop,
			label = "credits"
		};
		
		Text
		{
			font = VersionFont,
			name = "version",
			x=kCenter,y=522,w=100 ,h=50,
			flags = kHAlignCenter + kVAlignTop,
			label = "version"
		};
		
		CreditsWindow
		{
			x = 0,
			y = 140,
			width = 800,
			height = 375,
			font = standardFont,
			fontsize = 16,
			fontcolor = BurgundyColor,
			headercolor = Color(1,1,1,1),   --Color(128,128,128,128),
			file = "assets/credits/credits.txt"						
		},
		
		Button
		{
			x=350,
			y=540,
			font = StandardButtonFont,
			graphics = StandardButtonGraphics,
			name="back",
			type = kPush,
			flags = kHAlignCenter + kVAlignCenter,
			label="back",
			rolloversound = "assets/audio/sfx/dialog_roll.ogg",
			sound = "assets/audio/sfx/dialog_click.ogg",
			command = 
				function()
					PopModal();
				end
		};
	},
}