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

Reorganize EditorNode menu options #101093

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

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Jan 3, 2025

Inspired by #59442 (comment)

This PR moves around and renames various enum values from EditorNode. They are now organized by menu, listed in the order they appear, and consistently prefixed: FILE, PROJECT, EDITOR, HELP.

There were various "menu options" that weren't actually menu options, I changed them to methods. There were also some unused enum values, which I removed. I also moved some options used exclusively in scene tabs to EditorSceneTabs (they are still handled in EditorNode).

Some fake menu options were kept, because their logic is a bit tangled. We could rename them to use common prefix.

Comment on lines +162 to +163
FILE_UNDO,
FILE_REDO,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed these 2 for consistency, but it does not look good. Though alternative is that they are the only 2 EDIT options.

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