require( "scripts/style.lua" );

MakeDialog
{
	-- Name the modal dialog
	name="zinfowindow",
	Bitmap
	{
		--image="backgrounds/credits",
		image="backgrounds/z_inf_wnd",
		
		x = kCenter, y = kCenter,

		Text
		{
			font = {  standardFont,  34,  BlackColor},
			name = "title",
			x=kCenter,y=20,w=kMax ,h=75,
			flags = kHAlignCenter + kVAlignTop,
			label = "inform"
		};
		
		Text
		{
			--font = {  "fonts/bradhitc.mvec",  21.5,  WhiteColor},
			font = {  standardFont,  19,  WhiteColor},
			name = "info_text",
			x=80,
			--y=80,
			y=90,
			w=520,
			h=390,
			flags = kHAlignLeft + kVAlignTop,
			label = "lost_Z_info"
		};

		--[[CreditsWindow
		{
			x = 0, y = 70,
			--x = 110, y = 70,
			w = 600, h = 225,
			--w = 600, h = 255,
			font = standardFont,
			fontsize = 16,
			fontcolor = BlackColor,
			headercolor = DarkBlueColor,
			columngap = 1,
			columnwidth = 260,
			time = 30000, 		-- Time to play credits in milliseconds
			intropause = 5000, 	-- Time to pause credits at start, in ms
			file = "credits/credits.txt",
			credits_text = "Credits_text",
		},
		--]]

		Button
		{
			x = kCenter-100,
			y = 400,
			name="back",
			parent = DefaultStyle,
			sound = kDefaultButtonSound,
			type= kPush,
			graphics = {"buttons/b_ok", "buttons/b_ok_mouseover", "buttons/b_ok_pressed"},
			command =
				function()
					PopModal("zinfowindow");
				end
		};
		
		Button
		{
			x = kCenter+100,
			y = 400,
			name="next",
			parent = DefaultStyle,
			sound = kDefaultButtonSound,
			type= kPush,
			graphics = {"buttons/b_next", "buttons/b_next_mouseover", "buttons/b_next"},
			command =
				function()
					PopModal("zinfowindow");
					DoModal("scripts/z_info_2.lua");
				end
		};

	},
}