
dofile ( "hud/playerintervention.lua" );

intervention_group = 
{
	InterventionDialog
	{
		name = "interventiondialog",
		x = 0,
		y = 0,
		w = kMax,
		h = kMax,
		
		Bitmap
		{
			image=playerintervention_win_playerint_params["image"],
			x=playerintervention_win_playerint_params["x"],
			y=playerintervention_win_playerint_params["y"],
			name = "intervention_panel",	
		},	
		
		Text
		{
			name = "intervention_title",
			font = Green15Font,
			x=playerintervention_txt_playername_params["x"]-20,
			y=playerintervention_txt_playername_params["y"]-10,
			w=playerintervention_txt_playername_params["w"]+20,
			h=playerintervention_txt_playername_params["h"]+20,
			flags = kHAlignCenter + kVAlignCenter,
			label="intervention",
		},
		
		Bitmap
		{
			name = "intervention_iconframe",
			image='hud/ico_iconframe_01',
			x=playerintervention_ico_mplayericon03_params["x"] - ((56 - playerintervention_ico_mplayericon03_params["w"])/2),
			y=playerintervention_ico_mplayericon03_params["y"] - ((55 - playerintervention_ico_mplayericon03_params["h"])/2),
		},
				
		Bitmap
		{
			name = "intervention_icon",
			image=playerintervention_ico_mplayericon03_params["image"],
			x=playerintervention_ico_mplayericon03_params["x"],
			y=playerintervention_ico_mplayericon03_params["y"],
		},	
		
		SetStyle(GameDialogStyle),
				
		MonopolyButton
		{
			name = "btn_intervention_deal",	
			x=playerintervention_btn_menu_deal_params["x"],
			y=playerintervention_btn_menu_deal_params["y"],
			label="deal2.btn",
			command=
				function()
					OnInterventionButtonDeal();
				end;			
		},
		
		Bitmap
		{
			name = "btn_intervention_mortgage_disabled",	
			image = 'hud/btn_menu_04',
			x = playerintervention_btn_menu_mortgage_params["x"],
			y = playerintervention_btn_menu_mortgage_params["y"],
		},
		
		MonopolyButton
		{
			name = "btn_intervention_mortgage",	
			x=playerintervention_btn_menu_mortgage_params["x"],
			y=playerintervention_btn_menu_mortgage_params["y"],
			label="mortgage.btn",
			command=
				function()
					OnInterventionButtonMortgage();
				end;			
		},
		
		MonopolyButton
		{
			name = "btn_intervention_done",	
			x=playerintervention_btn_menu_done_params["x"],
			y=playerintervention_btn_menu_done_params["y"],
			label="done",
			command=
				function()
					OnInterventionButtonDone();
				end;			
		},	

	},
}