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

Visject: Improved comment renaming + visual fix #2652

Merged

Conversation

Chikinsupu
Copy link
Contributor

@Chikinsupu Chikinsupu commented May 25, 2024

When renaming a comment in visject and the comment happens to not be fully visible in the visject window, the rename popup will be drawn outside the window.

This PR replaces the RenamePopup with a textbox inside the comment header itself. This is more in line with how other graph tools handle this case.
Fixes #2006

Additionally pressing ESC now will no longer apply the new name.

Note: I actually wanted the textbox text to align with the title. In the center. But this is currently buggy. See #2653. When the issue gets fixed i might change the alignment here as well.

Preview

Renaming before
CommentRenamingBefore

Renaming after
CommentRenamingAfter

Of course this means, that the textbox will now be cut off when renaming a comment that is outside the window. But i would argue that this is the expected behaviour. I also checked and other graph tools seem to just do the same.
FlaxEditor_Hoi06StfMA

@mafiesto4 mafiesto4 added enhancement New feature or request editor visject Visject surface used by materials, particles, visual scripts and more labels May 30, 2024
@mafiesto4 mafiesto4 added this to the 1.9 milestone May 30, 2024
@flaxtechnology flaxtechnology merged commit e89e015 into FlaxEngine:master May 30, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor enhancement New feature or request visject Visject surface used by materials, particles, visual scripts and more
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename Visject popup size out of screen
3 participants