
dofile ( "hud/bankruptconfirm.lua" );

resigndialog_group = 
{
	ConfirmDialog
	{
		name = "resigndialog",
		x = 0,
		y = 0,
		w = kMax,
		h = kMax,
		
		Bitmap
		{
			name = "resigndialog_panel",	
			image=bankruptconfirm_win_smallframebc_params["image"],
			x=bankruptconfirm_win_smallframebc_params["x"],
			y=bankruptconfirm_win_smallframebc_params["y"],
		},	
		
		Text
		{
			name = "resigndialog_title",
			font = Green15Font,
			x = bankruptconfirm_txt_declare_params["x"]-10,
			y = bankruptconfirm_txt_declare_params["y"]-10,
			w = bankruptconfirm_txt_declare_params["w"]+20,
			h = bankruptconfirm_txt_declare_params["h"]+20,
			flags = kHAlignCenter + kVAlignCenter,
			label = "declarebankrupt"
		},
		
		Bitmap
		{
			name = "resigndialog_yesicon",
			image=bankruptconfirm_ico_bankruptyes_params["image"],
			x=bankruptconfirm_ico_bankruptyes_params["x"],
			y=bankruptconfirm_ico_bankruptyes_params["y"],
		},	
		
		Bitmap
		{
			name = "resigndialog_noicon",
			image=bankruptconfirm_ico_bankruptno_params["image"],
			x=bankruptconfirm_ico_bankruptno_params["x"],
			y=bankruptconfirm_ico_bankruptno_params["y"],
		},	
		
		MonopolyButton
		{
			name = "btn_resigndialog_yes",	
			graphics = bankruptconfirm_btn_menu_yes_params["graphics"],
			x=bankruptconfirm_btn_menu_yes_params["x"],
			y=bankruptconfirm_btn_menu_yes_params["y"],
			font = White12Font,
			label="common.yes.label",
			command=
				function()
					OnConfirmBtnYes();
				end;			
		},
		
		MonopolyButton
		{
			name = "btn_resigndialog_no",	
			graphics = bankruptconfirm_btn_menu_no_params["graphics"],
			x=bankruptconfirm_btn_menu_no_params["x"],
			y=bankruptconfirm_btn_menu_no_params["y"],
			font = White12Font,
			label="common.no.label",
			command=
				function()
					OnConfirmBtnNo();
				end;			
		},
		
	},
}