pause_menu.gd 382 B

12345678910111213141516171819202122232425
  1. extends Panel
  2. # member variables here, example:
  3. # var a=2
  4. # var b="textvar"
  5. func _ready():
  6. # Initialization here
  7. pass
  8. func _on_pause_button_pressed():
  9. get_tree().paused = true
  10. show()
  11. func _on_button_resume_pressed():
  12. get_tree().paused = false
  13. hide()
  14. func _on_button_quit_pressed():
  15. get_tree().quit()
  16. func _on_button_options_pressed():
  17. get_node("options_menu").show()