---------------------------------------------------------------------------------------------------
--  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 yoffset = 0;

dialogs =
{
	spyglass_dialog_intro =
	{
		name = "spyglass_dialog_intro";
		image = "autumn_thoughtful";
		sound = "autumn_now_lets_see_out_there";
		text = "autumn_now_lets_see_out_there";
	};
	
	spyglass_dialog_found1 =
	{
		name = "spyglass_dialog_found1";
		image = "autumn_angry";
		sound = "autumn_he_moved_last_minute";
		text = "autumn_he_moved_last_minute";
	};
	
	spyglass_dialog_found3 =
	{
		name = "spyglass_dialog_found2";
		image = "autumn_angry";
		sound = "autumn_there_he_goes_hes_on_move_again";
		text = "autumn_there_he_goes_hes_on_move_again";
	};
	
	spyglass_dialog_oncomplete =
	{
		name = "spyglass_dialog_oncomplete";
		image = "autumn_amused";
		sound = "autumn_got_him";
		text = "autumn_got_him";
		nextdialog = "spyglass_dialog_oncomplete2";
	};
	
	spyglass_dialog_oncomplete2 =
	{
		name = "spyglass_dialog_oncomplete2";
		image = "autumn_thoughtful";
		sound = "autumn_he_seems_just_watching_us";
		text = "autumn_he_seems_just_watching_us";
		nextdialog = "spyglass_dialog_oncomplete3";
	};
	
	spyglass_dialog_oncomplete3 =
	{
		name = "spyglass_dialog_oncomplete3";
		image = "guide";
		sound = "guide_deal_with_him_dangerous";
		text = "guide_deal_with_him_dangerous";
		nextdialog = "spyglass_dialog_oncomplete4";
	};
	
	spyglass_dialog_oncomplete4 =
	{
		name = "spyglass_dialog_oncomplete4";
		image = "autumn_worried";
		sound = "autumn_im_not_so_sure_about_that";
		text = "autumn_im_not_so_sure_about_that";
	};
};

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

MakeDialog
{
	SetStyle( MinigameStyle );
	
	MinigameSpyglass
	{
		name = "spyglass";
		maxy = 475;
		
		dialogsonfound = { 1; 3; };
		
		windowsprite =
		{
			sprite = "minigames/spyglass/background";
			xcenter = 400;
			ycenter = 300 - yoffset;
		};
		
		viewfinder =
		{
			w = 150;
			h = 100;
			image = "minigames/spyglass/crosshair";
			alpha = 0.85;
		};
		
		soundshutter =
		{
			name = "shutter";
			loop = false;
			initialdelay = 0;
			delay = 0;
			sounds = gs_soundCameraShutter;
		};
		
		worthington =
		{
			loc00 =
			{
				x = 351;
				y = 227;
				image = "minigames/spyglass/worthington_00";
			};
			
			loc01 =
			{
				x = 317;
				y = 347;
				image = "minigames/spyglass/worthington_01";
			};
			
			loc02 =
			{
				x = 408;
				y = 26;
				image = "minigames/spyglass/worthington_02";
			};
			
			loc03 =
			{
				x = 377;
				y = 346;
				image = "minigames/spyglass/worthington_03";
			};
			
			loc04 =
			{
				x = 366;
				y = 116;
				image = "minigames/spyglass/worthington_04";
			};
		};
		
		MinigameButtons();
		AddMinigameTutorial( 400, 300, "spyglasstutorial", "tutorial", -1 );
	};
};

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