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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[gd_scene load_steps=6 format=2]

[ext_resource path="res://sprites/stop.png" type="Texture" id=1]
[ext_resource path="res://ui/scripts/pausemenu.gd" type="Script" id=2]
[ext_resource path="res://ui/buttontheme.tres" type="Theme" id=3]
[ext_resource path="res://fonts/fonty.tres" type="DynamicFont" id=4]
[ext_resource path="res://ui/scenes/settings.tscn" type="PackedScene" id=6]

[node name="pause" type="Control"]
pause_mode = 2
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="ColorRect" type="ColorRect" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
color = Color( 0, 0, 0, 0.611765 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="pause_icon" type="Sprite" parent="ColorRect"]
position = Vector2( 303, 164 )
texture = ExtResource( 1 )

[node name="VBoxContainer" type="VBoxContainer" parent="ColorRect"]
anchor_bottom = 1.0
margin_left = 14.0
margin_top = 16.0
margin_right = 88.0
margin_bottom = -60.0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="mainmenu" type="Button" parent="ColorRect/VBoxContainer"]
margin_right = 74.0
margin_bottom = 14.0
theme = ExtResource( 3 )
text = "Main menu"
align = 0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="options" type="Button" parent="ColorRect/VBoxContainer"]
margin_top = 18.0
margin_right = 74.0
margin_bottom = 32.0
theme = ExtResource( 3 )
text = "Options"
align = 0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="exit" type="Button" parent="ColorRect/VBoxContainer"]
margin_top = 36.0
margin_right = 74.0
margin_bottom = 50.0
theme = ExtResource( 3 )
text = "exit"
align = 0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="settings" parent="ColorRect" instance=ExtResource( 6 )]
visible = false

[node name="pause1" type="Label" parent="ColorRect"]
margin_left = 16.0
margin_top = 155.0
margin_right = 288.0
margin_bottom = 172.0
custom_fonts/font = ExtResource( 4 )
text = "Paused"
align = 2
__meta__ = {
"_edit_use_anchors_": false
}

[node name="pause2" type="Label" parent="ColorRect"]
margin_left = 28.0
margin_top = 133.0
margin_right = 310.0
margin_bottom = 150.0
custom_fonts/font = ExtResource( 4 )
text = "Press esc to unpause"
__meta__ = {
"_edit_use_anchors_": false
}

[connection signal="gui_input" from="ColorRect/VBoxContainer/mainmenu" to="." method="_on_mainmenu_gui_input"]
[connection signal="gui_input" from="ColorRect/VBoxContainer/options" to="." method="_on_options_gui_input"]
[connection signal="gui_input" from="ColorRect/VBoxContainer/exit" to="." method="_on_exit_gui_input"]
[connection signal="apply_button_pressed" from="ColorRect/settings" to="." method="_on_settings_apply_button_pressed"]
[connection signal="back" from="ColorRect/settings" to="." method="_on_settings_back"]