Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MenuButton doesn't render as a button (invisible except for text) #72190

Closed
TheSecondReal0 opened this issue Jan 27, 2023 · 4 comments
Closed
Labels

Comments

@TheSecondReal0
Copy link
Contributor

Godot version

4.0b15

System information

Windows 10, RTX 2060, Vulkan

Issue description

MenuButtons don't render at all like normal buttons, only text is displayed (no panels or other theme elements).

They look like this:
image

When I would expect them to look more like this:
image

Maybe this is intended behavior, but it's not documented to work like this and it seems like it's meant to display like other buttons.

Steps to reproduce

Add a MenuButton node to any scene

Minimal reproduction project

N/A

@dalexeev
Copy link
Member

I guess MenuButton is for menu/toolbar items. In this case, the button does not need a background.

@bruvzg
Copy link
Member

bruvzg commented Jan 27, 2023

Uncheck flat in the properties, it's set for MenuButton by default.

@TheSecondReal0
Copy link
Contributor Author

Thanks, unchecking flat worked. Why is that the default when MenuPopup already exists for when you don't want a full button?

@TheSecondReal0
Copy link
Contributor Author

Just realized this is a duplicate of #30768

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants