/
PauseMenu.tscn
120 lines (99 loc) · 3.04 KB
/
PauseMenu.tscn
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
[gd_scene load_steps=15 format=2]
[ext_resource path="res://SharedAssets/PixelFontNormal.tres" type="DynamicFont" id=1]
[ext_resource path="res://SharedAssets/right_arrow.png" type="Texture" id=2]
[ext_resource path="res://PauseMenu.gd" type="Script" id=3]
[ext_resource path="res://SharedAssets/blip.wav" type="AudioStream" id=4]
[sub_resource type="StyleBoxEmpty" id=1]
[sub_resource type="StyleBoxEmpty" id=2]
[sub_resource type="StyleBoxEmpty" id=3]
[sub_resource type="StyleBoxEmpty" id=4]
[sub_resource type="StyleBoxEmpty" id=5]
[sub_resource type="StyleBoxEmpty" id=6]
[sub_resource type="StyleBoxEmpty" id=7]
[sub_resource type="StyleBoxEmpty" id=8]
[sub_resource type="StyleBoxEmpty" id=9]
[sub_resource type="StyleBoxEmpty" id=10]
[node name="PauseMenu" type="Node2D"]
pause_mode = 2
script = ExtResource( 3 )
[node name="Bg" type="ColorRect" parent="."]
margin_left = 32.0
margin_top = 64.0
margin_right = 288.0
margin_bottom = 192.0
color = Color( 0.811765, 0.776471, 0.721569, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Bg2" type="ColorRect" parent="."]
margin_left = 36.0
margin_top = 68.0
margin_right = 284.0
margin_bottom = 188.0
color = Color( 0.478431, 0.266667, 0.290196, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Header" type="Label" parent="."]
margin_top = 94.0
margin_right = 320.0
margin_bottom = 108.0
custom_fonts/font = ExtResource( 1 )
text = "PAUSED"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Buttons" type="VBoxContainer" parent="."]
margin_left = 104.0
margin_top = 120.0
margin_right = 216.0
margin_bottom = 176.0
custom_constants/separation = 8
alignment = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Resume" type="Button" parent="Buttons"]
margin_right = 112.0
margin_bottom = 24.0
rect_min_size = Vector2( 112, 24 )
mouse_filter = 2
custom_styles/hover = SubResource( 1 )
custom_styles/pressed = SubResource( 2 )
custom_styles/focus = SubResource( 3 )
custom_styles/disabled = SubResource( 4 )
custom_styles/normal = SubResource( 5 )
custom_fonts/font = ExtResource( 1 )
text = "RESUME"
flat = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Arrow" type="Sprite" parent="Buttons/Resume"]
position = Vector2( -8, 13 )
texture = ExtResource( 2 )
[node name="Quit" type="Button" parent="Buttons"]
margin_top = 32.0
margin_right = 112.0
margin_bottom = 56.0
rect_min_size = Vector2( 112, 24 )
mouse_filter = 2
custom_styles/hover = SubResource( 6 )
custom_styles/pressed = SubResource( 7 )
custom_styles/focus = SubResource( 8 )
custom_styles/disabled = SubResource( 9 )
custom_styles/normal = SubResource( 10 )
custom_fonts/font = ExtResource( 1 )
text = "QUIT"
flat = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Arrow" type="Sprite" parent="Buttons/Quit"]
position = Vector2( -8, 13 )
texture = ExtResource( 2 )
[node name="Blip" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 4 )
[connection signal="pressed" from="Buttons/Resume" to="." method="_on_Resume_pressed"]
[connection signal="pressed" from="Buttons/Quit" to="." method="_on_Quit_pressed"]