


If this enhancement will not be used often, can it be worked around with a few lines of script?: Everything else will be handled by the developer. get_drag_data() (or similar function) would handle the file name/contents for us. Once released, a signal should be emitted (or a virtual function called) to let the game know what folder was just dropped onto. Describe implementation detail for your proposal (in code), if possible:īasically, a pickable object is setup using functions like get_drag_data() and then is dragged out of the window to the os file manager. If not, just set the drag preview to use the OS file manager's preview like in the second screenshot. If possible, drag previews should be able to be taken outside of the window. The first screenshot is a drag and drop example where drag preview is enabled. The project in the screenshots is someone else's demo I found to teach me about drag and drop. Show a mock up screenshots/video or a flow diagram explaining how your proposal will work:

In my particular game, I would make a json file with the data used to make up the item in the inventory. The os file manager then would place the file where it should go. I would accomplish this by providing the filename and file contents with get_drag_data() or similar function. I would accomplish this by getting the folder the drag event was let go over and then I would create the file myself based on the folder path given to meI would accomplish this by getting the folder the drag event was let go over and then I would create the file myself based on the folder path given to me. Since inventory is arbitrary in my game (as in there is no intention to prevent cheating as the game is more based on exploration than anything else), I want to be able to drag inventory items into and out of the game. Describe how this feature / enhancement will help your project: The reason for this change in idea is because the OS file manager should set the location of the file in the folder just like it would for any other program. I would like to be able to set the filename and a reference to the file contents (or the contents itself if the reference is not possible) in the get_drag_data() function or a similar function. I just need the game to tell me which folder the node was dragged to and I would handle the file creation/naming. I want to be able to implement dragging objects out of the game and into the OS file manager. I am working on a game based on Starbound, which is based on Terraria.
