From c27f55c57713d0e073cbd62c2b3f66ccde2d6a1e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 2 Oct 2023 23:28:20 +0200 Subject: [PATCH] Fix delete unable to cancel --- game/game.gd | 2 +- main.tscn | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/game/game.gd b/game/game.gd index f07b0b3..b6b2fc7 100644 --- a/game/game.gd +++ b/game/game.gd @@ -110,7 +110,7 @@ func _on_shop_ui_delete_begin(): for converter in item_converters: converter.pending_deletion() -func _on_shop_ui_delete_end(): +func _on_shop_ui_delete_cancel(): var converters = find_children("*", "Converter", true, false) for converter in converters: converter.ending_deletion() diff --git a/main.tscn b/main.tscn index ee10b53..9b91a06 100644 --- a/main.tscn +++ b/main.tscn @@ -86,6 +86,7 @@ layout_mode = 2 [connection signal="delete_begin" from="CustomUI/ShopSafeUI/ShopUI" to="CustomUI/GameViewport/Viewport/Game" method="_on_shop_ui_delete_begin"] [connection signal="delete_begin" from="CustomUI/ShopSafeUI/ShopUI" to="CustomUI/GameSafeUI/GameUI" method="_on_shop_ui_delete_begin"] [connection signal="delete_cancel" from="CustomUI/ShopSafeUI/ShopUI" to="." method="_on_shop_ui_delete_cancel"] +[connection signal="delete_cancel" from="CustomUI/ShopSafeUI/ShopUI" to="CustomUI/GameViewport/Viewport/Game" method="_on_shop_ui_delete_cancel"] [connection signal="delete_cancel" from="CustomUI/ShopSafeUI/ShopUI" to="CustomUI/GameSafeUI/GameUI" method="_on_shop_ui_delete_cancel"] [connection signal="ghost_materialize" from="CustomUI/ShopSafeUI/ShopUI" to="CustomUI/GameViewport/Viewport/Game" method="_on_ghost_materialize"] [connection signal="ghost_requested" from="CustomUI/ShopSafeUI/ShopUI" to="CustomUI/GameViewport/Viewport/Game" method="_on_ghost_requested"]