issue 283 - make inventory appear when running via f5. Hide options menu when pausing game. (#603)

Co-authored-by: Balloonpopper <balloonpopper@git.com>
This commit is contained in:
balloonpopperandBalloonpopper authored and GitHub committed 2022-07-12 15:13:48 +02:00
1 parent d874c73336
commit 036246436a
1 file changed
+4
+4
View File
@@ -292,10 +292,13 @@ func mousewheel_action(direction: int):
func hide_ui():
$CanvasLayer/ui/HBoxContainer/inventory_ui.hide()
$CanvasLayer/ui.hide()
func show_ui():
$CanvasLayer/ui/HBoxContainer/inventory_ui.show()
$CanvasLayer/ui.show()
func hide_main_menu():
if get_node(main_menu).visible:
@@ -316,6 +319,7 @@ func unpause_game():
func pause_game():
if not get_node(pause_menu).visible:
get_node(main_menu).reset()
get_node(pause_menu).reset()
get_node(pause_menu).set_save_enabled(
escoria.save_manager.save_enabled
)