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

Don't change the value of can_draw in Global.dialog_open()

In Godot 4 dialogs seem to be blocking the input to the rest of the UI, so this may not be needed
This commit is contained in:
Emmanouil Papadeas 2024-01-24 03:19:57 +02:00
parent 4e9b657077
commit b08420d09d

View file

@ -805,11 +805,8 @@ func _renderer_changed(value: int) -> void:
func dialog_open(open: bool) -> void: func dialog_open(open: bool) -> void:
var dim_color := Color.WHITE var dim_color := Color.WHITE
if open: if open:
can_draw = false
if dim_on_popup: if dim_on_popup:
dim_color = Color(0.5, 0.5, 0.5) dim_color = Color(0.5, 0.5, 0.5)
else:
can_draw = true
var tween := create_tween().set_trans(Tween.TRANS_LINEAR).set_ease(Tween.EASE_OUT) var tween := create_tween().set_trans(Tween.TRANS_LINEAR).set_ease(Tween.EASE_OUT)
tween.tween_property(control, "modulate", dim_color, 0.1) tween.tween_property(control, "modulate", dim_color, 0.1)