---------------------------------------------------------------------------------------------------
--  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;
local wireyoffset = 351;

dialogs =
{
	bomb_dialog_intro =
	{
		name = "bomb_dialog_intro";
		image = "autumn_thoughtful";
		sound = "autumn_manual_has_orders_for_wires";
		text = "autumn_manual_has_orders_for_wires";
	};
	
	bomb_dialog_oncomplete =
	{
		name = "bomb_dialog_oncomplete";
		image = "autumn_amused";
		sound = "autumn_that_wasnt_so_tough_bomb_squad";
		text = "autumn_that_wasnt_so_tough_bomb_squad";
	};
};

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

MakeDialog
{
	SetStyle( MinigameStyle );
	
	MinigameBomb
	{
		name = "bomb";
		skipdelay = 50;
		
		wires =
		{
			wire1 =
			{
				x = 200;
				y = wireyoffset + yoffset;
				index = 0;
			};
			
			wire2 =
			{
				x = 257;
				y = wireyoffset + yoffset;
				index = 1;
			};
			
			wire3 =
			{
				x = 311;
				y = wireyoffset + yoffset;
				index = 2;
			};
			
			wire4 =
			{
				x = 367;
				y = wireyoffset + yoffset;
				index = 3;
			};
			
			wire5 =
			{
				x = 422;
				y = wireyoffset + yoffset;
				index = 4;
			};
			
			wire6 =
			{
				x = 477;
				y = wireyoffset + yoffset;
				index = 5;
			};
			
			wire7 =
			{
				x = 532;
				y = wireyoffset + yoffset;
				index = 6;
			};
			
			wire8 =
			{
				x = 587;
				y = wireyoffset + yoffset;
				index = 7;
			};
			
			info =
			{
				timelift = 200;
				timerolloveralpha = 400;
				timerollovermove = 200;
				timetravel = 500;
				distancelift = -50;
				distancerollover = -15;
				alpharollover = 0.5;
				image = "minigames/bomb/wire";
				led = "minigames/bomb/led";
				ledxoffset = 8;
				ledyoffset = -15;
				tip = "minigames/bomb/tip";
				tipxoffset = -5;
				tipyoffset = -7;
			};
		};
		
		windowsprite =
		{
			sprite = "minigames/bomb/background";
			xcenter = 400;
			ycenter = 300 - yoffset;
		};
		
		overlay =
		{
			image = "minigames/bomb/overlay";
			x = 191;
			y = 348 + yoffset;
		};
		
		soundcablepull =
		{
			name = "pull";
			loop = false;
			initialdelay = 0;
			delay = 0;
			sounds = gs_soundBombCablePull;
		};
		
		soundcablepush =
		{
			name = "push";
			loop = false;
			initialdelay = 0;
			delay = 0;
			sounds = gs_soundBombCablePush;
		};
		
		soundbombbeep =
		{
			name = "beep";
			loop = true;
			initialdelay = 0;
			delay = 1000;
			sounds = gs_soundBombBeep;
		};
		
		cliprect = {0,0,800,475};
		
		MinigameButtons();
		AddMinigameTutorial( 400, 300, "bombtutorial", "tutorial", -1 );
	};
};

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