Closed shmellyorc closed 1 year ago
@shmellyorc Please upload a minimal reproduction project to make this easier to troubleshoot.
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.)
IMO, if its not broke, dont fix it
This isn't an intentional decision. Assume good faith :slightly_smiling_face:
Столкнулся с такой же проблемой.
Please use English when posting to this repo. Very few contributors know Russian. I can only tell that "..... same problem"
@Zireael07 They just confirmed they have the same problem. But indeed, this is an international board and everyone should use English, even if through an automatic translator.
Hello, I had the same issue when using tooltip, still no solution on my side.
I'm overriding the TooltipPanel "panel" property to StyleboxEmpty for example, but it seems there is still a grey background on the tooltip.
Here is what happens when I set a red background color with a radius:
Thanks.
Suffering from the same issue on 4.0.2, changing the Embed Subwindows setting had no effect.
Can confirm this issue on 4.1.1.
The issue is the tooltip PopupPanel
has no transparent background enabled (PopupPanel
extends Viewport
).
As a workaround e.g. autoloading such script does the thing:
extends Node
func _enter_tree() -> void:
get_tree().node_added.connect(on_node_added)
func on_node_added(node: Node) -> void:
var pp := node as PopupPanel
if pp and pp.theme_type_variation == "TooltipPanel":
pp.transparent_bg = true
same problem with 4.2.1
Please open a new report as this was solved in 4.2 so you are experiencing a different bug, assuming you are configuring things correctly
Godot version
4.0
System information
Windows 10
Issue description
If you modify a theme with ToolTipPanel and you modify the texture of the tooltip, some odd color is behind it.
I tried going through almost every theme node and tried to set the color or panel empty and nothing removes the background color.
I even set the tooltip panel, panel to none/empty and it still shows some black texture behind it.
IMO, if its not broke, dont fix it
when ran:
texture:
theme menu thingy:
Steps to reproduce
it will show a color behind it. Very annoying.
Minimal reproduction project
do what is shown in "Steps to reproduce"