-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
Make possible to favorite properties in the inspector #97415
Make possible to favorite properties in the inspector #97415
Conversation
Favoriting The group "Tooltip" is lost here. If this is not expected, I think displaying "Tooltip Text" is not an ideal solution as it means doubling translator's work for grouped properties. Maybe displaying a group that's always unfolded? |
This is not necessarily related to this proposal as the rest of the Inspector suffers from it too, but I don't like that there's no way to know that Inspector categories can be right-clicked (not even a text color on hover). This makes the "Unfavourite all" option undiscoverable. |
Could we make Favoriting/reordering the entire Node2D/Node3D property block to the top of the inspector would also be a way to do this, but this PR seems to only allow favoriting individual properties. |
I think the inspector can get crowded pretty easily and would prefer not to have additional and redundant data shown by default. |
I should have paid attention more, thanks for pointing that out. That is surprising though, and not what I would expect for the reason you stated. I am ambivalent about the fact it does that, but I think it makes a different argument against having them be favorited by default. |
My view is that for most workflows involving the editor, you want to access position, rotation, and scale most often, at the top of the inspector, then you want to access properties you defined on your classes, then you want to access properties on built-in parent classes. As is, the ordering of properties is mostly good except for the fact that transform properties are hidden at the bottom of the list. If most people setting up their editor will favorite these, then we should do it by default. The favorites are stored in editor settings and are per-project, so whichever default is chosen does matter - each new project will be affected by it. It will be three clicks to change it, whichever default we choose, so let's choose the default that serves the most people. Of course, if the preference is evenly split, we can decide in favor of no default favorites. |
Agreed. If/when this gets approved and merged, I would suggest a separate proposal and PR be made. |
Also, to bikeshed the name, I do slightly prefer the old "Pinned Properties" name from the original proposal. |
If we settle on "pinning" properties, the "Pin property" feature has to be renamed to something else. To be very fair, its name has been potentially misleading as is, already. |
Oh, I thought that there was already something called "property pinning" but googling that led me to the original proposal for this new feature. "Pinning properties" definitely describes this feature more than the existing one. But changing the name of an existing feature is probably too much, just to have a slightly better name for the new feature. |
It can be called Sticky Properties or something similar. |
2344646
to
f7bc7ce
Compare
I foresee not finding properties in the expected place, because they are moved rather than duplicated, being a potential source of confusion and irritation for larger projects where you might not remember what properties were favorited and might have scrolled past the favorites category without noticing the property there. At minimum I'd really like to see an editor toggle for whether favorited properties are moved or duplicated. |
f7bc7ce
to
0f60c90
Compare
Patch that removes override menu: |
af3a712
to
0e77a90
Compare
Separator removed and iterators fixed. |
0e77a90
to
cbe2ea6
Compare
@KoBeWi I added your patch to the code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now.
After #97352 we can refer script favorites by UID instead of path, which would make the FileSystem Dock changes unnecessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cbe2ea6
to
a828796
Compare
a828796
to
d678b09
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I've been expecting this kind of feature for a long time!
Thanks! |
Could there be an option to have the favorited items show up at the top and where they used to be? I already see myself looking for some aspects because I forgot they're at the top. |
Closes godotengine/godot-proposals#4274.
2024-09-24.10-57-26.mp4
Limitations
Incompatible with built-in scripts, as validating the favorites file with them in mind would mean extra loading of scenes at startup.
Sponsored By: 🐺 Lone Wolf Technology / 🍀 W4 Games.