---------------------------------------------------------------------------------------------------
--  Copyright © 2009 PoBros, Incorporated. All Rights Reserved.
--
--  This source code is the proprietary confidential property of PoBros Incorporated.
--  Modification, reproduction, publication, or distribution in any form to any party 
--  other than the licensee is strictly prohibited.
--
--  FOR USE BY AUTHORIZED PERSONS ONLY
---------------------------------------------------------------------------------------------------

require( "scripts/style.lua" );

local kYOffset = 0;

dialogs =
{
	puzzleslide_dialog_intro =
	{
		name = "puzzleslide_dialog_intro";
		image = "autumn_thoughtful";
		sound = "autumn_move_around_a_bit_image";
		text = "autumn_move_around_a_bit_image";
	};
	
	puzzleslide_dialog_oncomplete =
	{
		name = "puzzleslide_dialog_oncomplete";
		image = "autumn_amused";
		sound = "autumn_got_it_much_better_properly_arranged";
		text = "autumn_got_it_much_better_properly_arranged";
	};
};
		
---------------------------------------------------------------------------------------------------

MakeDialog
{
	SetStyle( MinigameStyle );
	
	MinigamePuzzleSlide
	{
		name = "puzzleslide";
		tilefadetime = 500;

		windowsprite =
		{
			sprite = "minigames/puzzleslide/background";
			xcenter = 400;
			ycenter = 300 - kYOffset;
		};
		
		slots =
		{
			startx = 208;
			starty = 46 + kYOffset;
			width = 98;
			height = 97;
			movetime = 250;
			image = "minigames/puzzleslide/tiles";
		};
		
		soundslide =
		{
			name = "slide";
			loop = false;
			initialdelay = 0;
			delay = 0;
			sounds = gs_soundSlidingClayTile;
		};

		solution = { 1;2;3;0;4;5;6;7;8;9;10;11;12;13;14;15; };
		
		MinigameButtons();
		AddMinigameTutorial( 400, 300, "puzzleslidetutorial", "tutorial", -1 );
	};
};

---------------------------------------------------------------------------------------------------
