{"action":"created","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/5911","repository_url":"https://api.github.com/repos/godotengine/godot","labels_url":"https://api.github.com/repos/godotengine/godot/issues/5911/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/5911/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/5911/events","html_url":"https://github.com/godotengine/godot/issues/5911","id":167495771,"number":5911,"title":"Expose Drag And drop to gdscript more","user":{"login":"blurymind","id":6495061,"avatar_url":"https://avatars.githubusercontent.com/u/6495061?v=3","gravatar_id":"","url":"https://api.github.com/users/blurymind","html_url":"https://github.com/blurymind","followers_url":"https://api.github.com/users/blurymind/followers","following_url":"https://api.github.com/users/blurymind/following{/other_user}","gists_url":"https://api.github.com/users/blurymind/gists{/gist_id}","starred_url":"https://api.github.com/users/blurymind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blurymind/subscriptions","organizations_url":"https://api.github.com/users/blurymind/orgs","repos_url":"https://api.github.com/users/blurymind/repos","events_url":"https://api.github.com/users/blurymind/events{/privacy}","received_events_url":"https://api.github.com/users/blurymind/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/godotengine/godot/labels/feature%20proposal","name":"feature proposal","color":"1144ff"},{"url":"https://api.github.com/repos/godotengine/godot/labels/topic:core","name":"topic:core","color":"ffdd44"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-26T00:28:29Z","updated_at":"2016-07-29T09:15:53Z","closed_at":null,"body":"This is a continuation of \r\nhttps://github.com/godotengine/godot/issues/5625\r\n\r\nbasically Godot master now has support for drag and drop - but it is not complete. It has a number of missing key elements.\r\n\r\n [ ]Ability to determine on which node the files have been dropped on - Currently drag and drop event is triggered regardless of where on the application window you drop the files. As a result your application can not have more than one drag and drop areas.\r\n\r\nI tried doing it with focus_enter and focus_exit signals and a variable. Didnt work. Focus enter signal requires the user to click on the node - which doesnt work with drag and drop.\r\n\r\n[ ] The 'Screen' value is always returning a 0 -\r\n\r\n> @TheHx What does the 'screen' (string) value do? I noticed that it always returns a zero.\r\n> \r\n@TheHX  :\r\n> I'm not sure, but i think the screen parameter is index of the from where the files are dragged, but as it seems the feature is not implemented:\r\n> https://github.com/godotengine/godot/blob/master/platform/windows/os_windows.cpp#L767\r\n> https://github.com/godotengine/godot/blob/master/platform/x11/os_x11.cpp#L1531\r\n> https://github.com/godotengine/godot/blob/master/platform/osx/os_osx.mm#L330\r\n\r\nI suggested adding a on_files_dropped signal to GUI nodes in godot - but I am not sure if thats the best solution.\r\n\r\nAnother suggestion is to add a signal to nodes that fires when the mouse has hovered on them. As noted earlier focus_enter and focus_exit dont work in this case because they trigger only if the user clicks. Cant click while you are dragging a file.\r\n\r\nSo if anyone has any idea how to do this properly or has a workaround - thanks in advance. :) "},"comment":{"url":"https://api.github.com/repos/godotengine/godot/issues/comments/236133390","html_url":"https://github.com/godotengine/godot/issues/5911#issuecomment-236133390","issue_url":"https://api.github.com/repos/godotengine/godot/issues/5911","id":236133390,"user":{"login":"blurymind","id":6495061,"avatar_url":"https://avatars.githubusercontent.com/u/6495061?v=3","gravatar_id":"","url":"https://api.github.com/users/blurymind","html_url":"https://github.com/blurymind","followers_url":"https://api.github.com/users/blurymind/followers","following_url":"https://api.github.com/users/blurymind/following{/other_user}","gists_url":"https://api.github.com/users/blurymind/gists{/gist_id}","starred_url":"https://api.github.com/users/blurymind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blurymind/subscriptions","organizations_url":"https://api.github.com/users/blurymind/orgs","repos_url":"https://api.github.com/users/blurymind/repos","events_url":"https://api.github.com/users/blurymind/events{/privacy}","received_events_url":"https://api.github.com/users/blurymind/received_events","type":"User","site_admin":false},"created_at":"2016-07-29T09:15:52Z","updated_at":"2016-07-29T09:15:52Z","body":"I might be able to do a workaround with a variable and a mouse enter and mouse exit signal\r\nhttps://godotengine.org/qa/3207/mouse_enter-signal-is-not-triggered\r\n\r\nBut it would be so much easier if there was a way - an option to trigger the drag and drop signal only if the cursor dragging the files is above a specific node during a drop"}}
{"actor":{"display_login":"blurymind"}}