From b403954e41f2e47d77a8ee67798cefaeeb6f6588 Mon Sep 17 00:00:00 2001 From: kobewi Date: Sat, 8 Jan 2022 16:27:15 +0100 Subject: Improve FileDialog filters --- doc/classes/FileDialog.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/classes/FileDialog.xml b/doc/classes/FileDialog.xml index 1207288159..2b0594902f 100644 --- a/doc/classes/FileDialog.xml +++ b/doc/classes/FileDialog.xml @@ -13,7 +13,9 @@ - Adds [code]filter[/code] as a custom filter; [code]filter[/code] should be of the form [code]"filename.extension ; Description"[/code]. For example, [code]"*.png ; PNG Images"[/code]. + Adds [code]filter[/code] to the list of filters, which restricts what files can be picked. + A [code]filter[/code] should be of the form [code]"filename.extension ; Description"[/code], where filename and extension can be [code]*[/code] to match any string. Filters starting with [code].[/code] (i.e. empty filenames) are not allowed. + Example filters: [code]"*.png ; PNG Images"[/code], [code]"project.godot ; Godot Project"[/code]. -- cgit v1.2.3