extends TextureRect # Called when the node enters the scene tree for the first time. func _ready(): pass # Replace with function body. # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta): if $".".rotation < 360: $".".rotation = rotation + 0.1 else: $".".rotation = -360 pass func showThrobber(): $"../AnimationPlayer".play("RESET") $"../AnimationPlayer".play("Show_Throbber") pass func hideThrobber(): $"../AnimationPlayer".play("Hide_Throbber") pass func _on_button_pressed(): showThrobber() await get_tree().create_timer(10).timeout hideThrobber() pass # Replace with function body. func _on_show_throbber_2_pressed(): hideThrobber() pass # Replace with function body.