From ef66d357a72c2c5fc9e40107c8a82133aa2e9a5f Mon Sep 17 00:00:00 2001 From: Alexander Holland Date: Thu, 11 Oct 2018 19:28:36 +0200 Subject: [PATCH] Filled missing Doc for String and FileDialog (cherry picked from commit e4b2a20cd67ccde0733c2dec5c7115a9fdd921a8) --- doc/classes/FileDialog.xml | 9 +++++++-- doc/classes/String.xml | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/classes/FileDialog.xml b/doc/classes/FileDialog.xml index bae1746a6ad..6e286868c10 100644 --- a/doc/classes/FileDialog.xml +++ b/doc/classes/FileDialog.xml @@ -17,7 +17,7 @@ - Add a custom filter. Filter format is: "mask ; description", example (C++): dialog->add_filter("*.png ; PNG Images"); + Add a custom filter. Example: [code]add_filter("*.png ; PNG Images")[/code] @@ -31,6 +31,7 @@ + Clear currently selected items in the dialog. @@ -50,6 +51,7 @@ + The file system access scope. See enum [code]Access[/code] constants. The current working directory of the file dialog. @@ -61,13 +63,16 @@ The currently selected file path of the file dialog. + Set file type filters. This example shows only .png and .gd files [code]set_filters(PoolStringArray(["*.png ; PNG Images","*.gd ; GD Script"]))[/code]. + Set dialog to open or save mode, changes selection behavior. See enum [code]Mode[/code] constants. - If [code]true[/code], changing the [code]mode[/code] property will set the window title accordingly (e. g. setting mode to [code]MODE_OPEN_FILE[/code] will change the window title to "Open a File"). + If [code]true[/code], changing the [code]Mode[/code] property will set the window title accordingly (e. g. setting mode to [code]MODE_OPEN_FILE[/code] will change the window title to "Open a File"). + If [code]true[/code], the dialog will show hidden files. diff --git a/doc/classes/String.xml b/doc/classes/String.xml index ebaa12eb0fb..8a4220edf16 100644 --- a/doc/classes/String.xml +++ b/doc/classes/String.xml @@ -638,6 +638,7 @@ + Returns the SHA-256 hash of the string as an array of bytes.