godotengine / godotengine/godot

Buttons do not return to normal state after press is released

Open
#94,341 5 comments 0 reactions 0 assignees View on GitHub
discussion documentation topic:gui topic:input
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

Godot 4.2.2

### System information

Windows 10 - Godot 4.2.2

### Issue description

created a dummy theme, added my button states. When I press a button, the pressed state is enabled. After releasing the mouse, the button stays in PRESSED DrawMode. The only way to return a button to NORMAL state is to ...click another button? Is this intended behavior? Toggle mode is not enabled. I have looked at a few YT tutorials on Godot themes and looked at the docs, every example of theming buttons has this issue as far as I can see. Is there a recommended way to return buttons to NORMAL state other than needing another button?

### Steps to reproduce

Click a button and release the click. Button will stay in the PRESSED state

### Minimal reproduction project (MRP)

[buttons.zip](https://github.com/user-attachments/files/16216100/buttons.zip)

Contributor guide

Open the contributing guide

Research direction

Open buttons.zip in Godot 4.2.2 and reproduce the issue by clicking and releasing the themed button described in the report. Check the button's draw mode after release with toggle mode disabled; done means the behavior is confirmed and the button returns to NORMAL, or the intended behavior is clearly established and covered by an appropriate regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
godot
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.