require("scripts/loadconfirm.lua");

loaddeleteconfirm_group =
{	
	LoadSaveConfirmMenu
	{
		name = "loaddeleteconfirmmenu",
		x = 0,
		y = 10,
		w = 800,
		h = 600,
		mode = knModeLoadDelete,
		
		-- Background
		Bitmap
		{
			name = loaddelconfirm_bg_red_params["name"],
			image = loaddelconfirm_bg_red_params["image"],
			x = loaddelconfirm_bg_red_params["x"],
			y = loaddelconfirm_bg_red_params["y"]-10,
		},		
		Bitmap
		{
			name = loaddelconfirm_win_medframeconf_params["name"],
			image = loaddelconfirm_win_medframeconf_params["image"],
			x = loaddelconfirm_win_medframeconf_params["x"],
			y = loaddelconfirm_win_medframeconf_params["y"],
		},
		
		-- Delete Game
		Bitmap
		{
			name = loaddelconfirm_ico_deleteconfirm_params["name"],
			image = loaddelconfirm_ico_deleteconfirm_params["image"],
			x = loaddelconfirm_ico_deleteconfirm_params["x"],
			y = loaddelconfirm_ico_deleteconfirm_params["y"],
		},
		
		-- Confirmation text
		Text
		{
			name = "confirm.text",
			font = Green17Font,
			label = "ui.delete.confirmation",
			x = loaddelconfirm_txt_confirm_params["x"] - 5,
			y = loaddelconfirm_txt_confirm_params["y"] - 5,
			w = loaddelconfirm_txt_confirm_params["w"] + 10,
			h = loaddelconfirm_txt_confirm_params["h"] + 10,
			flags = kHAlignCenter + kVAlignCenter,
		},
		
		----------------------------------------------------------------
		Group(loadconfirm_subgroup);
		----------------------------------------------------------------
		
		-- Accept
		MonopolyButton
		{
			name = 'yes',
			graphics = loaddelconfirm_btn_menu_leftbutton_params["graphics"];
			x = loaddelconfirm_btn_menu_leftbutton_params["x"],
			y = loaddelconfirm_btn_menu_leftbutton_params["y"],
			label = "common.accept.label",
			font = White12Font,
			command =
				function()
					OnLoadDeleteAccept();
				end
		},
		
		-- Cancel
		MonopolyButton
		{
			name = 'no',
			graphics = loaddelconfirm_btn_menu_rightbutton_params["graphics"];
			x = loaddelconfirm_btn_menu_rightbutton_params["x"],
			y = loaddelconfirm_btn_menu_rightbutton_params["y"],
			label = "common.cancel.label",
			font = White12Font,
			command =
				function()
					OnLoadDeleteConfirmCancel();
				end
		},
	},
}
