require "scripts/style";

function AddBitmap(s2,x2,y2)
		return Bitmap{
			name = ""..s2,
			x = x2, y = y2,
			image="minigames/minigame_wires/buttons_ac/"..s2,
		}
end

MakeDialog
{
	name="MngLawOf4Window",
	MngLawOf4Window
	{
		x=0,
		y=0,
		w=1024,
		h=768,


		startX = 300,
		startY = 220,
		endX = 180,
		endY = 220,
		dy = 82,
		
		tutx=512,
		tuty=100,
		tutfheight=50,
		tuttextoffy=10,

		notifx=800,
		notify=120,

		plus4_x = 156 + 307/2,
		plus4_y = 183 + 92/2,
		plus47_x = 153 + 341/2,
		plus47_y = 281 + 85/2,
		plus80_x = 153 + 330/2,
		plus80_y = 378 + 87/2,
		minus3_x = 522 + 302/2,
		minus3_y = 175 + 86/2,
		minus4_x = 522 + 302/2,
		minus4_y = 270 + 92/2,
		minus67_x = 521 + 349/2,
		minus67_y = 363 + 118/2,
		
		
		pieces0_x=219 + 116/2, pieces0_y=464 + 96/2,
		pieces1_x=309 + 116/2, pieces1_y=464 + 96/2,
		pieces2_x=399 + 116/2, pieces2_y=464 + 96/2,
		pieces3_x=489 + 116/2, pieces3_y=464 + 96/2,
		pieces4_x=581 + 116/2, pieces4_y=464 + 96/2,
		pieces5_x=673 + 116/2, pieces5_y=464 + 96/2,
		pieces6_x=219 + 116/2, pieces6_y=541 + 96/2,
		pieces7_x=309 + 116/2, pieces7_y=541 + 96/2,
		pieces8_x=399 + 116/2, pieces8_y=541 + 96/2,
		pieces9_x=489 + 116/2, pieces9_y=541 + 96/2,
		pieces10_x=581 + 116/2, pieces10_y=541 + 96/2,
		pieces11_x=673 + 116/2, pieces11_y=541 + 96/2,
		
		slot0_x = 189, slot0_y = 222,
		slot1_x = 324, slot1_y = 222,
		slot2_x = 189, slot2_y = 321,
		slot3_x = 324, slot3_y = 321,
		slot4_x = 189, slot4_y = 428,
		slot5_x = 324, slot5_y = 428,
		slot6_x = 558, slot6_y = 222,
		slot7_x = 690, slot7_y = 222,
		slot8_x = 558, slot8_y = 321,
		slot9_x = 690, slot9_y = 321,
		slot10_x = 558, slot10_y = 428,
		slot11_x = 690, slot11_y = 428,
		
		SetStyle(ButtonStyle),
				Button
		{
			graphics = { "buttons/buttondown","buttons/buttonrollover","buttons/buttonup" },
			label = "MG_Skip",
			name = "mg_skip_button",
			font = {standardFont,40,WhiteColor},
			x=kCenter+380,
			y=682,
			command=function() CompleteGame(); end;
		},
		Button
		{
			graphics = { "buttons/buttondown","buttons/buttonrollover","buttons/buttonup" },
			label = "MG_Menu",
			name = "mg_menu_button",
			font = {standardFont,40,WhiteColor},
			x=kCenter-380,
			y=682,
			command=function() DoModal('scripts/mng_pause.lua') end;
		},
--		Button
--		{
--			graphics = { "buttons/buttondown","buttons/buttonrollover","buttons/buttonup" },
--			label = "MG_Reset",
--			name = "mg_reset_button",
--			font = {standardFont,40,WhiteColor},
--			x=kCenter,
--			y=682,
--			command=function() ResetMinigame() end;
--		}
	}
}
SetWindowVisible("mg_skip_button",false);