mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
ecd08a2b0f
Resolves #990. The type parameter is an enum: "openfile", "openfolder", or "savefile". The callback parameter takes 3 args: files (array of full platform-dependent paths to selected files, empty if the dialog is canceled by the user), filtername (nil if none is set, see below), errorstring (nil if no error). The optional settings parameter of showFileDialog has the following fields: { title = string (optional title), acceptlabel = string (optional custom name for the Accept button), cancellabel = string (optional custom name for the Cancel button), defaultname = string (optional default folder/file name for the file text box), filters = table (filter names as keys and filter pattern strings as values). }