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

Re-add close button for nodes in AnimationNodeBlendTree editor #83507

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

timothyqiu
Copy link
Member

Closes #82501

The close/delete button was removed intentionally from these editors. Users are supposed to use context menu delete option or the DEL key. However, there was no "Delete" option in AnimationNodeBlendTree editor's context menu. The only way to delete a node was using DEL key, but it's hard to discover.

My initial thought was to add the missing "Delete" option. But the right click menu in this editor was actually not a standalone context menu. Right clicking triggers the "Add Node" menu option. So this PR readds the button instead.

Peek 2023-10-17 23-26

I have to adjust the editor theme so that the button's position looks right. Otherwise it looks too far away from the right edge. This is the only place in the editor that uses get_titlebar_hbox(), so I think the modification won't affect others.

Copy link
Member

@SaracenOne SaracenOne left a comment

Choose a reason for hiding this comment

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

LGTM 👍

editor/editor_themes.cpp Outdated Show resolved Hide resolved
@akien-mga akien-mga merged commit d08d3e9 into godotengine:master Oct 23, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@timothyqiu timothyqiu deleted the abt-close branch October 23, 2023 12:32
@akien-mga akien-mga changed the title Readd close button for nodes in AnimationNodeBlendTree editor Re-add close button for nodes in AnimationNodeBlendTree editor Nov 29, 2023
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.

No obvious way to delete AnimationNodeBlendTree node in AnimationTree editor
3 participants