-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathPauseMenu.gd
47 lines (29 loc) · 958 Bytes
/
PauseMenu.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
extends Control
# Called when the node enters the scene tree for the first time.
func _ready():
$LoadMenu.LoadingLevel.connect(on_load_level)
$LoadMenu.HideInterface.connect(on_hide_interface)
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func on_load_level():
queue_free()
func on_hide_interface():
$LoadMenu.hide()
func _on_resume_button_down():
GameManager.UnpauseGame()
pass # Replace with function body.
func _on_save_button_down():
var date = str(Time.get_datetime_string_from_system())
date = date.replace(":", "-")
SaveLoadManager.SaveGame("test-"+ date)
pass # Replace with function body.
func _on_load_button_down():
$LoadMenu.show()
pass # Replace with function body.
func _on_settings_button_down():
pass # Replace with function body.
func _on_exit_button_down():
get_tree().quit()
pass # Replace with function body.