mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-31 07:29:49 +00:00
Change get_tree().get_root() to get_window() in TransparentChecker.gd
This commit is contained in:
parent
5bd3cab196
commit
1dce3ebe22
|
@ -45,10 +45,10 @@ func update_transparency(value: float) -> void:
|
||||||
# Change the transparency status of the parent viewport and the root viewport
|
# Change the transparency status of the parent viewport and the root viewport
|
||||||
if value == 1.0:
|
if value == 1.0:
|
||||||
get_parent().transparent_bg = false
|
get_parent().transparent_bg = false
|
||||||
get_tree().get_root().transparent_bg = false
|
get_window().transparent_bg = false
|
||||||
else:
|
else:
|
||||||
get_parent().transparent_bg = true
|
get_parent().transparent_bg = true
|
||||||
get_tree().get_root().transparent_bg = true
|
get_window().transparent_bg = true
|
||||||
|
|
||||||
# Set a minimum amount for the fade so the canvas won't disappear
|
# Set a minimum amount for the fade so the canvas won't disappear
|
||||||
material.set_shader_parameter("alpha", clampf(value, 0.1, 1))
|
material.set_shader_parameter("alpha", clampf(value, 0.1, 1))
|
||||||
|
|
Loading…
Reference in a new issue