|
@@ -103,7 +103,7 @@
|
|
|
<param index="3" name="callback" type="Callable" />
|
|
|
<description>
|
|
|
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.
|
|
|
- [b]Note:[/b] This method is implemented only on macOS and Windows.
|
|
|
+ [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.
|
|
|
</description>
|
|
|
</method>
|
|
|
<method name="dialog_show">
|
|
@@ -114,7 +114,7 @@
|
|
|
<param index="3" name="callback" type="Callable" />
|
|
|
<description>
|
|
|
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.
|
|
|
- [b]Note:[/b] This method is implemented only on macOS and Windows.
|
|
|
+ [b]Note:[/b] This method is implemented if the display server has the [constant FEATURE_NATIVE_DIALOG] feature. Supported platforms include macOS and Windows.
|
|
|
</description>
|
|
|
</method>
|
|
|
<method name="enable_for_stealing_focus">
|
|
@@ -138,7 +138,7 @@
|
|
|
Displays OS native dialog for selecting files or directories in the file system.
|
|
|
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].
|
|
|
Callbacks have the following arguments: [code]status: bool, selected_paths: PackedStringArray, selected_filter_index: int[/code].
|
|
|
- [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.
|
|
|
+ [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.
|
|
|
[b]Note:[/b] [param current_directory] might be ignored.
|
|
|
[b]Note:[/b] On Linux, [param show_hidden] is ignored.
|
|
|
[b]Note:[/b] On macOS, native file dialogs have no title.
|
|
@@ -164,7 +164,7 @@
|
|
|
- [code]"values"[/code] - [PackedStringArray] of values. If empty, boolean option (check box) is used.
|
|
|
- [code]"default"[/code] - default selected option index ([int]) or default boolean value ([bool]).
|
|
|
Callbacks have the following arguments: [code]status: bool, selected_paths: PackedStringArray, selected_filter_index: int, selected_option: Dictionary[/code].
|
|
|
- [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.
|
|
|
+ [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.
|
|
|
[b]Note:[/b] [param current_directory] might be ignored.
|
|
|
[b]Note:[/b] On Linux (X11), [param show_hidden] is ignored.
|
|
|
[b]Note:[/b] On macOS, native file dialogs have no title.
|
|
@@ -1784,7 +1784,7 @@
|
|
|
Display server supports setting the mouse cursor shape to a custom image. [b]Windows, macOS, Linux (X11/Wayland), Web[/b]
|
|
|
</constant>
|
|
|
<constant name="FEATURE_NATIVE_DIALOG" value="9" enum="Feature">
|
|
|
- Display server supports spawning dialogs using the operating system's native look-and-feel. [b]Windows, macOS, Linux (X11/Wayland)[/b]
|
|
|
+ Display server supports spawning text dialogs using the operating system's native look-and-feel. See [method dialog_show]. [b]Windows, macOS[/b]
|
|
|
</constant>
|
|
|
<constant name="FEATURE_IME" value="10" enum="Feature">
|
|
|
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,6 +1825,12 @@
|
|
|
<constant name="FEATURE_NATIVE_HELP" value="23" enum="Feature">
|
|
|
Display server supports native help system search callbacks. See [method help_set_search_callbacks].
|
|
|
</constant>
|
|
|
+ <constant name="FEATURE_NATIVE_DIALOG_INPUT" value="24" enum="Feature">
|
|
|
+ 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]
|
|
|
+ </constant>
|
|
|
+ <constant name="FEATURE_NATIVE_DIALOG_FILE" value="25" enum="Feature">
|
|
|
+ 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]
|
|
|
+ </constant>
|
|
|
<constant name="MOUSE_MODE_VISIBLE" value="0" enum="MouseMode">
|
|
|
Makes the mouse cursor visible if it is hidden.
|
|
|
</constant>
|