-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Add new FoldableContainer
node.
#101487
Add new FoldableContainer
node.
#101487
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
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.
Looking forward to this! I only reviewed the API and docs.
Once the PR leaves draft, it would be nice to have a screenshot/video not only of the node in game (with default theme), but also how it looks styled in the editor (e.g. when used in an EditorPlugin).
This comment was marked as outdated.
This comment was marked as outdated.
1375758
to
d9a288c
Compare
This comment was marked as outdated.
This comment was marked as outdated.
5a151b7
to
1c95209
Compare
This comment was marked as resolved.
This comment was marked as resolved.
cc834a4
to
50fc4a0
Compare
This comment was marked as resolved.
This comment was marked as resolved.
The property godot/modules/mono/editor/bindings_generator.cpp Lines 135 to 143 in b3a44e8
|
Did some testing, I'm liking the direction it's going, some thoughts and notes as I was trying it out: There's no simple way to adjust the sizing of the buttons, which means you have to control that with the icon, which could be cumbersome, IMO. A theme override for "Toggle On" is inconsistent with how API wise, the fact that Found a weird bug when testing it in an EditorPlugin, when inside the bottom panel the contents of the foldable container expand to include the title, see here: If I fold the container and then expand it, it behaves normally afterwards, and running the scene makes it behave normally, so it's got to be a weird quirk of either the editor theme or the plugin initialization, I'm attaching an MRP so you can test it: foldable-mrp.zip. Haven't looked at the code or documentation, but good work so far! This will be very useful for editor UI, plugins, configuration, etc. |
50fc4a0
to
0f0da51
Compare
Updated the code and added Thanks for all the suggestions. Screencast.from.01-15-2025.06.32.20.AM.webmAlso updated the testing project foldable-test.zip. |
I don't know how this should work, maybe we can note that all icons must have the same size.
Buttons groups will be tricky to implement, currently it can be managed from code when the pressed/toggled signal emits.
Added
Fixed and updated the test project to include more examples. |
I also want to allow popups support for buttons, I can add |
d37fe3b
to
a93bad9
Compare
Updated. Screencast.from.01-15-2025.02.49.58.PM.webm |
This is how the I'm looking forward to improve the Godot's Control nodes too but most of my PRs either ignored or marked as 4.x even if they do/can fix bugs. Screencast.from.01-17-2025.12.24.07.PM.webm |
674b3f3
to
1c3eec6
Compare
1c3eec6
to
653dce7
Compare
There's way more PRs being opened than there are reviewers and maintainers. I'm just patient and let my changes sit, while I work with the feature in a personal fork.
You can ask in chat to have it re-triaged (a PR of mine recently converted from enhancement to bug for example, which moves its milestone to the next minor version). If you can split your PR into one part bugfix another part enhancement, it's the best way to get it moving forward quicker. |
I'm patient, but a year is too much for a bug fix that exists since 3.x. Does Godot really needs a reminder for a PR that fixes a bug? Is it written anywhere that I should go to a chat platform to wish for a bug that i have fixed to be merged in the next release? |
I did my best to work on another community driven fork and Godot at same time, fixing bugs here and adding features there because i know Godot will ignore my PRs if they add a feature and the 4.x milestone will be added by ATS. You can See what i could have done to the Godot community. This is editing the fallback theme directly from project settings and works in real time even inside game, This could have been even better if the godot devs have helped me, great thanks to KoBeWi, Akien, kitbdev and many other devs that have helped me a lot, even AThousandShips have helped me a lot in the past and many thanks to her too. 2025-01-20.11-37-51.online-video-cutter.com.mp4This is a new collapse mode and is similar to VSCode split. 2025-01-25.13-47-39.online-video-cutter.com.mp4Hope Godot survives all of this because I believe-in and respect all your hard-work, but i also have wished for some respect for my work too. |
I can't help but feel there's been quite a few fundamental misunderstandings here.
Being put in the
It certainly reads as if quite a lot of the godot devs did indeed help you. In this PR we see exactly that as well, with no real detraction to speak of. If this is annoyance at not being prioritized for a merge, then I must re-emphasize the earlier point of this type of PR not being the team's priority atm. Hell, I have ~70 open PRs as we speak! But I also have over double that amount merged, because even though the due-process takes time, it will get done with time.
As a matter of fact, yes! Here's the explicit exerpt touching on this very concern:
You're free to believe that this isn't elevated/visible enough — if so, you can always make an enhancement request in the docs repo — but it's not something we're deliberately obfuscating to make the PR process more tedious.
If you have any examples of being disrespected/harassed in this repo, do not hesitate to reach out to our Code of Conduct team with those concerns. If this is about this PR not being reviewed in what feels like a timely manner, then I'll state as unambiguously as possible: that's not disrespect. I get being personally attached to your work & wanting to see it reach as many people as possible, but a review of your work — or lack thereof — is not, and never has been, a personal statement on the PR itself. Reviews are most often a direct consequence of contributors putting their finite time/resources into analyzing areas they're passionate/skilled in, and those are not a guarantee — much less something owed. |
I was in the middle of checking this PR when you closed it, so nice timing. If you don't plan on working on it anymore I might take over. The implementation looks solid and the container has potential to be used in editor (inspector) and other controls (ColorPicker). Although I find the button part too complex; what I'd do instead is allow adding Button nodes to the title bar, similar to another proposal for TabContainer. |
Please feel free to cherry-pick any of my commits and i know you can make the code much better. |
it's just missing a way to make a popup appears when a title button is pressed and i don't know an easy way to implement it. |
Sorry about the late reply, I don't say anyone is wrong, because i know the team is busy but at least we can give those PRs more attention while adding their milestone. Few lines fixing clear bugs should be prioritized since it will allow faster progress and will not cause much conflict, shouldn't take about 10 months. It makes me feel unwelcome when my PRs are ignored, similar to many other devs who also hates being ignored, most of the PRs are just few lines and fixing Interface bugs, Its ok for a feature requests to be ignored like This PR, but I just wanted more attention and help on fixing those issues in the best possible way instead of killing them and cause many conflicts over time. |
Screencast.from.01-15-2025.02.49.58.PM.webm