fish_menu.gd 590 B

1234567891011121314151617181920212223242526272829
  1. extends Panel
  2. # Declare member variables here. Examples:
  3. # var a = 2
  4. # var b = "text"
  5. # Called when the node enters the scene tree for the first time.
  6. func _ready():
  7. pass # Replace with function body.
  8. # Called every frame. 'delta' is the elapsed time since the previous frame.
  9. #func _process(delta):
  10. # pass
  11. func _on_nametag_pressed():
  12. get_tree().paused = true
  13. show()
  14. func _on_resume_button_pressed():
  15. get_tree().paused = false
  16. hide()
  17. func _on_confirm_rename_button_pressed():
  18. var new_name = get_node("rename_input").text
  19. get_parent().get_parent().update_fish_name(new_name)