-
-
Notifications
You must be signed in to change notification settings - Fork 97
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 FoldableContainer Node #8974
Comments
A foldable container in core would be useful to have for editor plugins, because it will make foldable sections in third-party plugins have the same default look and behaviour as the built-in inspector foldables, making the UX more consistent throughout the editor |
I have made a speed video to show the new node functionality, I need some help finishing this class and generating it's docs. foldable_container.mp4foldable_container2.mp4TODO:
|
Fixed all bugs and added the ability to add icon buttons to the title. |
This is how it looks now. Screencast.from.01-15-2025.02.49.58.PM.webm |
Describe the project you are working on
A Godot programs and editor addon that needs an Inspector.
Describe the problem or limitation you are having in your project
while creating a property Inspector to change some of the nodes properties in game, I ran into an issue of making a clean UI for it, I was looking forward to create the same
Container
used inEditorInspector
to add Sections that can be folded.Describe the feature / enhancement and how it helps to overcome the problem or limitation
While Similar Containers exists as addons like CollapsibleContainer and ExtendableContainer none of them will be customizable easily without a theme.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
It's still a WIP since the code needs a review and the docs needs to be generated Pull Request link
FoldableContainer.mp4
If this enhancement will not be used often, can it be worked around with a few lines of script?
This can be made as an EditorPlugin, but customizing it's look if you have many themes for the project you will need to add the custom type manually to each of them and to define a lot of properties.
Is there a reason why this should be core and not an add-on in the asset library?
Because of theming limitation, Also it can be helpful for the godot editor and project settings to organize it, and can replace the editor inspector sections, also it will be useful for game settings and programs like Pixelorama and GodSvg.
The text was updated successfully, but these errors were encountered: