feat: tatoebaspil m kiva hammasbaksu au andrjoku
This commit is contained in:
parent
b2d5ab61d2
commit
050e8f9e22
104 changed files with 3017 additions and 27 deletions
24
scripts/UI/fail_screen.gd
Normal file
24
scripts/UI/fail_screen.gd
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
extends Control
|
||||
|
||||
@onready var retry_button = %ButtonRetry
|
||||
@onready var button_hover_sound_player = %ButtonHoverSound
|
||||
|
||||
func _ready() -> void:
|
||||
retry_button.grab_focus()
|
||||
get_tree().paused = true
|
||||
|
||||
func _on_button_retry_button_down() -> void:
|
||||
get_tree().paused = false
|
||||
get_tree().reload_current_scene()
|
||||
|
||||
func _on_button_quit_button_down() -> void:
|
||||
get_tree().quit()
|
||||
|
||||
func _on_button_retry_focus_entered() -> void:
|
||||
_play_button_sound()
|
||||
|
||||
func _on_button_quit_focus_entered() -> void:
|
||||
_play_button_sound()
|
||||
|
||||
func _play_button_sound():
|
||||
button_hover_sound_player.play()
|
||||
Loading…
Add table
Add a link
Reference in a new issue