1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 09:09:47 +00:00

Change get_tree().get_root() to get_window() in TransparentChecker.gd

This commit is contained in:
Emmanouil Papadeas 2024-01-29 16:37:56 +02:00
parent 5bd3cab196
commit 1dce3ebe22

View file

@ -45,10 +45,10 @@ func update_transparency(value: float) -> void:
# Change the transparency status of the parent viewport and the root viewport
if value == 1.0:
get_parent().transparent_bg = false
get_tree().get_root().transparent_bg = false
get_window().transparent_bg = false
else:
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
material.set_shader_parameter("alpha", clampf(value, 0.1, 1))