Skip to content
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

Editor: Add named EditorScripts to the command palette #99318

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HolonProduction
Copy link
Member

Tries to solve the problem from godotengine/godot-proposals#8923. I agree with godotengine/godot-proposals#8923 (comment) that this would best be solved through the command palette.

This PR makes it possible to execute EditorScripts through the command palette, which makes them a bit more suitable for project specific commands. For practical reasons only named scripts will be added. This is done to always have a display name, and since only named scripts are easily searchable through the ScriptServer.

It also introduces an _get_name virtual method to customize the display name (if not overridden the class name is used).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant