|
103 | 103 | <param index="3" name="callback" type="Callable" /> |
104 | 104 | <description> |
105 | 105 | Shows a text input dialog which uses the operating system's native look-and-feel. [param callback] should accept a single [String] parameter which contains the text field's contents. |
106 | | - [b]Note:[/b] This method is implemented only on macOS and Windows. |
| 106 | + [b]Note:[/b] This method is implemented if the display server has the [constant FEATURE_NATIVE_DIALOG_INPUT] feature. Supported platforms include macOS and Windows. |
107 | 107 | </description> |
108 | 108 | </method> |
109 | 109 | <method name="dialog_show"> |
|
114 | 114 | <param index="3" name="callback" type="Callable" /> |
115 | 115 | <description> |
116 | 116 | Shows a text dialog which uses the operating system's native look-and-feel. [param callback] should accept a single [int] parameter which corresponds to the index of the pressed button. |
117 | | - [b]Note:[/b] This method is implemented only on macOS and Windows. |
| 117 | + [b]Note:[/b] This method is implemented if the display server has the [constant FEATURE_NATIVE_DIALOG] feature. Supported platforms include macOS and Windows. |
118 | 118 | </description> |
119 | 119 | </method> |
120 | 120 | <method name="enable_for_stealing_focus"> |
|
138 | 138 | Displays OS native dialog for selecting files or directories in the file system. |
139 | 139 | Each filter string in the [param filters] array should be formatted like this: [code]*.txt,*.doc;Text Files[/code]. The description text of the filter is optional and can be omitted. See also [member FileDialog.filters]. |
140 | 140 | Callbacks have the following arguments: [code]status: bool, selected_paths: PackedStringArray, selected_filter_index: int[/code]. |
141 | | - [b]Note:[/b] This method is implemented if the display server has the [constant FEATURE_NATIVE_DIALOG] feature. Supported platforms include Linux (X11/Wayland), Windows, and macOS. |
| 141 | + [b]Note:[/b] This method is implemented if the display server has the [constant FEATURE_NATIVE_DIALOG_FILE] feature. Supported platforms include Linux (X11/Wayland), Windows, and macOS. |
142 | 142 | [b]Note:[/b] [param current_directory] might be ignored. |
143 | 143 | [b]Note:[/b] On Linux, [param show_hidden] is ignored. |
144 | 144 | [b]Note:[/b] On macOS, native file dialogs have no title. |
|
164 | 164 | - [code]"values"[/code] - [PackedStringArray] of values. If empty, boolean option (check box) is used. |
165 | 165 | - [code]"default"[/code] - default selected option index ([int]) or default boolean value ([bool]). |
166 | 166 | Callbacks have the following arguments: [code]status: bool, selected_paths: PackedStringArray, selected_filter_index: int, selected_option: Dictionary[/code]. |
167 | | - [b]Note:[/b] This method is implemented if the display server has the [constant FEATURE_NATIVE_DIALOG] feature. Supported platforms include Linux (X11/Wayland), Windows, and macOS. |
| 167 | + [b]Note:[/b] This method is implemented if the display server has the [constant FEATURE_NATIVE_DIALOG_FILE] feature. Supported platforms include Linux (X11/Wayland), Windows, and macOS. |
168 | 168 | [b]Note:[/b] [param current_directory] might be ignored. |
169 | 169 | [b]Note:[/b] On Linux (X11), [param show_hidden] is ignored. |
170 | 170 | [b]Note:[/b] On macOS, native file dialogs have no title. |
|
1784 | 1784 | Display server supports setting the mouse cursor shape to a custom image. [b]Windows, macOS, Linux (X11/Wayland), Web[/b] |
1785 | 1785 | </constant> |
1786 | 1786 | <constant name="FEATURE_NATIVE_DIALOG" value="9" enum="Feature"> |
1787 | | - Display server supports spawning dialogs using the operating system's native look-and-feel. [b]Windows, macOS, Linux (X11/Wayland)[/b] |
| 1787 | + Display server supports spawning text dialogs using the operating system's native look-and-feel. See [method dialog_show]. [b]Windows, macOS[/b] |
1788 | 1788 | </constant> |
1789 | 1789 | <constant name="FEATURE_IME" value="10" enum="Feature"> |
1790 | 1790 | Display server supports [url=https://en.wikipedia.org/wiki/Input_method]Input Method Editor[/url], which is commonly used for inputting Chinese/Japanese/Korean text. This is handled by the operating system, rather than by Godot. [b]Windows, macOS, Linux (X11)[/b] |
|
1825 | 1825 | <constant name="FEATURE_NATIVE_HELP" value="23" enum="Feature"> |
1826 | 1826 | Display server supports native help system search callbacks. See [method help_set_search_callbacks]. |
1827 | 1827 | </constant> |
| 1828 | + <constant name="FEATURE_NATIVE_DIALOG_INPUT" value="24" enum="Feature"> |
| 1829 | + Display server supports spawning text input dialogs using the operating system's native look-and-feel. See [method dialog_input_text]. [b]Windows, macOS[/b] |
| 1830 | + </constant> |
| 1831 | + <constant name="FEATURE_NATIVE_DIALOG_FILE" value="25" enum="Feature"> |
| 1832 | + Display server supports spawning dialogs for selecting files or directories using the operating system's native look-and-feel. See [method file_dialog_show] and [method file_dialog_with_options_show]. [b]Windows, macOS, Linux (X11/Wayland)[/b] |
| 1833 | + </constant> |
1828 | 1834 | <constant name="MOUSE_MODE_VISIBLE" value="0" enum="MouseMode"> |
1829 | 1835 | Makes the mouse cursor visible if it is hidden. |
1830 | 1836 | </constant> |
|
0 commit comments