this is a repost, and a replier who didn’t understand the question by not seeing the images and refusing to follow requests as to show the theme preview and scrolling down it to notice more options below, which required me to request many times the same thing – which spammed the last post. so if you can’t reproduce the steps until 5, and then can’t understand the question, don’t try to help.
Steps to follow:
create a menubutton
create a theme for it
inside that theme, create a theme for the panel state of the popup menu
set the colors to some bright color, set radius on all sides by something like 15px or more
see the preview for menubutton/optionsbutton
there’ll be a grey background on the options preview, making it look glitchey, because that background is not also rounded.
Question
it seems that background is another thing, which should be themed apart, what could that be?
Tested, it work if you put this script on your MenuButton :
extends MenuButton
# Called when the node enters the scene tree for the first time.
func _ready():
get_popup().transparent = true
get_popup().transparent_bg = true
second, I really thought that would work:
but there’s nothing about that property on the F1 Help docs of the popup menu (at least searching ‘transparency’)
Popup menu inherit from Window who have this properties.
Your error is pretty weird, I think it’s link the the fact the popupMenu is embedded in the actual window.
Can you send a small project with this error or explain me how you get it ?
weirdly enough, this small project works (if you uncomment the transparent part on the menu button script):
however, I did the same procedure on my project, undoing/redoing the theming, and I still got the same error – except by the button having a background, which was removed by rechecking ‘flat’ (which was checked because I did read it was a possible solution somewhere…)
my project is gonna be open source anyway, so I’ll post it on Codeberg later and you may directly compare the projects
Is Embed Subwindows enabled in the advanced Project Settings? If not, tooltips are spawned as separate windows, which means that they cannot have things drawn behind unless per-pixel transparency is enabled for them. (There’s currently no way to enable per-pixel transparency globally for all tooltips if they’re separate windows.)
this right here is/was the problem – it will have to be embeded, which won’t be a great problem for this project. thank you very much.
this solves the problem (setting the subwindow as transparent:) get_popup().get_window().transparent = true