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:
balloonpopper
2022-07-12 23:13:48 +10:00
committed by GitHub
parent d874c73336
commit 036246436a

View File

@@ -292,10 +292,13 @@ func mousewheel_action(direction: int):
func hide_ui(): func hide_ui():
$CanvasLayer/ui/HBoxContainer/inventory_ui.hide() $CanvasLayer/ui/HBoxContainer/inventory_ui.hide()
$CanvasLayer/ui.hide()
func show_ui(): func show_ui():
$CanvasLayer/ui/HBoxContainer/inventory_ui.show() $CanvasLayer/ui/HBoxContainer/inventory_ui.show()
$CanvasLayer/ui.show()
func hide_main_menu(): func hide_main_menu():
if get_node(main_menu).visible: if get_node(main_menu).visible:
@@ -316,6 +319,7 @@ func unpause_game():
func pause_game(): func pause_game():
if not get_node(pause_menu).visible: if not get_node(pause_menu).visible:
get_node(main_menu).reset() get_node(main_menu).reset()
get_node(pause_menu).reset()
get_node(pause_menu).set_save_enabled( get_node(pause_menu).set_save_enabled(
escoria.save_manager.save_enabled escoria.save_manager.save_enabled
) )