YuriSizov / godot-editor-theme-explorer

Godot Editor plugin to browse various items of Editor Theme, such as icons, colors and fonts.
MIT License
131 stars 9 forks source link

Add drag and drop support #9

Open winston-yallow opened 1 year ago

winston-yallow commented 1 year ago

I would love to just drag and drop an item from the explorer into the script editor to insert the code.

YuriSizov commented 1 year ago

I wonder if I can achieve this without hacking into the script editor. Since this is a custom operation (unlike, say, dragging a resource to a property in the inspector), it may require some workarounds in the script editor plugin.

But does sound nice!

winston-yallow commented 1 year ago

As far as I know it's enough to just return a string from _get_drag_data. The script editor will insert any text that's dropped there