Files
gymkhana-actions/game/ui/commons/pause_menu/pause_menu.gd
Julian Murgia f2991c30c7 Added sound management in savegames and load games. (#337)
Fixes #300
Fix crash on loading game when the saved position was a float while teleport_pos command needs integers.
Fix pause menu missing in simplemouse-ui, causing a crash when calling pause menu.
Co-authored-by: StraToN <StraToN@users.noreply.github.com>
2021-07-29 14:22:42 +02:00

35 lines
540 B
GDScript

extends Control
func _ready():
hide()
func _on_continue_pressed():
escoria.main.current_scene.game.pause_game()
func _on_save_game_pressed():
$Panel/VBoxContainer.hide()
$save_game.show()
func _on_load_game_pressed():
$Panel/VBoxContainer.hide()
$load_game.refresh_savegames()
$load_game.show()
func _on_quit_pressed():
get_tree().quit()
func _on_save_game_back_button_pressed():
$Panel/VBoxContainer.show()
$save_game.hide()
func _on_load_game_back_button_pressed():
$Panel/VBoxContainer.show()
$load_game.hide()