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

Android: Implement support for native dialog #101061

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

syntaxerror247
Copy link
Member

This adds support for DisplayServer::dialog_show() on Android, aligning it with the functionality already available on macOS and Windows.

demo

Note

It ensures the button layout adapts dynamically based on the screen size and button text length. Normally, there are two buttons per row, but if the button label gets longer, a new row is created for that button to fit the entire text. I also consider using three buttons per row, but two looked clearer to me.

@syntaxerror247 syntaxerror247 requested review from a team as code owners January 3, 2025 04:11
@syntaxerror247
Copy link
Member Author

@m4gr3d I have applied the requested change. Please take a look and let me know if further adjustments are needed.

Copy link
Contributor

@m4gr3d m4gr3d left a comment

Choose a reason for hiding this comment

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

Looks good!

@akien-mga akien-mga modified the milestones: 4.x, 4.4 Jan 13, 2025
This adds support for DisplayServer::dialog_show() on Android, aligning it with the functionality already available on macOS and Windows.
@akien-mga
Copy link
Member

Thanks!

@akien-mga akien-mga merged commit 4d1cfc1 into godotengine:master Jan 14, 2025
20 checks passed
@syntaxerror247 syntaxerror247 deleted the first-pr-2025 branch January 15, 2025 06:49
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.

4 participants