summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-04-11 12:52:51 +0200
committerGitHub <noreply@github.com>2022-04-11 12:52:51 +0200
commit2ec68599a45231767bb970e7bf06a3bf7ed5fc91 (patch)
tree67cc9e62050a98a44837e4c4fe6092192757290d /doc/classes
parentf44e5dba6ddcbb5df43b86ac507375d0535f6df8 (diff)
parent63de41b996db09e37816d941506b14753d8ed233 (diff)
Merge pull request #60111 from KoBeWi/the_files_have_landed
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/Window.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/classes/Window.xml b/doc/classes/Window.xml
index 9853f906bc..87a65db192 100644
--- a/doc/classes/Window.xml
+++ b/doc/classes/Window.xml
@@ -349,6 +349,15 @@
<argument index="0" name="files" type="PackedStringArray" />
<description>
Emitted when files are dragged from the OS file manager and dropped in the game window. The argument is a list of file paths.
+ Note that this method only works with non-embedded windows, i.e. the main window and [Window]-derived nodes when [member Viewport.gui_embed_subwindows] is disabled in the main viewport.
+ Example usage:
+ [codeblock]
+ func _ready():
+ get_viewport().files_dropped.connect(on_files_dropped)
+
+ func on_files_dropped(files):
+ print(files)
+ [/codeblock]
</description>
</signal>
<signal name="focus_entered">