---------------------------------------------------------------------------------------------------
--  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 =
{
	gridcircuit_dialog_intro =
	{
		name = "gridcircuit_dialog_intro";
		image = "autumn_thoughtful";
		sound = "autumn_controls_flow_of_something_push";
		text = "autumn_controls_flow_of_something_push";
	};
	
	gridcircuit_dialog_oncomplete =
	{
		name = "gridcircuit_dialog_oncomplete";
		image = "autumn_amused";
		sound = "autumn_hydraulics_bet_activated_sewer";
		text = "autumn_hydraulics_bet_activated_sewer";
	};
};

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

MakeDialog
{
	SetStyle( MinigameStyle );
	
	MinigameGridCircuit
	{
		name = "gridcircuit";
		locationscript = "scripts/minigames/gridcircuitlocations.lua";
		numbertolight = 4;
		timefail = 250;
		failflashcount = 2;
		correctbuttons = {2;8;9;15;};
		timeskipfade = 250;
		
		windowsprite =
		{
			sprite = "minigames/gridcircuit/background";
			xcenter = 400;
			ycenter = 300 - yoffset;
		};
		
		overlay =
		{
			sprite = "minigames/gridcircuit/overlay";
			x = 220;
			y = 46 + yoffset;
		};
		
		sensor =
		{
			lightbulbimage = "minigames/gridcircuit/lightbulb%02d";
			buttonimage = "minigames/gridcircuit/button%02d";
		};
		
		pipe =
		{
			timefill = 1000;
			image = "minigames/gridcircuit/water%02d";
		};
		
		soundwater =
		{
			name = "water";
			loop = false;
			initialdelay = 0;
			delay = 0;
			sounds = gs_soundWaterBubblesTubeDrain;
		};
		
		MinigameButtons();
		AddMinigameTutorial( 400, 300, "gridcircuittutorial", "tutorial", -1 );
	};
};

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