Button gray bar remains after clicking

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Luka38
:warning: Old Version Published before Godot 3 was released.

I have this problem, when I click the button this gray bar remains and I have to click again to cancel it. And while it’s there the hovering over other buttons doesn’t work. I’m using just regular MenuButton.
Thanks for any help in advance. :slight_smile:
enter image description here

:bust_in_silhouette: Reply From: literalcitrus

That is the intended behaviour of the MenuButton, it’s a button that spawns a PopupMenu when clicked. If you want to use the MenuButton in this way, then the get_popup() method on the MenuButton allows you to make changes to the PopupMenu.

However, if you are just wanting to use a regular button, then there exists the base Button class.

That’s it! Thanks a lot man!

Luka38 | 2018-01-16 13:28