Skip to content

Commit

Permalink
fix: adds code to manually show the popup since, according to Godot d…
Browse files Browse the repository at this point in the history
…ocs, using show() in the parent CanvasLayer won't show Popup-derived nodes
  • Loading branch information
BHSDuncan authored and StraToN committed May 1, 2023
1 parent fdba154 commit fd05bc9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addons/escoria-dialog-simple/types/avatar.gd
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,11 @@ func _on_paused():
# Handler managing resume notification from Escoria
func _on_resumed():
if not tween.is_active():
# We can't rely on "show()" to make an invisible popup reappear, as per the docs for
# CanvasItem. Instead, we need to use one of the popup_* methods.
if is_inside_tree():
popup_centered()

is_paused = false
tween.resume_all()

Expand Down

0 comments on commit fd05bc9

Please sign in to comment.