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

Separate Node editor dock #101787

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

Conversation

Break-Ben
Copy link

@Break-Ben Break-Ben commented Jan 19, 2025

Closes godotengine/godot-proposals#11590
Alternative PR: #101584
Also related to godotengine/godot-proposals#9052 and godotengine/godot-proposals#9448

Separated the Node editor dock into a Signals editor dock and a Groups editor dock (justification in the linked proposal).

Before:
before
After:
after

Note that I had to resize the default width of the right panel from 270 pixels to 320 pixels to allow it to fit, but I didn't touch the width of the left panel which remains at 270 pixels. I personally don't think its an issue that they no longer are the same width as it isn't very noticeable (and realistically most users resize these panels anyway), but it is worth noting.

Thanks :)


This PR is currently fully functional but won't be marked as ready until a solution is determined for feature profiles. Currently, the node dock is marked as deprecated but still shown in the list, with the signals and groups docks added to the bottom (as shown here), but a cleaner solution that doesn't break compatibility would be ideal.

@Break-Ben Break-Ben requested review from a team as code owners January 19, 2025 04:02
@syntaxerror247 syntaxerror247 added this to the 4.x milestone Jan 19, 2025
@KoBeWi KoBeWi mentioned this pull request Jan 19, 2025
@Break-Ben Break-Ben force-pushed the signals-and-groups-docks branch 2 times, most recently from 0c4ecf0 to a690020 Compare January 21, 2025 04:05
@Break-Ben Break-Ben requested a review from a team as a code owner January 21, 2025 04:05
Copy link
Contributor

@Mickeon Mickeon left a comment

Choose a reason for hiding this comment

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

As is, the current PR breaks compatibility with feature profiles because of the removal of FEATURE_NODE_DOCK and the two new features added in the middle. The FEATURE_NODE_DOCK constant should at least be marked as deprecated. But it would also no longer do anything, which is likely not desired...

editor/editor_feature_profile.h Outdated Show resolved Hide resolved
@Break-Ben Break-Ben marked this pull request as draft January 21, 2025 16:13
Separated the Node editor dock into a Signals dock and a Groups dock.
@Break-Ben Break-Ben force-pushed the signals-and-groups-docks branch from a690020 to aea7e83 Compare January 22, 2025 05:27
@Break-Ben
Copy link
Author

I've updated it so that the FEATURE_NODE_DOCK constant is still there and marked as deprecated with the new features added at the end.

While I believe that it should be compatible now, it's definitely not ideal. To be honest, I don't have enough knowledge about feature profiles to propose a better solution to this (for example I assumed the order of the enum didn't matter since the integer values don't seem to be used other than in memory, but I guess that's not true), but if anyone else knows a better way this could be done, that would be great.
Screenshot 2025-01-22 131915
I can reopen the PR if it is decided that this implementation is fine or if a better one is decided on.

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.

Replace 'Node' dock with 'Signals' and 'Groups'
3 participants