Do not show checkmark in CheckBox when pressed

Godot Version

4.3

Question

When pressing down left mouse button on a CheckBox, the check mark will appear while the box is being pressed. How do i disable this “preview” of the check mark?

(I am having a server coordinate checkbox functionality between multiplayer peers and think it looks weird to the client if the box gets a check mark on mouse down, then looses the check mark on mouse up while waiting for server answer - which might then decide to allow the check mark)

Not an answer to your specific question, but: Maybe it makes sense to have the checkbox checked while the the server request is processed. You usually assume that the server response will be positive, so the checkbox would stay checked, don’t you? If yes, this “optimistic ui update” would make most sense to the user. In addition, you could show a loading spinner next to the button to indicate server communication.

In case the server response is negative or fails, it would be best to display a message to the user on why the checkbox went back to unchecked - either because of technical issues or because the state is invalid.

1 Like