Exit.gd 426 B

1234567891011121314151617181920212223
  1. extends Node
  2. func _ready():
  3. self.visible = false
  4. func _on_YesButton_pressed():
  5. get_tree().quit(0)
  6. func _on_YesButton_mouse_entered():
  7. $YesButton/selected.visible = true
  8. $NoButton/selected.visible = false
  9. func _on_NoButton_pressed():
  10. self.visible = false
  11. func _on_NoButton_mouse_entered():
  12. $YesButton/selected.visible = false
  13. $NoButton/selected.visible = true
  14. func _on_Background_pressed():
  15. self.visible = false