-- --------------------------------------------------------------------------
-- 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 = "help12";

paginateLabel = "help_paginate_12";

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

function NextCommand() 
	PopModal(nameDialog);
end

kRow1 = 110;
kRow2 = kCenter+ 160;

line2=kFirstLine+295;

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_tug_text_1_header",
		};
		Bitmap
		{
			image="images/ui/buttons/box03",
			x=kRow1,
			y=kFirstLine-20,
			scale = 1.1,
			
			Text
			{
				font = DefinitionFont14,
				x=5,
				y=8,
				w=kMax,h=45,
				flags = kHAlignLeft | kVAlignTop,
				label = "help_tug_text_3_header",
			};
		};
		Bitmap
		{
			image="images/ui/buttons/box03",
			x=kRow2,
			y=kFirstLine-20,
			scale = 1.1,
			Text
			{
				font = DefinitionFont14,
				x=5,
				y=8,
				w=kMax,h=45,
				flags = kHAlignLeft | kVAlignTop,
				label = "help_tug_text_4_header",
			};
		};
		Text
		{
			font = DefinitionFont,
			x=kRow1,
			y=kFirstLine+15,
			w=270,h=45,
			flags = kHAlignLeft | kVAlignTop,
			label = "help_tug_text_3",
		};
		Text
		{
			font = DefinitionFont,
			x=kRow2+20,
			y=kFirstLine+15,
			w=270,h=45,
			flags = kHAlignLeft | kVAlignTop,
			label = "help_tug_text_4",
		};
		Text
		{
			font = DefinitionFont14,
			x=kRow1,
			y=kFirstLine+45,
			w=kMax,h=45,
			flags = kHAlignLeft | kVAlignTop,
			label = "help_tug_text_5_header",
		};
				
		Bitmap
		{
			image="images/ui/buttons/box04",
			x=kRow1,
			y=kFirstLine+70,
			scale = 0.65,
			Bitmap
			{
				image="images/ui/help/empty_grid",
				x = 13,
				y = 8,
				scale=0.54,
			};
		};
		
		Bitmap
		{
			image="images/ui/buttons/box04",
			x=kRow2,
			y=kFirstLine+70,
			scale = 0.65,
			Bitmap
			{
				image="images/ui/help/team_in_mud",
				x = 20,
				y = 10,
				scale=0.65,
			};
		};
		Text
		{
			font = DefinitionFont,
			x=kRow1-10,
			y=line2,
			w=270,h=80,
			flags = kHAlignLeft | kVAlignTop,
			label = "help_tug_text_5b",
		};
		Text
		{
			font = DefinitionFont,
			x=kRow2+20,
			y=line2,
			w=270,h=80,
			flags = kHAlignLeft | kVAlignTop,
			label = "help_tug_text_5a",
		};
		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,
		};
	}
}

