2021-11-13 22:06:38 +00:00
|
|
|
extends PopupDialog
|
|
|
|
|
|
|
|
|
|
|
|
func _process(_delta: float) -> void:
|
|
|
|
if Input.is_action_just_pressed("ui_cancel"):
|
|
|
|
if get_tree().paused:
|
|
|
|
hide()
|
|
|
|
get_tree().paused = false
|
|
|
|
else:
|
|
|
|
show()
|
|
|
|
get_tree().paused = true
|
|
|
|
|
2021-11-18 19:44:42 +00:00
|
|
|
|
2021-11-13 22:06:38 +00:00
|
|
|
func _on_ContinueButton_pressed():
|
|
|
|
hide()
|
|
|
|
get_tree().paused = false
|
|
|
|
|
2021-11-18 19:44:42 +00:00
|
|
|
|
2021-11-13 22:06:38 +00:00
|
|
|
func _on_ExitButton_pressed():
|
|
|
|
get_tree().paused = false
|
2022-01-20 15:50:44 +00:00
|
|
|
if MultiplayerController.connected:
|
|
|
|
MultiplayerController.quit()
|
2021-11-18 19:48:47 +00:00
|
|
|
get_tree().change_scene("res://menu/main_menu.tscn")
|
2021-11-13 22:06:38 +00:00
|
|
|
get_tree().root.get_child(get_tree().root.get_child_count() - 1).queue_free()
|