
dofile ( "hud/bplanpermi.lua" );

planningpermissionview_group = 
{
		PlanningPermissionView
		{
			name = "planningpermissionview",
			x = 0,
			y = 0,
			w = kMax,
			h = kMax,
			

			Bitmap	-- Panel
			{
				image=bplanpermi_win_planpermi_params["image"],
				x=bplanpermi_win_planpermi_params["x"],
				y=bplanpermi_win_planpermi_params["y"],
				name = "planningpermission_panel",	
			},		
			
			Bitmap	-- PLANNING PERMISSION text
			{
				image=bplanpermi_txt_planpermi_params["image"],
				x=bplanpermi_txt_planpermi_params["x"],
				y=bplanpermi_txt_planpermi_params["y"],
				name = "planningpermission_title",	
			},	
				
			Bitmap	-- BONUS text
			{
				image=bplanpermi_txt_bonus_params["image"],
				x=bplanpermi_txt_bonus_params["x"],
				y=bplanpermi_txt_bonus_params["y"],
				name = "bonus_title",	
			},
			
			Bitmap	-- HAZARD text
			{
				image=bplanpermi_txt_hazard_params["image"],
				x=bplanpermi_txt_hazard_params["x"],
				y=bplanpermi_txt_hazard_params["y"],
				name = "hazard_text",	
			},		



			SetStyle(ActionBarButtonStyle),
			
			---- BONUS BUTTONS
			Bitmap
			{
				image="hud/btn_park_04",
				x = bplanpermi_btn_school_params["x"],
				y = bplanpermi_btn_school_params["y"],
				name = "Btn_Park_Disabled",
			},
			Bitmap
			{
				image="hud/btn_school_04",
				x = bplanpermi_btn_school_params["x"],
				y = bplanpermi_btn_school_params["y"],
				name = "Btn_School_Disabled",
			},
			Bitmap
			{
				image="hud/btn_watertwr_04",
				x = bplanpermi_btn_school_params["x"],
				y = bplanpermi_btn_school_params["y"],
				name = "Btn_WaterTower_Disabled",
			},
			Bitmap
			{
				image="hud/btn_windmill_04",
				x = bplanpermi_btn_school_params["x"],
				y = bplanpermi_btn_school_params["y"],
				name = "Btn_WindFarm_Disabled",
			},
			-- Park
			MonopolyButton
			{
				graphics =
				{
					'hud/btn_park_01',
					'hud/btn_park_02',
					'hud/btn_park_03',
					'hud/btn_park_04'
				};
				x = bplanpermi_btn_school_params["x"],
				y = bplanpermi_btn_school_params["y"],
				name="Btn_Park",
				label="",
				command=
					function()
						OnPlanningPermissionButtonPark();
					end;
			},
			-- School
			MonopolyButton
			{
				graphics = bplanpermi_btn_school_params["graphics"],
				x = bplanpermi_btn_school_params["x"],
				y = bplanpermi_btn_school_params["y"],
				name="Btn_School",
				label="",
				command=
					function()
						OnPlanningPermissionButtonSchool();
					end;
			},
			-- Water tower
			MonopolyButton
			{
				graphics =
				{
					'hud/btn_watertwr_01',
					'hud/btn_watertwr_02',
					'hud/btn_watertwr_03',
					'hud/btn_watertwr_04'
				};
				x = bplanpermi_btn_school_params["x"],
				y = bplanpermi_btn_school_params["y"],
				name="Btn_WaterTower",
				label="",
				command=
					function()
						OnPlanningPermissionButtonWaterTower();
					end;
			},
			-- Wind mill
			MonopolyButton
			{
				graphics =
				{
					'hud/btn_windmill_01',
					'hud/btn_windmill_02',
					'hud/btn_windmill_03',
					'hud/btn_windmill_04'
				};
				x = bplanpermi_btn_school_params["x"],
				y = bplanpermi_btn_school_params["y"],
				name="Btn_WindFarm",
				label="",
				command=
					function()
						OnPlanningPermissionButtonWindFarm();
					end;
			},
			Text
			{
				font = MonopolyFont_14B_Grey1,
				name = "build_bonusamount_text",
				x = bplanpermi_txt_bonamt_params["x"],
				y = bplanpermi_txt_bonamt_params["y"]-10,
				w = bplanpermi_txt_bonamt_params["w"],
				h = bplanpermi_txt_bonamt_params["h"]+20,
				flags = kHAlignLeft + kVAlignCenter,
				label = ""
			},
			Text
			{
				font = MonopolyFont_14B_Grey1,
				name = "build_bonusdesc_text",
				x = bplanpermi_txt_bonusdesc_params["x"]-10,
				y = bplanpermi_txt_bonusdesc_params["y"]-10,
				w = bplanpermi_txt_bonusdesc_params["w"]+20,
				h = bplanpermi_txt_bonusdesc_params["h"]+20,
				flags = kHAlignLeft + kVAlignCenter,
				label = ""
			},
						
			---- HAZARD BUTTONS
			Bitmap
			{
				image="hud/btn_prison_04",
				x = bplanpermi_btn_prison_params["x"],
				y = bplanpermi_btn_prison_params["y"],
				name = "Btn_Prison_Disabled",
			},
			Bitmap
			{
				image="hud/btn_sewage_04",
				x = bplanpermi_btn_prison_params["x"],
				y = bplanpermi_btn_prison_params["y"],
				name = "Btn_SewagePlant_Disabled",
			},
			Bitmap
			{
				image="hud/btn_pwrplant_04",
				x = bplanpermi_btn_prison_params["x"],
				y = bplanpermi_btn_prison_params["y"],
				name = "Btn_PowerStation_Disabled",
			},
			Bitmap
			{
				image="hud/btn_waste_04",
				x = bplanpermi_btn_prison_params["x"],
				y = bplanpermi_btn_prison_params["y"],
				name = "Btn_RubbishDump_Disabled",
			},
			-- Prison
			MonopolyButton
			{
				graphics = bplanpermi_btn_prison_params["graphics"],
				x = bplanpermi_btn_prison_params["x"],
				y = bplanpermi_btn_prison_params["y"],
				name="Btn_Prison",
				label="",
				command=
					function()
						OnPlanningPermissionButtonPrison();
					end;
			},
			-- Sewage
			MonopolyButton
			{
				graphics =
				{
					'hud/btn_sewage_01',
					'hud/btn_sewage_02',
					'hud/btn_sewage_03',
					'hud/btn_sewage_04'
				};
				x = bplanpermi_btn_prison_params["x"],
				y = bplanpermi_btn_prison_params["y"],
				name="Btn_SewagePlant",
				label="",
				command=
					function()
						OnPlanningPermissionButtonSewagePlant();
					end;
			},
			-- Power station
			MonopolyButton
			{
				graphics =
				{
					'hud/btn_pwrplant_01',
					'hud/btn_pwrplant_02',
					'hud/btn_pwrplant_03',
					'hud/btn_pwrplant_04'
				};
				x = bplanpermi_btn_prison_params["x"],
				y = bplanpermi_btn_prison_params["y"],
				name="Btn_PowerStation",
				label="",
				command=
					function()
						OnPlanningPermissionButtonPowerStation();
					end;
			},
			-- Rubbish dump
			MonopolyButton
			{
				graphics =
				{
					'hud/btn_waste_01',
					'hud/btn_waste_02',
					'hud/btn_waste_03',
					'hud/btn_waste_04'
				};
				x = bplanpermi_btn_prison_params["x"],
				y = bplanpermi_btn_prison_params["y"],
				name="Btn_RubbishDump",
				label="",
				command=
					function()
						OnPlanningPermissionButtonRubbishDump();
					end;
			},
			Text
			{
				font = MonopolyFont_14B_Grey1,
				name = "build_hazardamount_text",
				x = bplanpermi_txt_hazamt_params["x"],
				y = bplanpermi_txt_hazamt_params["y"]-10,
				w = bplanpermi_txt_hazamt_params["w"],
				h = bplanpermi_txt_hazamt_params["h"]+20,
				flags = kHAlignLeft + kVAlignCenter,
				label = ""
			},
			Text
			{
				font = MonopolyFont_14B_Grey1,
				name = "build_hazarddesc_text",
				x = bplanpermi_txt_hazarddesc_params["x"]-10,
				y = bplanpermi_txt_hazarddesc_params["y"]-10,
				w = bplanpermi_txt_hazarddesc_params["w"]+20,
				h = bplanpermi_txt_hazarddesc_params["h"]+20,
				flags = kHAlignLeft + kVAlignCenter,
				label = ""
			},
	

			-- BUY BUTTON
			Bitmap
			{
				image="hud/btn_menu_04",
				x = bplanpermi_btn_menu_ppaccept_params["x"],
				y = bplanpermi_btn_menu_ppaccept_params["y"],
				name = "mask",
			},
			MonopolyButton
			{
				graphics = bplanpermi_btn_menu_ppaccept_params["graphics"],
				x = bplanpermi_btn_menu_ppaccept_params["x"],
				y = bplanpermi_btn_menu_ppaccept_params["y"],
				name="Btn_Buy",
				label="",
				command=
					function()
						OnBuildButtonBuy();
					end;
			},
			Bitmap
			{
				image=bplanpermi_txt_ppaccept_params["image"],
				x=bplanpermi_txt_ppaccept_params["x"],
				y=bplanpermi_txt_ppaccept_params["y"]-1,
				name = "planning_buytext",	
			},
			
			-- CANCEL BUTTON
			Bitmap
			{
				image="hud/btn_menu_04",
				x = bplanpermi_btn_menu_ppcancel_params["x"],
				y = bplanpermi_btn_menu_ppcancel_params["y"],
				name = "mask",
			},
			MonopolyButton
			{
				graphics = bplanpermi_btn_menu_ppcancel_params["graphics"],
				x = bplanpermi_btn_menu_ppcancel_params["x"],
				y = bplanpermi_btn_menu_ppcancel_params["y"],
				name="Btn_Cancel",
				label="",
				command=
					function()
						OnBuildButtonCancel();
					end;
			},
			Bitmap
			{
				image=bplanpermi_txt_ppcancel_params["image"],
				x=bplanpermi_txt_ppcancel_params["x"],
				y=bplanpermi_txt_ppcancel_params["y"]-1,
				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;
			},	
		},
}