How to untoggle a button in a button group?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By exuin

I have a bunch of TextureButtons in the same ButtonGroup. I want to be able to click on a toggled button and untoggle it. Right now, I can only untoggle a button by clicking a different button. How do I do that?

:bust_in_silhouette: Reply From: Lopy

You could do it manually. Detect the click using _gui_input() if it works, or _input() if it does not, and then set the pressed property as needed.

Thanks, it worked, though I had to disable the button first.

exuin | 2020-12-26 03:08