A question about Tooltip
Asked Answered
B

4

0



Why does the window I defined using the _make_custom_tooltip method have a black background when I am sure I have set transparency on its theme

Bacchanal answered 7/8, 2023 at 14:50 Comment(0)
S
0

Bacchanal 老外欢迎,Like CSS, you might need to check if the value is being overridden by a setting in another place. Also- some more information might help us here help you. <3

Sawhorse answered 7/8, 2023 at 18:48 Comment(0)
A
0

This is a bug. You can find github issue here: https://github.com/godotengine/godot/issues/76071

Apples answered 7/8, 2023 at 18:53 Comment(0)
B
0

Apples Well, it's probably a bug

Bacchanal answered 13/8, 2023 at 13:3 Comment(0)
B
0

My current solution is as follows:

func _enter_tree() -> void:
	var par=get_parent()
	var panel_n=StyleBoxLine.new()
	panel_n.color=Color(0,0,0,0)
	par.set_indexed("theme_override_styles/panel",panel_n)
	get_viewport().transparent_bg=true
	par.transparent=true

It applies a new transparent panel style to replace the old one.
This will make the background transparent and hopefully help people who encounter this problem

Bacchanal answered 13/8, 2023 at 13:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.