-
Notifications
You must be signed in to change notification settings - Fork 2
/
Pausa.gd
58 lines (35 loc) · 1.28 KB
/
Pausa.gd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
extends Control
func _input(event):
if event.is_action_pressed("Pause") or event.is_action_pressed("ui_cancel"):
var estado_nuevo = not get_tree().paused
get_tree().paused = estado_nuevo
visible = estado_nuevo
func _on_TextureButton4_pressed():
get_tree().quit()
func _on_TextureButton_pressed():
var estado_nuevo = not get_tree().paused
get_tree().paused = estado_nuevo
visible = estado_nuevo
get_tree().change_scene("res://CharacterSelection.tscn")
func _on_StageSelectButton_pressed():
var estado_nuevo = not get_tree().paused
get_tree().paused = estado_nuevo
visible = estado_nuevo
get_tree().change_scene("res://LevelSelection.tscn")
func _on_TextureButton5_pressed():
var estado_nuevo = not get_tree().paused
get_tree().paused = estado_nuevo
visible = estado_nuevo
get_tree().change_scene("res://Titlescreen.tscn")
func _on_TextureButton_mouse_entered():
get_node("BG/SFXHover").play()
func _on_TextureButton2_mouse_entered():
get_node("BG/SFXHover").play()
func _on_TextureButton3_mouse_entered():
get_node("BG/SFXHover").play()
func _on_TextureButton5_mouse_entered():
get_node("BG/SFXHover").play()
func _on_StageSelectButton_mouse_entered():
get_node("BG/SFXHover").play()
func _on_TextureButton4_mouse_entered():
get_node("BG/SFXHover").play()