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

Fix some AcceptDialog argument types #89419

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Mar 12, 2024

Some AcceptDialog expect specific node types, but they use Control as argument. Probably a legacy thing, which this PR fixes.

I added compatibility methods, but this breaks compatibility for GDScript if you used these methods incorrectly (e.g. register_text_enter() called with non-LineEdit will now print error instead of doing nothing).

scene/gui/dialogs.h Outdated Show resolved Hide resolved
scene/gui/dialogs.compat.inc Outdated Show resolved Hide resolved
@akien-mga akien-mga modified the milestones: 4.x, 4.3 Mar 12, 2024
@akien-mga akien-mga merged commit 20373d0 into godotengine:master Mar 12, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@KoBeWi KoBeWi deleted the losing_control branch March 12, 2024 15:34
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