-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSettings.tscn
120 lines (106 loc) · 3.82 KB
/
Settings.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=8 format=2]
[ext_resource path="res://assets/images/notes.png" type="Texture" id=1]
[ext_resource path="res://assets/images/close.png" type="Texture" id=2]
[ext_resource path="res://assets/images/settings.png" type="Texture" id=3]
[ext_resource path="res://assets/images/unchecked.png" type="Texture" id=4]
[ext_resource path="res://assets/images/checked.png" type="Texture" id=5]
[ext_resource path="res://Settings.gd" type="Script" id=6]
[ext_resource path="res://assets/images/fx.png" type="Texture" id=7]
[node name="Settings" type="Node2D"]
script = ExtResource( 6 )
[node name="settings" type="TextureButton" parent="."]
modulate = Color( 0.37, 0.37, 0.37, 1 )
margin_right = 64.0
margin_bottom = 64.0
texture_normal = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="settings_dialog" type="Node2D" parent="."]
visible = false
[node name="ColorRect" type="ColorRect" parent="settings_dialog"]
margin_left = 258.747
margin_top = 123.624
margin_right = 1058.75
margin_bottom = 573.624
color = Color( 0, 0, 0, 0.564706 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="close_settings" type="TextureButton" parent="settings_dialog/ColorRect"]
modulate = Color( 0.670588, 0.670588, 0.670588, 1 )
margin_left = 727.139
margin_top = 11.2238
margin_right = 791.139
margin_bottom = 75.2238
texture_normal = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="music" type="Node2D" parent="settings_dialog/ColorRect"]
modulate = Color( 0.670588, 0.670588, 0.670588, 1 )
[node name="notes" type="Sprite" parent="settings_dialog/ColorRect/music"]
position = Vector2( 152.591, 139.994 )
texture = ExtResource( 1 )
[node name="volume" type="HSlider" parent="settings_dialog/ColorRect/music"]
margin_left = 210.0
margin_top = 104.182
margin_right = 341.0
margin_bottom = 134.182
rect_scale = Vector2( 2, 2 )
min_value = -50.0
max_value = 0.0
value = -20.0
tick_count = 10
__meta__ = {
"_edit_use_anchors_": false
}
[node name="music_button" type="TextureButton" parent="settings_dialog/ColorRect/music"]
margin_left = 497.455
margin_top = 119.451
margin_right = 537.455
margin_bottom = 159.451
toggle_mode = true
pressed = true
texture_normal = ExtResource( 4 )
texture_pressed = ExtResource( 5 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="fx" type="Node2D" parent="settings_dialog/ColorRect"]
modulate = Color( 0.670588, 0.670588, 0.670588, 1 )
position = Vector2( 0, 104.994 )
[node name="notes" type="Sprite" parent="settings_dialog/ColorRect/fx"]
position = Vector2( 152.591, 139.994 )
texture = ExtResource( 7 )
[node name="fx_volume" type="HSlider" parent="settings_dialog/ColorRect/fx"]
margin_left = 210.0
margin_top = 104.182
margin_right = 341.0
margin_bottom = 134.182
rect_scale = Vector2( 2, 2 )
min_value = -50.0
max_value = 0.0
value = -20.0
tick_count = 10
__meta__ = {
"_edit_use_anchors_": false
}
[node name="fx_button" type="TextureButton" parent="settings_dialog/ColorRect/fx"]
margin_left = 497.455
margin_top = 119.451
margin_right = 537.455
margin_bottom = 159.451
toggle_mode = true
pressed = true
texture_normal = ExtResource( 4 )
texture_pressed = ExtResource( 5 )
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="pressed" from="settings" to="." method="_on_settings_pressed"]
[connection signal="pressed" from="settings_dialog/ColorRect/close_settings" to="." method="_on_close_settings_pressed"]
[connection signal="value_changed" from="settings_dialog/ColorRect/music/volume" to="." method="_on_volume_value_changed"]
[connection signal="toggled" from="settings_dialog/ColorRect/music/music_button" to="." method="_on_music_button_toggled"]
[connection signal="value_changed" from="settings_dialog/ColorRect/fx/fx_volume" to="." method="_on_fx_volume_value_changed"]
[connection signal="toggled" from="settings_dialog/ColorRect/fx/fx_button" to="." method="_on_fx_button_toggled"]