bitbrain / beehave

🐝 behavior tree AI for Godot Engine
https://bitbra.in/beehave
MIT License
1.95k stars 119 forks source link

Auto-update addon inside the editor #169

Open bitbrain opened 1 year ago

bitbrain commented 1 year ago

Similar to how https://github.com/nathanhoad/godot_dialogue_manager works, it is possible to download the latest addon version inside the editor.

Potentially, there could be a new button somewhere (in case there is an update available) prompting the user to download the new version.

Another idea (preferable) could be a notification message that has a clickable action in it.

See https://github.com/nathanhoad/godot_dialogue_manager/blob/08ee0579a6828386cdd6000edfb2871a96a7fd62/addons/dialogue_manager/components/download_update_panel.gd for an example implementation.

FonkinS commented 1 year ago

So should the button only appear when there is a new update availible?

bitbrain commented 1 year ago

@FonkinS yes!

My thinking was that this button could live somewhere at the top right of the Godot editor, however, introducing a whole new tab just to host such button sounds overkill/counter intuitive.

Godot might solve addon updating itself at some point with a dedicated flow. Until then, my thinking was that there is some button telling users "Hey! There is a new update available"

Instead of a button, we could also produce a notification message instead (that has a clickable link that triggers the update?)

No idea if that is doable, though.