-- --------------------------------------------------------------------------
-- Copyright © 2008 PlayFirst, Inc. All Rights Reserved.
--
-- This material is the confidential trade secret and proprietary
-- information of PlayFirst, Inc. It may not be reproduced, used, disclosed,
-- sold or transferred without the prior written consent of PlayFirst, Inc. 
-- All rights reserved.
-- --------------------------------------------------------------------------
dofile( "scripts/help_style.lua" );



nameDialog = "help7";
HeaderTittle = "help_header_disasters";
BoxName		= "images/ui/buttons/box07";

asset1 = "images/ui/help/shower_disaster";
asset2 = "images/ui/help/ice_cream_man_0001";
asset3 = "images/ui/help/normal_0003";
asset4 = "images/ui/help/broken_0004";
asset5 = "images/ui/help/normal_0007";
asset6 = "images/ui/help/icon_alert_0001";

Box1Tx = "help_disaster_text_1_header";
Box2Tx = "help_disaster_text_2_header";
Box3Tx = "help_disaster_text_3_header";
Box4Tx = "help_disaster_text_4_header";
Box5Tx = "help_disaster_text_5_header";

definition1Tx = "help_disaster_text_1";
definition2Tx = "help_disaster_text_2";
definition3Tx = "help_disaster_text_3";
definition4Tx = "help_disaster_text_4";
definition5Tx = "help_disaster_text_5";

paginateLabel = "help_paginate_7";

function BackCommand() 
	SwapToModal("scripts/help6.lua");
end

function NextCommand() 
	SwapToModal("scripts/help8.lua");
end

MakeDialog
{
	-- Name the modal dialog
	name = nameDialog,
	Bitmap
	{
		image="images/backgrounds/bgpopup01",
		x=kCenter,
		y=kCenter,
		
		Bitmap
		{
			image="images/ui/common/popup05",
			x=0,
			y=0,
		};
--Tittle
		Text
		{
			font = BigPopupFont,
			x=kCenter,
			y=kTitleY,
			w=kMax,h=45,
			flags = kHAlignCenter + kVAlignCenter,
			label = "help",
		};
--Header
		Text
		{
			font = PopupFont,
			x=kTextHeaderX,
			y=kTextHeaderY,
			w=kMax,h=45,
			flags = kHAlignLeft + kVAlignCenter,
			label = HeaderTittle,
		};
		Bitmap
		{
			image=asset6,
			x=620,
			y=43,
			--scale = 0.3,
		};
--Line 1
		Bitmap
		{
			image=BoxName,
			x=kFirstRow,
			y=kFirstLine,
			Bitmap
			{
				image=asset1,
				x=20,
				y=0,
				scale = 0.3,
			};
			
		};
		
--Machine1 Name
		Bitmap
		{
			image="images/ui/buttons/box02",
			x=kFirstRow+kRowSpace2,
			y=kFirstLine,
	
			Text
			{
				font = MachineFont,
				x=5,
				y=3,
				w=kMax,h=20,
				flags = kHAlignLeft + kVAlignCenter,
				label = Box1Tx,
			};
		};
		SetStyle(HelpTxDefStyle2),
		Text
		{
			x=kFirstRow+kRowSpace2,
			y=kFirstLine+kTextSpaceUnderBox,
			label = definition1Tx,
		};
--Line 2
		Bitmap
		{
			image=BoxName,
			x=kFirstRow,
			y=kFirstLine+kLineSpace2,
			Bitmap
			{
				image=asset2,
				x=10,
				y=0,
				scale = 0.4,
			};
		};
--Machine2 Name
		Bitmap
		{
			image="images/ui/buttons/box02",
			x=kFirstRow+kRowSpace2,
			y=kFirstLine+kLineSpace2,
	
			Text
			{
				font = MachineFont,
				x=5,
				y=3,
				w=kMax,h=20,
				flags = kHAlignLeft + kVAlignCenter,
				label = Box2Tx,
			};
		};
		Text
		{
			x=kFirstRow+kRowSpace2,
			y=kFirstLine+kTextSpaceUnderBox+kLineSpace2,
			label = definition2Tx,
		};
--Line 3
		Bitmap
		{
			image=BoxName,
			x=kFirstRow,
			y=kFirstLine+2*kLineSpace2,
			Bitmap
			{
				image=asset3,
				x=5,
				y=5,
				scale = 0.5,
			};
		};
--Machine3 Name
		Bitmap
		{
			image="images/ui/buttons/box02",
			x=kFirstRow+kRowSpace2,
			y=kFirstLine+2*kLineSpace2,
	
			Text
			{
				font = MachineFont,
				x=5,
				y=5,
				w=kMax,h=25,
				flags = kHAlignLeft + kVAlignTop,
				label = Box3Tx,
			};
		};
		Text
		{
			x=kFirstRow+kRowSpace2,
			y=kFirstLine+kTextSpaceUnderBox+2*kLineSpace2,
			label = definition3Tx,
		};
--Line 4
		Bitmap
		{
			image=BoxName,
			x=kFirstRow,
			y=kFirstLine+3*kLineSpace2,
			Bitmap
			{
				image=asset4,
				x=15,
				y=3,
				scale = 0.5,
			};
		};
--Machine4 Name
		Bitmap
		{
			image="images/ui/buttons/box02",
			x=kFirstRow+kRowSpace2,
			y=kFirstLine+3*kLineSpace2,
	
			Text
			{
				font = MachineFont,
				x=5,
				y=3,
				w=kMax,h=20,
				flags = kHAlignLeft + kVAlignCenter,
				label = Box4Tx,
			};
		};
		Text
		{
			x=kFirstRow+kRowSpace2,
			y=kFirstLine+kTextSpaceUnderBox+3*kLineSpace2,
			label = definition4Tx,
		};
--Line 5
		Bitmap
		{
			image=BoxName,
			x=kFirstRow,
			y=kFirstLine+4*kLineSpace2,
			Bitmap
			{
				image=asset5,
				x=10,
				y=0,
				scale = 0.4,
			};
		};
--5 Name
		Bitmap
		{
			image="images/ui/buttons/box02",
			x=kFirstRow+kRowSpace2,
			y=kFirstLine+4*kLineSpace2,
	
			Text
			{
				font = MachineFont,
				x=5,
				y=3,
				w=kMax,h=20,
				flags = kHAlignLeft + kVAlignCenter,
				label = Box5Tx,
			};
		};
		Text
		{
			x=kFirstRow+kRowSpace2,
			y=kFirstLine+kTextSpaceUnderBox+4*kLineSpace2,
			label = definition5Tx,
		};
		SetStyle(FitnessButtonStyleTittleSmallBlue),
--//Back
		SBButton
		{
			x=kButtonX,
			y=kButtonY,
			
			icon="assets/images/ui/buttons/icon/iconback",
			command=
				function()
					-- Our game provides this call--it's not a Playground
					-- call.
                    BackCommand();
				end
		},
		Text
		{
			font = SmallFont,
			x=kButtonX,
			y=kButtonY+kTextY,
			flags = kHAlignCenter + kVAlignCenter,
			label = "common.back.label",
		};
--Next
		SBButton
		{
			x=kButtonX+kButtonSpaceX,
			y=kButtonY,
			
			icon="assets/images/ui/buttons/icon/iconplay",
			command=
				function()
					-- Our game provides this call--it's not a Playground
					-- call.
                    NextCommand();
				end
		},
		Text
		{
			font = SmallFont,
			x=kButtonX+kButtonSpaceX,
			y=kButtonY+kTextY,
			flags = kHAlignCenter + kVAlignCenter,
			label = "next",
		};
--Paginate
		Text
		{
			font = SmallFontBlack,
			flags = kHAlignCenter + kVAlignCenter,
			x=kPaginateX,
			y=kPaginateY,
			w=kMax,h=30,
			
			label = paginateLabel,
		};
	}
}

