---------------------------------------------------------------------------------------------------
--  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" );

dialogs =
{
	safe_dialog_intro =
	{
		name = "safe_dialog_intro";
		image = "autumn_thoughtful";
		sound = "autumn_these_symbols_note";
		text = "autumn_these_symbols_note";
	};
	
	safe_dialog_oncomplete =
	{
		name = "safe_dialog_oncomplete";
		image = "autumn_amused";
		sound = "autumn_ah_opened_safe_inside";
		text = "autumn_ah_opened_safe_inside";
	};
};

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

MakeDialog
{
	SetStyle( MinigameStyle );
	
	MinigameSafe
	{
		name = "safe";

		windowsprite =
		{
			sprite = "minigames/safe/note";
			xcenter = 336;
			ycenter = 216;
		};
		
		keysection =
		{
			sprite = "minigames/safe/keysection%d";
			timeperframe = 50;
			numberofsymbols = 4;
			hilight = "minigames/safe/barrelhilite";
			hilightminalpha = 0.5;
			hilighttime = 450;
			hilightxoffset = 18;
			hilightyoffset = 17;
			
			head =
			{
				image = "minigames/safe/keyhead";
				x = -259;
				y = -125;
			};
			
			tail =
			{
				image = "minigames/safe/keyend";
				x = 70;
				y = 38;
			};
		};
		
		soundclick =
		{
			name = "click";
			loop = false;
			initialdelay = 0;
			delay = 0;
			sounds = gs_soundMetalCylinderRotate;
		};
		
		combination = { 0; 0; 2; 1; };
		startposition = { 2; 1; 1; 3; };
		
		keyposition =
		{
			x = 300;
			y = 200;
			xoffset = 70;
			yoffset = 40;
		};
		
		MinigameButtons();
		AddMinigameTutorial( 400, 300, "safetutorial", "tutorial", -1 );
	};
};

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