diff --git a/addons/escoria-ui-simplemouse/game.gd b/addons/escoria-ui-simplemouse/game.gd index aa68d0410..346b02deb 100644 --- a/addons/escoria-ui-simplemouse/game.gd +++ b/addons/escoria-ui-simplemouse/game.gd @@ -311,13 +311,11 @@ func mousewheel_action(direction: int): func hide_ui(): - $CanvasLayer/ui/HBoxContainer/inventory_ui.hide() - $CanvasLayer/ui.hide() + $CanvasLayer/ui.propagate_call("set_visible", [false], true) func show_ui(): - $CanvasLayer/ui/HBoxContainer/inventory_ui.show() - $CanvasLayer/ui.show() + $CanvasLayer/ui.propagate_call("set_visible", [true], false) func hide_main_menu():