Stop the player from pressing other buttons when one is already pressed

Godot Version

4.5 Dev 2

Question

I am looking for recommendations on how to achieve this.

Basically i want to prevent this from happening:

Disable the button changes the style box and I would have to do it in each button, so I’m looking for a better way.

Thanks in advance.

.disabled makes the most sense to me, and it shouldn’t be difficult to change all the buttons, if they are all chidren of one node or in a group it could be done in two lines via a for loop. You could also set the button’s process_mode to disabled, this shouldn’t change the style box while preventing input.

2 Likes