-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Allow adding a custom side menu to EditorFileDialog #79313
Allow adding a custom side menu to EditorFileDialog #79313
Conversation
d5706d4
to
74194fc
Compare
b7f8add
to
b821d43
Compare
b821d43
to
ed7434e
Compare
ed7434e
to
8ad2dd0
Compare
8ad2dd0
to
cdc80cb
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.
I haven't tested it, but code looks alright.
We may want to add a method to remove the sidebar as well, since it won't be enough to just remove the control from its parent. You need to remove the title as well, which is created implicitly. It's not impossible to work around, but hooking into the exact node tree structure would be less than ideal when we could just expose a clear_side_menu
method that would handle everything or us.
cdc80cb
to
b0c1c24
Compare
Thanks! |
This PR adds a method to EditorFileDialog to add a custom side menu. You can specify a title text, which will be themed similarly to the rest of EditorFileDialog, and a Control node to be added below it.
I am planning to use this functionality to add export settings for GLTF. Here is a screenshot of this in action: