require( "scripts/style.lua" )

kStartX = 100;
kHeaderY = 130;
kRow1Y = 155;
kRow2Y = 400;
kHorizontalSpacing = 160;
kVerticalSpacing = 115;
kTextXOffset = 55;
kTextWidth = 80;
kHeaderPaddingX = 10;
kHeaderPaddingY = 4;
kHeaderVerticalSpacing = 40;

MakeDialog
{
	Bitmap
	{ 
		image="backgrounds/helppage",	
		x=kCenter,
		y=kCenter,

		Text
		{
			font = HelpTableInfoFont,
			name = "help",
			x=0,y=8,w=kMax ,h=kMax,
			flags = kHAlignCenter+ kVAlignTop,
			label = "ui.dialog.help.title"
		};
		
		Button{
			x = kCenter - 70,
			y = 497,
			--flags = + ,
			font = StandardButtonFont,
			graphics = HelpLeftButtonGraphics,
			name="previous",
			type = kPush,
			rolloversound = "assets/audio/sfx/dialog_roll.ogg",
			sound = "assets/audio/sfx/dialog_click.ogg",
			command=
				function()
					PopModal();
					DoModal("scripts/helpmenu3.lua");
				end
		};
		
		Text
		{			
			x=kCenter,
			y=457,
			w=kMax ,h=kMax,
			flags = kHAlignCenter+ kVAlignCenter,
			font = { standardFont, 20, BlackColor };
			name = "help",
			label = "help_paginate_4",
		};

		Button{
			x = kCenter + 70,
			y = 497,
			font = StandardButtonFont,
			graphics = HelpRightButtonGraphics,
			name="next",
			type = kPush,
			rolloversound = "assets/audio/sfx/dialog_roll.ogg",
			sound = "assets/audio/sfx/dialog_click.ogg",
			command=
				function()
					PopModal();
					DoModal("scripts/helpmenu1.lua");
				end
		};
			
		Button{
			--flags = kHAlignCenter+ kVAlignBottom,
			x = kCenter+250,
			y = 501,
			font = StandardButtonFont,
			graphics = StandardButtonGraphics,
			name="ok",
			rolloversound = "assets/audio/sfx/dialog_roll.ogg",
			sound = "assets/audio/sfx/dialog_click.ogg",
			label="close",
			type = kPush,
			close=true
		};
		
		
		
		-- GUEST TYPES HEADER
		Bitmap
		{ 
			image="images/helpscreen/headerbg",	
			x=kStartX,
			y=kHeaderY-kHeaderVerticalSpacing,
		};
		Text
		{			
			x=kStartX+kHeaderPaddingX,
			y=kHeaderY-kHeaderVerticalSpacing+kHeaderPaddingY,
			w=kMax ,h=kMax,
			flags = kHAlignLeft + kVAlignTop,
			font = HelpHeaderFont;
			name = "help",
			label = "help_header_guests",
		};
		Text
		{			
			x=kStartX+kHeaderPaddingX,
			y=kHeaderY-kHeaderVerticalSpacing+kHeaderPaddingY + 30,
			w=300 ,h=kMax,
			flags = kHAlignLeft + kVAlignTop,
			font = HelpFont;
			name = "help",
			label = "help_guests_description",
		};
		
		--------------------------------------------------------------------
		-- ALLISON
		Bitmap
		{ 
			image="images/helpscreen/allison",	
			x=kStartX + (kHorizontalSpacing*0),
			y=kRow1Y,
		};
		Text
		{			
			x=kStartX + (kHorizontalSpacing*0) + kTextXOffset,
			y=kRow1Y,
			w=kTextWidth ,h=kMax,
			flags = kHAlignLeft + kVAlignTop,
			font = HelpFont;
			name = "help",
			label = "help_guest_allison",
		};
		
		--AL
		Bitmap
		{ 
			image="images/helpscreen/al",	
			x=kStartX + (kHorizontalSpacing*1),
			y=kRow1Y,
		};
		Text
		{			
			x=kStartX + (kHorizontalSpacing*1) + kTextXOffset,
			y=kRow1Y,
			w=kTextWidth ,h=kMax,
			flags = kHAlignLeft + kVAlignTop,
			font = HelpFont;
			name = "help",
			label = "help_guest_al",
		};
		
		--DEREK
		Bitmap
		{ 
			image="images/helpscreen/derek",	
			x=kStartX + (kHorizontalSpacing*2),
			y=kRow1Y,
		};
		Text
		{			
			x=kStartX + (kHorizontalSpacing*2) + kTextXOffset,
			y=kRow1Y,
			w=kTextWidth ,h=kMax,
			flags = kHAlignLeft + kVAlignTop,
			font = HelpFont;
			name = "help",
			label = "help_guest_derek",
		};
		
		--AUNT ETHEL
		Bitmap
		{ 
			image="images/helpscreen/aunt",	
			x=kStartX + (kHorizontalSpacing*3),
			y=kRow1Y,
		};
		Text
		{			
			x=kStartX + (kHorizontalSpacing*3) + kTextXOffset,
			y=kRow1Y,
			w=kTextWidth ,h=kMax,
			flags = kHAlignLeft + kVAlignTop,
			font = HelpFont;
			name = "help",
			label = "help_guest_auntethel",
		};
		
		
		--------------------------------------------------------------------
		-- DIANE
		Bitmap
		{ 
			image="images/helpscreen/diane",	
			x=kStartX + (kHorizontalSpacing*0),
			y=kRow1Y+(kVerticalSpacing*1),
		};
		Text
		{			
			x=kStartX + (kHorizontalSpacing*0) + kTextXOffset,
			y=kRow1Y+(kVerticalSpacing*1),
			w=kTextWidth ,h=kMax,
			flags = kHAlignLeft + kVAlignTop,
			font = HelpFont;
			name = "help",
			label = "help_guest_diane",
		};
	
		--UNCLE ERNIE
		Bitmap
		{ 
			image="images/helpscreen/uncle",	
			x=kStartX + (kHorizontalSpacing*1),
			y=kRow1Y+(kVerticalSpacing*1),
		};
		Text
		{			
			x=kStartX + (kHorizontalSpacing*1) + kTextXOffset,
			y=kRow1Y+(kVerticalSpacing*1),
			w=kTextWidth ,h=kMax,
			flags = kHAlignLeft + kVAlignTop,
			font = HelpFont;
			name = "help",
			label = "help_guest_uncleernie",
		};
		
		--BOB
		Bitmap
		{ 
			image="images/helpscreen/bob",	
			x=kStartX + (kHorizontalSpacing*2),
			y=kRow1Y+(kVerticalSpacing*1),
		};
		Text
		{			
			x=kStartX + (kHorizontalSpacing*2) + kTextXOffset,
			y=kRow1Y+(kVerticalSpacing*1),
			w=kTextWidth ,h=kMax,
			flags = kHAlignLeft + kVAlignTop,
			font = HelpFont;
			name = "help",
			label = "help_guest_bob",
		};
		
		--CHUCK
		Bitmap
		{ 
			image="images/helpscreen/chuck",	
			x=kStartX + (kHorizontalSpacing*3),
			y=kRow1Y+(kVerticalSpacing*1),
		};
		Text
		{			
			x=kStartX + (kHorizontalSpacing*3) + kTextXOffset,
			y=kRow1Y+(kVerticalSpacing*1),
			w=kTextWidth ,h=kMax,
			flags = kHAlignLeft + kVAlignTop,
			font = HelpFont;
			name = "help",
			label = "help_guest_chuck",
		};
		
		--------------------------------------------------------------------
		-- CHLOE
		Bitmap
		{ 
			image="images/helpscreen/chloe",	
			x=kStartX + (kHorizontalSpacing*0),
			y=kRow1Y+(kVerticalSpacing*2),
		};
		Text
		{			
			x=kStartX + (kHorizontalSpacing*0) + kTextXOffset,
			y=kRow1Y+(kVerticalSpacing*2),
			w=kTextWidth ,h=kMax,
			flags = kHAlignLeft + kVAlignTop,
			font = HelpFont;
			name = "help",
			label = "help_guest_chloe",
		};
	
		--UNCLE BETTY
		Bitmap
		{ 
			image="images/helpscreen/betty",	
			x=kStartX + (kHorizontalSpacing*1),
			y=kRow1Y+(kVerticalSpacing*2),
		};
		Text
		{			
			x=kStartX + (kHorizontalSpacing*1) + kTextXOffset,
			y=kRow1Y+(kVerticalSpacing*2),
			w=kTextWidth ,h=kMax,
			flags = kHAlignLeft + kVAlignTop,
			font = HelpFont;
			name = "help",
			label = "help_guest_betty",
		};
	
	}
}



