0 votes

I have this Confirmation Dialog and I want to detect when the user clicks the 'OK' button. How would I do that? Is there a method for detecting user input on the 'OK' button?

in Engine by (17 points)

1 Answer

+2 votes
Best answer

The Button emits a signal whenever it is pressed, you just have to connect to it, here is the link to the docs.
You can check the timer example on how to work with signals.

by (572 points)
selected by

Never mind, I figured it out. Thanks for the help! This is the first time I have used signals.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.