
dofile ( "hud/buildhazard.lua" );

earthquakeview_group = 
{
	EarthquakeView
	{
		name = "earthquakeview",
		x = 0,
		y = 0,
		w = kMax,
		h = kMax,

		Bitmap	-- Panel
		{
			image=buildhazard_win_buildhazard_params["image"],
			x=buildhazard_win_buildhazard_params["x"],
			y=buildhazard_win_buildhazard_params["y"],
			name = "planningpermissionearthquake_panel",	
		},		
		
		Bitmap	-- PLANNING PERMISSION text
		{
			image=buildhazard_txt_buildhazard_params["image"],
			x=buildhazard_txt_buildhazard_params["x"],
			y=buildhazard_txt_buildhazard_params["y"],
			name = "planningpermissionearthquake_title",	
		},

		SetStyle(ActionBarButtonStyle),
		
		---- BONUS BUTTONS
		Bitmap
		{
			image="hud/btn_sewage_04",
			x = buildhazard_btn_sewage_params["x"],
			y = buildhazard_btn_sewage_params["y"],
			name = "Btn_Sewage_Disabled",
		},
		Bitmap
		{
			image="hud/btn_waste_04",
			x = buildhazard_btn_rubbish_params["x"],
			y = buildhazard_btn_rubbish_params["y"],
			name = "Btn_Waste_Disabled",
		},
		Bitmap
		{
			image="hud/btn_pwrplant_04",
			x = buildhazard_btn_pwrplant_params["x"],
			y = buildhazard_btn_pwrplant_params["y"],
			name = "Btn_PowerPlant_Disabled",
		},
		Bitmap
		{
			image="hud/btn_prison_04",
			x = buildhazard_btn_prison_params["x"],
			y = buildhazard_btn_prison_params["y"],
			name = "Btn_Prison_Disabled",
		},
		
		-- Sewage
		MonopolyButton
		{
			graphics = buildhazard_btn_sewage_params["graphics"],
			x = buildhazard_btn_sewage_params["x"],
			y = buildhazard_btn_sewage_params["y"],
			name="Btn_Sewage",
			label="",
			command=
				function()
					OnEarthquakeButtonSewage();
				end;
		},
		
		Text
		{
			font = MonopolyFont_14B_Grey1,
			name = "buildhazard_txt_sewage_params",
			x = buildhazard_txt_sewage_params["x"],
			y = buildhazard_txt_sewage_params["y"]-8,
			w = buildhazard_txt_sewage_params["w"]+10,
			h = buildhazard_txt_sewage_params["h"]+21,
			flags = kHAlignLeft + kVAlignCenter,
			label = ""
		},
		Text
		{
			font = MonopolyFont_14B_Grey1,
			name = "buildhazard_txt_sewage_description",
			label = "hazard.sewageplant",
			x = buildhazard_txt_sewage_params["x"]+28,
			y = buildhazard_txt_sewage_params["y"]-8,
			w = buildhazard_txt_sewage_params["w"]+50,
			h = buildhazard_txt_sewage_params["h"]+21,
			flags = kHAlignLeft + kVAlignCenter,
		},

		-- Waste
		MonopolyButton
		{
			graphics = buildhazard_btn_rubbish_params["graphics"],
			x = buildhazard_btn_rubbish_params["x"],
			y = buildhazard_btn_rubbish_params["y"],
			name="Btn_Waste",
			label="",
			command=
				function()
					OnEarthquakeButtonWaste();
				end;
		},
		
		Text
		{
			font = MonopolyFont_14B_Grey1,
			name = "buildhazard_txt_rubbish_params",
			x = buildhazard_txt_rubbish_params["x"],
			y = buildhazard_txt_rubbish_params["y"]-8,
			w = buildhazard_txt_rubbish_params["w"]+10,
			h = buildhazard_txt_rubbish_params["h"]+21,
			flags = kHAlignLeft + kVAlignCenter,
			label = ""
		},
		Text
		{
			font = MonopolyFont_14B_Grey1,
			name = "buildhazard_txt_rubbish_description",
			label = "hazard.rubbishdump",
			x = buildhazard_txt_rubbish_params["x"]+28,
			y = buildhazard_txt_rubbish_params["y"]-8,
			w = buildhazard_txt_rubbish_params["w"]+50,
			h = buildhazard_txt_rubbish_params["h"]+21,
			flags = kHAlignLeft + kVAlignCenter,
		},

		-- Power plant
		MonopolyButton
		{
			graphics = buildhazard_btn_pwrplant_params["graphics"],
			x = buildhazard_btn_pwrplant_params["x"],
			y = buildhazard_btn_pwrplant_params["y"],
			name="Btn_PowerPlant",
			label="",
			command=
				function()
					OnEarthquakeButtonPowerPlant();
				end;
		},
		
		Text
		{
			font = MonopolyFont_14B_Grey1,
			name = "buildhazard_txt_pwrplant_params",
			x = buildhazard_txt_pwrplant_params["x"],
			y = buildhazard_txt_pwrplant_params["y"]-8,
			w = buildhazard_txt_pwrplant_params["w"]+10,
			h = buildhazard_txt_pwrplant_params["h"]+21,
			flags = kHAlignLeft + kVAlignCenter,
			label = ""
		},
		Text
		{
			font = MonopolyFont_14B_Grey1,
			name = "buildhazard_txt_pwrplant_description",
			label = "hazard.powerstation",
			x = buildhazard_txt_pwrplant_params["x"]+28,
			y = buildhazard_txt_pwrplant_params["y"]-8,
			w = buildhazard_txt_pwrplant_params["w"]+50,
			h = buildhazard_txt_pwrplant_params["h"]+21,
			flags = kHAlignLeft + kVAlignCenter,
		},
		
		-- Prison
		MonopolyButton
		{
			graphics = buildhazard_btn_prison_params["graphics"],
			x = buildhazard_btn_prison_params["x"],
			y = buildhazard_btn_prison_params["y"],
			name="Btn_Prison",
			label="",
			command=
				function()
					OnEarthquakeButtonPrison();
				end;
		},
		
		Text
		{
			font = MonopolyFont_14B_Grey1,
			name = "buildhazard_txt_prison_params",
			x = buildhazard_txt_prison_params["x"],
			y = buildhazard_txt_prison_params["y"]-8,
			w = buildhazard_txt_prison_params["w"]+10,
			h = buildhazard_txt_prison_params["h"]+21,
			flags = kHAlignLeft + kVAlignCenter,
			label = ""
		},
		Text
		{
			font = MonopolyFont_14B_Grey1,
			name = "buildhazard_txt_prison_description",
			label = "hazard.prison",
			x = buildhazard_txt_prison_params["x"]+28,
			y = buildhazard_txt_prison_params["y"]-8,
			w = buildhazard_txt_prison_params["w"]+50,
			h = buildhazard_txt_prison_params["h"]+21,
			flags = kHAlignLeft + kVAlignCenter,
		},
		
		-- BUY BUTTON
		Bitmap
		{
			image="hud/btn_menu_04",
			x = buildhazard_btn_menu_hazaccept_params["x"],
			y = buildhazard_btn_menu_hazaccept_params["y"],
			name = "mask",
		},
		
		MonopolyButton
		{
			graphics = buildhazard_btn_menu_hazaccept_params["graphics"],
			x = buildhazard_btn_menu_hazaccept_params["x"],
			y = buildhazard_btn_menu_hazaccept_params["y"],
			name="Btn_Buy",
			label="",
			command=
				function()
					OnBuildButtonBuy();
				end;
		},
		Bitmap
		{
			image=buildhazard_txt_hazaccept_params["image"],
			x=buildhazard_txt_hazaccept_params["x"],
			y=buildhazard_txt_hazaccept_params["y"],
			name = "planning_buytext",	
		},
		
		-- CANCEL BUTTON
		Bitmap
		{
			image="hud/btn_menu_04",
			x = buildhazard_btn_menu_hazcancel_params["x"],
			y = buildhazard_btn_menu_hazcancel_params["y"],
			name = "mask",
		},
		MonopolyButton
		{
			graphics = buildhazard_btn_menu_hazcancel_params["graphics"],
			x = buildhazard_btn_menu_hazcancel_params["x"],
			y = buildhazard_btn_menu_hazcancel_params["y"],
			name="Btn_Cancel",
			label="",
			command=
				function()
					OnBuildButtonCancel();
				end;
		},
		Bitmap
		{
			image=buildhazard_txt_hazcancel_params["image"],
			x=buildhazard_txt_hazcancel_params["x"],
			y=buildhazard_txt_hazcancel_params["y"],
			name = "planning_canceltext",	
		},
		
			-- REMOVE BUTTON			
			MonopolyButton
			{
				graphics =
				{
					'game_static/ui/button/btn_remove_01',
					'game_static/ui/button/btn_remove_02',
					'game_static/ui/button/btn_remove_03',
					'game_static/ui/button/btn_remove_04'
				},
				x = 680,
				y = 500,
				name="Btn_Destroy",
				label="",
				command=
					function()
						OnBuildButtonDestroy();
					end;
			},
			
			-- ROTATE LEFT BUTTON
			MonopolyButton
			{
				graphics =
				{
					'game_static/ui/button/btn_rotatel_01',
					'game_static/ui/button/btn_rotatel_02',
					'game_static/ui/button/btn_rotatel_03',
					'game_static/ui/button/btn_rotatel_04'
				},
				x = 650,
				y = 500,
				name="Btn_RotateLeft",
				label="",
				command=
					function()
						OnBuildButtonRotateLeft();
					end;
			},
			
			-- ROTATE RIGHT BUTTON
			MonopolyButton
			{
				graphics =
				{
					'game_static/ui/button/btn_rotater_01',
					'game_static/ui/button/btn_rotater_02',
					'game_static/ui/button/btn_rotater_03',
					'game_static/ui/button/btn_rotater_04'
				},
				x = 710,
				y = 500,
				name="Btn_RotateRight",
				label="",
				command=
					function()
						OnBuildButtonRotateRight();
					end;
			},	
	},
}