
require("hud/genericconfirm.lua");

genericdialog_group = 
{
	-- Modal Mask
	ModalBG
	{
		name="modal_background",
		x=0,
		y=0,
		w=800,
		h=600,
	},
	
	-- generic dialog
	GenericDialog
	{
		name = "generic_dialog",
		x = 0,
		y = 0,
		w = kMax,
		h = kMax,
		
		Bitmap
		{
			name = "generic_dialog_panel",	
			image=genericconfirm_win_smallframegc_params["image"],
			x=genericconfirm_win_smallframegc_params["x"],
			y=genericconfirm_win_smallframegc_params["y"],
		},	
				
		-- GENERIC AFFIRMATIVE
		MonopolyButton
		{
			name = "Btn_Dialog_Yes",
			font = White12Font,
			graphics = genericconfirm_btn_menu_confirmyes_params["graphics"],
			x = genericconfirm_btn_menu_confirmyes_params["x"],
			y = genericconfirm_btn_menu_confirmyes_params["y"],
			label = "",
			command=
				function()
					OnGenericDialogAffirmative();
				end;
		},
		
		-- GENERIC NEGATIVE
		MonopolyButton
		{
			name = "Btn_Dialog_No",
			font = White12Font,
			graphics = genericconfirm_btn_menu_confirmno_params["graphics"],
			x = genericconfirm_btn_menu_confirmno_params["x"],
			y = genericconfirm_btn_menu_confirmno_params["y"],
			label = "",
			command=
				function()
					OnGenericDialogNegative();
				end;
		},
		
		Text
		{
			name = "Txt_Dialog_Title",
			font = Green15Font,
			label = "",
			x = genericconfirm_txt_question_params["x"]-5;
			y = genericconfirm_txt_question_params["y"]-5;
			w = genericconfirm_txt_question_params["w"]+10;
			h = genericconfirm_txt_question_params["h"]+10;
			flags = kHAlignCenter + kVAlignCenter,
		},
		
		Text
		{
			name = "Txt_Dialog_Body",
			font = Green14Font,
			label = "",
			x = genericconfirm_txt_info_params["x"]-10;
			y = genericconfirm_txt_info_params["y"]-20;
			w = genericconfirm_txt_info_params["w"]+20;
			h = genericconfirm_txt_info_params["h"]+40;
			flags = kHAlignCenter + kVAlignCenter,
		},
	},
}