diff options
author | kobewi <kobewi4e@gmail.com> | 2022-04-10 21:25:24 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-04-11 00:37:06 +0200 |
commit | 63de41b996db09e37816d941506b14753d8ed233 (patch) | |
tree | 488c2a3a3cfd316675555ca92a9d45a69287e3d2 /doc/classes | |
parent | 83d26737727f281afcb33f66fea5d09ed6c48d5a (diff) |
Improvements to files_dropped signal
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/Window.xml | 9 |
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"> |