2022-03-31 20:26:32 +00:00
|
|
|
[gd_scene load_steps=2 format=3 uid="uid://ebfrhgrluixd"]
|
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://scenes/music/music_manager.gd" id="1_dltpv"]
|
|
|
|
|
|
|
|
[node name="MusicManager" type="Control"]
|
2023-04-13 17:35:20 +00:00
|
|
|
layout_mode = 3
|
|
|
|
anchors_preset = 0
|
|
|
|
script = ExtResource("1_dltpv")
|
2022-04-15 07:53:44 +00:00
|
|
|
|
|
|
|
[node name="Music" type="AudioStreamPlayer" parent="."]
|
2022-04-22 07:58:30 +00:00
|
|
|
volume_db = 23.803
|
2022-04-15 07:53:44 +00:00
|
|
|
|
|
|
|
[node name="EndMusic" type="Timer" parent="."]
|
|
|
|
|
|
|
|
[node name="Window" type="Window" parent="."]
|
|
|
|
title = "MUSIC_MANAGER/TITLE"
|
|
|
|
position = Vector2i(100, 100)
|
|
|
|
size = Vector2i(800, 450)
|
|
|
|
visible = false
|
|
|
|
|
|
|
|
[node name="VBox" type="VBoxContainer" parent="Window"]
|
2023-04-13 17:35:20 +00:00
|
|
|
anchors_preset = 15
|
2022-03-31 20:26:32 +00:00
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
2022-04-15 07:53:44 +00:00
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
|
|
|
|
[node name="Tab" type="TabContainer" parent="Window/VBox"]
|
2023-04-13 17:35:20 +00:00
|
|
|
layout_mode = 2
|
2022-04-15 07:53:44 +00:00
|
|
|
size_flags_vertical = 3
|
2023-04-13 17:35:20 +00:00
|
|
|
focus_mode = 2
|
2022-04-15 07:53:44 +00:00
|
|
|
tab_alignment = 1
|
|
|
|
|
|
|
|
[node name="Music" type="VBoxContainer" parent="Window/VBox/Tab"]
|
2023-04-13 17:35:20 +00:00
|
|
|
visible = false
|
|
|
|
layout_mode = 2
|
|
|
|
focus_mode = 2
|
2022-04-15 07:53:44 +00:00
|
|
|
|
|
|
|
[node name="HBox" type="HBoxContainer" parent="Window/VBox/Tab/Music"]
|
2023-04-13 17:35:20 +00:00
|
|
|
layout_mode = 2
|
2022-04-15 07:53:44 +00:00
|
|
|
size_flags_horizontal = 4
|
|
|
|
size_flags_vertical = 0
|
|
|
|
|
|
|
|
[node name="Play" type="CheckButton" parent="Window/VBox/Tab/Music/HBox"]
|
2023-04-13 17:35:20 +00:00
|
|
|
layout_mode = 2
|
|
|
|
focus_neighbor_top = NodePath("../..")
|
2022-04-15 07:53:44 +00:00
|
|
|
button_pressed = true
|
|
|
|
text = "MUSIC_MANAGER/PLAY"
|
|
|
|
|
|
|
|
[node name="Random" type="CheckButton" parent="Window/VBox/Tab/Music/HBox"]
|
2023-04-13 17:35:20 +00:00
|
|
|
layout_mode = 2
|
|
|
|
focus_neighbor_top = NodePath("../..")
|
2022-04-15 07:53:44 +00:00
|
|
|
button_pressed = true
|
|
|
|
text = "MUSIC_MANAGER/RANDOM"
|
|
|
|
|
|
|
|
[node name="Reinit" type="Button" parent="Window/VBox/Tab/Music/HBox"]
|
2023-04-13 17:35:20 +00:00
|
|
|
layout_mode = 2
|
|
|
|
focus_neighbor_top = NodePath("../..")
|
2022-04-15 07:53:44 +00:00
|
|
|
text = "MUSIC_MANAGER/REINIT"
|
|
|
|
|
|
|
|
[node name="ScrollContainer" type="ScrollContainer" parent="Window/VBox/Tab/Music"]
|
2023-04-13 17:35:20 +00:00
|
|
|
layout_mode = 2
|
2022-04-15 07:53:44 +00:00
|
|
|
size_flags_vertical = 3
|
|
|
|
|
|
|
|
[node name="ListMusic" type="VBoxContainer" parent="Window/VBox/Tab/Music/ScrollContainer"]
|
2023-04-13 17:35:20 +00:00
|
|
|
layout_mode = 2
|
2022-04-15 07:53:44 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
|
|
|
[node name="Mixer" type="VBoxContainer" parent="Window/VBox/Tab"]
|
2023-04-13 17:35:20 +00:00
|
|
|
layout_mode = 2
|
|
|
|
focus_mode = 2
|
2022-04-15 07:53:44 +00:00
|
|
|
|
|
|
|
[node name="GlobalLevel" type="HBoxContainer" parent="Window/VBox/Tab/Mixer"]
|
2023-04-13 17:35:20 +00:00
|
|
|
layout_mode = 2
|
2022-04-15 07:53:44 +00:00
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="Window/VBox/Tab/Mixer/GlobalLevel"]
|
2023-04-13 17:35:20 +00:00
|
|
|
layout_mode = 2
|
2022-04-15 07:53:44 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
text = "MUSIC_MANAGER/GLOBAL_VOLUME"
|
|
|
|
|
|
|
|
[node name="global" type="HSlider" parent="Window/VBox/Tab/Mixer/GlobalLevel"]
|
2023-04-13 17:35:20 +00:00
|
|
|
layout_mode = 2
|
2022-04-15 07:53:44 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
2022-04-15 15:03:37 +00:00
|
|
|
[node name="Value" type="Label" parent="Window/VBox/Tab/Mixer/GlobalLevel"]
|
2023-04-13 17:35:20 +00:00
|
|
|
layout_mode = 2
|
2022-04-15 15:03:37 +00:00
|
|
|
text = "0"
|
|
|
|
|
2022-04-15 07:53:44 +00:00
|
|
|
[node name="MusicLevel" type="HBoxContainer" parent="Window/VBox/Tab/Mixer"]
|
2023-04-13 17:35:20 +00:00
|
|
|
layout_mode = 2
|
2022-04-15 07:53:44 +00:00
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="Window/VBox/Tab/Mixer/MusicLevel"]
|
2023-04-13 17:35:20 +00:00
|
|
|
layout_mode = 2
|
2022-04-15 07:53:44 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
text = "MUSIC_MANAGER/MUSIC_VOLUME"
|
|
|
|
|
|
|
|
[node name="music" type="HSlider" parent="Window/VBox/Tab/Mixer/MusicLevel"]
|
2023-04-13 17:35:20 +00:00
|
|
|
layout_mode = 2
|
2022-04-15 07:53:44 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
2022-04-15 15:03:37 +00:00
|
|
|
[node name="Value" type="Label" parent="Window/VBox/Tab/Mixer/MusicLevel"]
|
2023-04-13 17:35:20 +00:00
|
|
|
layout_mode = 2
|
2022-04-15 15:03:37 +00:00
|
|
|
text = "0"
|
|
|
|
|
2022-04-15 07:53:44 +00:00
|
|
|
[node name="EffectLevel" type="HBoxContainer" parent="Window/VBox/Tab/Mixer"]
|
2023-04-13 17:35:20 +00:00
|
|
|
layout_mode = 2
|
2022-04-15 07:53:44 +00:00
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="Window/VBox/Tab/Mixer/EffectLevel"]
|
2023-04-13 17:35:20 +00:00
|
|
|
layout_mode = 2
|
2022-04-15 07:53:44 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
text = "MUSIC_MANAGER/EFFECT_VOLUME"
|
|
|
|
|
|
|
|
[node name="effect" type="HSlider" parent="Window/VBox/Tab/Mixer/EffectLevel"]
|
2023-04-13 17:35:20 +00:00
|
|
|
layout_mode = 2
|
2022-04-15 07:53:44 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
2022-04-15 15:03:37 +00:00
|
|
|
[node name="Value" type="Label" parent="Window/VBox/Tab/Mixer/EffectLevel"]
|
2023-04-13 17:35:20 +00:00
|
|
|
layout_mode = 2
|
2022-04-15 15:03:37 +00:00
|
|
|
text = "0"
|
|
|
|
|
2022-04-15 07:53:44 +00:00
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="Window/VBox"]
|
2023-04-13 17:35:20 +00:00
|
|
|
layout_mode = 2
|
2022-04-15 07:53:44 +00:00
|
|
|
size_flags_vertical = 8
|
|
|
|
|
2022-04-15 12:33:00 +00:00
|
|
|
[node name="space" type="Label" parent="Window/VBox/HBoxContainer"]
|
2023-04-13 17:35:20 +00:00
|
|
|
layout_mode = 2
|
2022-04-15 07:53:44 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
2023-04-13 17:35:20 +00:00
|
|
|
[node name="Quit" type="Button" parent="Window/VBox/HBoxContainer"]
|
|
|
|
layout_mode = 2
|
2022-04-15 07:53:44 +00:00
|
|
|
size_flags_horizontal = 6
|
|
|
|
size_flags_vertical = 8
|
2022-04-15 15:03:37 +00:00
|
|
|
text = "MUSIC_MANAGER/QUIT"
|
2022-03-31 20:26:32 +00:00
|
|
|
|
2022-04-15 07:53:44 +00:00
|
|
|
[node name="Mute" type="CheckButton" parent="Window/VBox/HBoxContainer"]
|
2023-04-13 17:35:20 +00:00
|
|
|
layout_mode = 2
|
2022-04-15 07:53:44 +00:00
|
|
|
size_flags_horizontal = 10
|
|
|
|
text = "MUSIC_MANAGER/MUTE"
|
2022-03-31 20:26:32 +00:00
|
|
|
|
2022-04-15 07:53:44 +00:00
|
|
|
[connection signal="finished" from="Music" to="." method="_on_music_finished"]
|
|
|
|
[connection signal="timeout" from="EndMusic" to="." method="_on_end_music_timeout"]
|
|
|
|
[connection signal="close_requested" from="Window" to="." method="_on_window_close_requested"]
|
2023-04-13 17:35:20 +00:00
|
|
|
[connection signal="visibility_changed" from="Window" to="." method="_on_window_visibility_changed"]
|
2022-04-15 07:53:44 +00:00
|
|
|
[connection signal="pressed" from="Window/VBox/Tab/Music/HBox/Play" to="." method="_on_play_pressed"]
|
|
|
|
[connection signal="pressed" from="Window/VBox/Tab/Music/HBox/Random" to="." method="_on_random_pressed"]
|
|
|
|
[connection signal="pressed" from="Window/VBox/Tab/Music/HBox/Reinit" to="." method="_on_reinit_pressed"]
|
|
|
|
[connection signal="value_changed" from="Window/VBox/Tab/Mixer/GlobalLevel/global" to="." method="_on_global_value_changed"]
|
|
|
|
[connection signal="value_changed" from="Window/VBox/Tab/Mixer/MusicLevel/music" to="." method="_on_music_value_changed"]
|
|
|
|
[connection signal="value_changed" from="Window/VBox/Tab/Mixer/EffectLevel/effect" to="." method="_on_effect_value_changed"]
|
2023-04-13 17:35:20 +00:00
|
|
|
[connection signal="pressed" from="Window/VBox/HBoxContainer/Quit" to="." method="_on_button_pressed"]
|
2022-04-15 07:53:44 +00:00
|
|
|
[connection signal="toggled" from="Window/VBox/HBoxContainer/Mute" to="." method="_on_mute_toggled"]
|