GDScriptMacros icon indicating copy to clipboard operation
GDScriptMacros copied to clipboard

Add Support for Godot 4

Open nonunknown opened this issue 4 years ago • 2 comments

I've adapted the plugin for godot 4!

On my tests, I found that the right arrow key doesnt work, but instead if you type and then press ENTER it works fine!

Also just made another commit, the macro check for updates each 2 seconds! I did this since NOTIFICATIONS where not working properly, and since you can edit text files in godot 4 this new approach makes more sense!

nonunknown avatar Oct 13 '21 10:10 nonunknown

cool stuff though it might be a good idea to use both _on_cursor_changed and _on_text_changed to keep things snappy and instant. I'll keep this pull request open until usage of 4.0 becomes commonplace. There's some lines which won't work in Godot v3.33, such as the way signals are written is different now:

get_viewport().connect("gui_focus_changed", self, "_on_gui_focus_changed") get_viewport().gui_focus_changed.connect(_on_gui_focus_changed)

rainlizard avatar Oct 13 '21 20:10 rainlizard

yeah its a good idea, also I should be done more tests, my "check each 2 sec" system is making the engine crashing, so I commented it out!

nonunknown avatar Oct 13 '21 20:10 nonunknown

Updated now for Godot 4.0 beta 5, there were a few extra changes to make. The 3.5 plugin has been moved to a branch.

rainlizard avatar Nov 23 '22 08:11 rainlizard