Seperate filter and description in FileDialog.add_filter()
This commit is contained in:
@ -11,9 +11,11 @@
|
||||
<method name="add_filter">
|
||||
<return type="void" />
|
||||
<argument index="0" name="filter" type="String" />
|
||||
<argument index="1" name="description" type="String" default="""" />
|
||||
<description>
|
||||
Adds a comma-delimited file extension filter option to the [EditorFileDialog] with an optional semi-colon-delimited label.
|
||||
For example, [code]"*.tscn, *.scn; Scenes"[/code] results in filter text "Scenes (*.tscn, *.scn)".
|
||||
Adds a comma-delimited file name [code]filter[/code] option to the [EditorFileDialog] with an optional [code]description[/code], which restricts what files can be picked.
|
||||
A [code]filter[/code] should be of the form [code]"filename.extension"[/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.
|
||||
For example, a [code]filter[/code] of [code]"*.tscn, *.scn"[/code] and a [code]description[/code] of [code]"Scenes"[/code] results in filter text "Scenes (*.tscn, *.scn)".
|
||||
</description>
|
||||
</method>
|
||||
<method name="clear_filters">
|
||||
|
||||
Reference in New Issue
Block a user