require( "scripts/style.lua" );

TitleFont = {
  standardFont,
  40,
  WhiteColor
};


MakeDialog
{
  FadeWindow
  {
    x = 0, y = 0,
		w = ScreenWight, h = ScreenHeight,
	  name="creditswindow",
	  Bitmap
	  {
		  image="menu/dialog",
		  x = kCenter,
		  y = kCenter,

		  Text
		  {
			  font = HeaderFont,
			  name = "title",
			  x=kCenter,y=65,w=kMax ,h=75,
			  flags = kHAlignCenter + kVAlignTop,
			  label = "credits"
		  };

		  CreditsWindow
		  {
			  x = 20, y = 110,
			  w = 660, h = 350,
			  font = standardFont,
			  fontsize = 20,
			  fontcolor = BlackColor,
			  headercolor = DarkBlueColor,
			  headerfontsize = 28,
			  columngap = 60,
			  columnwidth = 270,
			  time = 100000, 		-- Time to play credits in milliseconds
			  intropause = 500, 	-- Time to pause credits at start, in ms
			  file = "credits/credits.txt",
			  speed = 50;
		  },

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

		  SetStyle( ProfilesButtonStyle ),
		  Button
		  {
			  x=kCenter,
			  y=kMax-80,
			  name="back",
			  default=true,
			  cancel=true,
			  label="back",
  			command = function() 
  			CloseFade("creditswindow","CloseWindow()");
  			end;
		  };
		 },
	},
}