
dofile ( "hud/mortgage.lua" );

mortgageview_group = 
{
	MortgageView
	{
		name = "mortgageview",
		x = 0,
		y = 0,
		w = kMax,
		h = kMax,
		
		Bitmap
		{
			image=mortgage_win_mortgage_params["image"],
			x=mortgage_win_mortgage_params["x"],
			y=mortgage_win_mortgage_params["y"],
			name = "mortgage_panel",	
		},		
		
		Bitmap
		{
			name = "mortgage_title",	
			image=mortgage_txt_mortgage_params["image"],
			x=mortgage_txt_mortgage_params["x"],
			y=mortgage_txt_mortgage_params["y"],
		},	
		
		Bitmap
		{
			name = "mortgage_moneylabel",	
			image=mortgage_txt_mortmoney_params["image"],
			x=mortgage_txt_mortmoney_params["x"],
			y=mortgage_txt_mortmoney_params["y"],
		},	
		
			
		-- TOTAL COST
		Text
		{
			font = MonopolyFont_12B_Grey1,
			name = "mortgage_playermoney_text",
			x = mortgage_txt_cmmoney_params["x"]-10,
			y = mortgage_txt_cmmoney_params["y"]-10,
			w = mortgage_txt_cmmoney_params["w"]+20,
			h = mortgage_txt_cmmoney_params["h"]+20,
			flags = kHAlignCenter + kVAlignCenter,
			label = ""
		},
		
		Text
		{
			font = MonopolyFont_12B_Grey1,
			name = "mortgage_value_text",
			x = mortgage_txt_plusmoney_params["x"]-10,
			y = mortgage_txt_plusmoney_params["y"]-10,
			w = mortgage_txt_plusmoney_params["w"]+20,
			h = mortgage_txt_plusmoney_params["h"]+20,
			flags = kHAlignCenter + kVAlignCenter,
			label = ""
		},
		
		-- ACCEPT BUTTON
		Bitmap
		{
			image="hud/btn_menu_04",
			x = mortgage_btn_menu_maccept_params["x"],
			y = mortgage_btn_menu_maccept_params["y"],
			name = "mask",
		},
		Button
		{
			graphics = mortgage_btn_menu_maccept_params["graphics"],
			x = mortgage_btn_menu_maccept_params["x"],
			y = mortgage_btn_menu_maccept_params["y"],
			name="Btn_Accept",
			label="ui.label.empty",
			cancel=true,
			command=
				function()
					OnMortgageButtonAccept();
				end;
		},
		Bitmap
		{
			image=mortgage_txt_maccept_params["image"],
			x=mortgage_txt_maccept_params["x"],
			y=mortgage_txt_maccept_params["y"],
			name = "mortgage_accept_text",	
		},
			
		-- CANCEL BUTTON
		Bitmap
		{
			image="hud/btn_menu_04",
			x = mortgage_btn_menu_mcancel_params["x"],
			y = mortgage_btn_menu_mcancel_params["y"],
			name = "mask",
		},
		Button
		{
			graphics = mortgage_btn_menu_mcancel_params["graphics"],
			x = mortgage_btn_menu_mcancel_params["x"],
			y = mortgage_btn_menu_mcancel_params["y"],
			name="Btn_Cancel",
			label="ui.label.empty",
			cancel=true,
			command=
				function()
					OnMortgageButtonCancel();
				end;
		},
		Bitmap
		{
			image=mortgage_txt_mcancel_params["image"],
			x=mortgage_txt_mcancel_params["x"],
			y=mortgage_txt_mcancel_params["y"],
			name = "mortgage_canceltext",	
		},		

	},
}