-
-
Notifications
You must be signed in to change notification settings - Fork 23.5k
Add an easy way to reload editor addons #112086
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add an easy way to reload editor addons #112086
Conversation
c0ff3c1 to
263534b
Compare
Needing the plugin to be open in the internal ScriptEditor loses some of the utility wanted in the proposals. I think this would be better in the FileSystem dock. Also the options should only be available for plugins and they should depend on the state of the plugin. Eg. there shouldn't be an option to disable an already disabled plugin. |
|
Makes sense, my idea was for the plugin developer and not the user |
263534b to
70b9db6
Compare
70b9db6 to
cbdfd8e
Compare
|
It's missing a shortcut to toggle an addon. The menu is an improvement over the current workflow, but it's still not ideal. Also not sure if having to right-click a specific folder is discoverable. |
How to handle shortcuts for dynamic menu items? Adding the ability to favorite 5 different add-ons and register 5 different shortcuts? "filesystem_dock/toggle_plugin_*" |
|
Or a new shortcut field in the Plugins tab in Project settings? |
I could make it global, so as long as you right-click in the file system, the plugins can be toggled |
|
Well, the proposal already comes with a solution for shortcuts.
This is only needed for editor, having that many extra settings is too much I think.
That's overkill, not every plugin needs it, and it isn't useful for regular usage.
So like, adding yet another way to toggle addons? |
Ok then, I will try the menu under |
|
Hey! Thanks for working on this @DexterFstone! I think the UX of this can be greatly simplified by avoiding to spawn a submenu, and by simplifying the logic. The most common use case for this toggle will be to enable / disable a single and specific plugin, and I want to make the case that this action alone covers 90% of the proposed feature improvement. Other user actions, such as enabling and disabling multiple plugins at once, are already best done in the player settings plugins window. So while showing the submenu when you RMB on the addons folder or RMB when you have multiple selected, the added submenu step is IMO unnecessary added complexity. I propose the following:
I don't know if Godot even has a third toggle state for checkboxes, but many programs do: where, if you multi-select, instead of showing an empty or checked checkbox, it shows a minus in the checkbox indicating the state is mixed. That would have been ideal for the multi select issue, but if Godot doesn't support that, then we shouldn't bother. |
|
@AdriaandeJongh, tnx for your feedback, I've already removed the File System context menu, I'm currently adding a menu to
Icon already exists (GuiIndeterminate.svg), and is used for |
cbdfd8e to
8161915
Compare
Ah, dang, we are mixing up two different proposals here. I was coming from godotengine/godot-proposals#13503 (comment) which does involve the FileSystem, but if you've moved away from that, this PR won't address that proposal. |
closes godotengine/godot-proposals#13308
Adds a new menu to
Editor, allowing you to select a plugin and reload it whenever you wantAdd 3 new menu items toScriptEditor, allowing toEnable Plugin,Disable Plugin, andReload PluginEdit:Adds a new submenu to theFileSystemcontext menu calledPlugins...that shows all selected plugins, and their state as a checkbox. If theaddonsfolder is selected, it shows all plugins insteadAlso, work with the internal addon files and folders