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

paginateLabel = "help_paginate_11";

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

function NextCommand() 
	SetState("HelpScreenTime",0);
	SwapToModal("scripts/help12.lua");
end

kRow1 = 110;
kRow2 = kCenter+ 160;

line2=kFirstLine+265;

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_tug",
		};
		Text
		{
			font = DefinitionFont2,
			x=kCenter,
			y=kFirstLine-25,
			w=500,h=45,
			flags = kHAlignLeft | kVAlignCenter,
			label = "help_header_tug_text_1",
		};
		Bitmap
		{
			image="images/ui/buttons/box04",
			x=kRow1,
			y=kFirstLine+40,
			scale = 0.65,
			Bitmap
			{
				image="images/ui/help/collapsed",
				x = 35,
				y = 45,
				scale=2,
			};
		};
		
		Bitmap
		{
			image="images/ui/buttons/box04",
			x=kRow2,
			y=kFirstLine+40,
			scale = 0.65,
			Bitmap
			{
				image="images/ui/help/tugrightscreen",
				x = 5,
				y = 5,
				scale=1,
			};
		};
		Text
		{
			font = DefinitionFont,
			x=kRow1-10,
			y=line2,
			w=270,h=80,
			flags = kHAlignLeft | kVAlignTop,
			label = "help_tug_text_1",
		};
		Text
		{
			font = DefinitionFont,
			x=kRow2+5,
			y=line2,
			w=270,h=80,
			flags = kHAlignLeft | kVAlignTop,
			label = "help_tug_text_2",
		};
		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,
		};
	}
}

