-
-
Notifications
You must be signed in to change notification settings - Fork 20.3k
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 ok_button_text
to AcceptDialog and cancel_button_text
to ConfirmationDialog
#62827
Conversation
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.
It seems to have problem similar to #39258 |
It's probably should store untranslated text as a public property and translated copy for the internal use like Lines 82 to 83 in ca18a02
Lines 383 to 386 in ca18a02
|
I've updated the PR to store untranslated text. Button seems to handle translation automatically. |
Thanks! |
Closes godotengine/godot-proposals#2419
Adds an
ok_button_text
property to AcceptDialog andcancel_button_text
property to ConfirmationDialog. The main advantage of having these properties is to allow setting the OK and Cancel buttons' text from the inspector without requiring the use of a script.Also documents
AcceptDialog.dialog_close_on_escape
since it was the only undocumented part of AcceptDialog.