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

Hide the dialog_text property from FileDialog #81546

Conversation

YuriSizov
Copy link
Contributor

@YuriSizov YuriSizov commented Sep 11, 2023

It's useless in FileDialog, because dialogs can have either a text label or a custom layout, and FileDialog already has a custom layout. If you use the property, this is what it ends up looking like:

godot windows editor dev x86_64_2023-09-11_14-47-52

So to avoid confusion I propose we just hide it, like we do in other nodes in similar cases.

PS. I'll have to rebase after #81312 due to neighboring changes in the header file. Done.

@YuriSizov YuriSizov added this to the 4.2 milestone Sep 11, 2023
@YuriSizov YuriSizov requested a review from a team as a code owner September 11, 2023 13:11
Copy link
Member

@KoBeWi KoBeWi left a comment

Choose a reason for hiding this comment

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

Coincidentally I had this on my TODO list.

It's useless in `FileDialog`, because dialogs can have either
a text label or a custom layout, and `FileDialog` already
has a custom layout.
@YuriSizov YuriSizov force-pushed the there-isnt-enough-room-for-two-ways-to-customize-a-dialog-in-this-town-boy branch from 51c286b to d0e2657 Compare September 11, 2023 14:25
@akien-mga akien-mga merged commit 6a007c7 into godotengine:master Sep 12, 2023
@akien-mga
Copy link
Member

Thanks!

@YuriSizov YuriSizov deleted the there-isnt-enough-room-for-two-ways-to-customize-a-dialog-in-this-town-boy branch September 12, 2023 11:14
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.

3 participants