mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 09:09:47 +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:
parent
4e9b657077
commit
b08420d09d
|
@ -805,11 +805,8 @@ func _renderer_changed(value: int) -> void:
|
|||
func dialog_open(open: bool) -> void:
|
||||
var dim_color := Color.WHITE
|
||||
if open:
|
||||
can_draw = false
|
||||
if dim_on_popup:
|
||||
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)
|
||||
tween.tween_property(control, "modulate", dim_color, 0.1)
|
||||
|
|
Loading…
Reference in a new issue