godot-third-person-basic-scene/scenes/music/music_manager.tscn

152 lines
5.1 KiB
Text

[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"]
layout_mode = 3
anchors_preset = 0
script = ExtResource("1_dltpv")
[node name="Music" type="AudioStreamPlayer" parent="."]
volume_db = 23.803
[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"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Tab" type="TabContainer" parent="Window/VBox"]
layout_mode = 2
size_flags_vertical = 3
focus_mode = 2
tab_alignment = 1
[node name="Music" type="VBoxContainer" parent="Window/VBox/Tab"]
visible = false
layout_mode = 2
focus_mode = 2
[node name="HBox" type="HBoxContainer" parent="Window/VBox/Tab/Music"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 0
[node name="Play" type="CheckButton" parent="Window/VBox/Tab/Music/HBox"]
layout_mode = 2
focus_neighbor_top = NodePath("../..")
button_pressed = true
text = "MUSIC_MANAGER/PLAY"
[node name="Random" type="CheckButton" parent="Window/VBox/Tab/Music/HBox"]
layout_mode = 2
focus_neighbor_top = NodePath("../..")
button_pressed = true
text = "MUSIC_MANAGER/RANDOM"
[node name="Reinit" type="Button" parent="Window/VBox/Tab/Music/HBox"]
layout_mode = 2
focus_neighbor_top = NodePath("../..")
text = "MUSIC_MANAGER/REINIT"
[node name="ScrollContainer" type="ScrollContainer" parent="Window/VBox/Tab/Music"]
layout_mode = 2
size_flags_vertical = 3
[node name="ListMusic" type="VBoxContainer" parent="Window/VBox/Tab/Music/ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="Mixer" type="VBoxContainer" parent="Window/VBox/Tab"]
layout_mode = 2
focus_mode = 2
[node name="GlobalLevel" type="HBoxContainer" parent="Window/VBox/Tab/Mixer"]
layout_mode = 2
[node name="Label" type="Label" parent="Window/VBox/Tab/Mixer/GlobalLevel"]
layout_mode = 2
size_flags_horizontal = 3
text = "MUSIC_MANAGER/GLOBAL_VOLUME"
[node name="global" type="HSlider" parent="Window/VBox/Tab/Mixer/GlobalLevel"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Value" type="Label" parent="Window/VBox/Tab/Mixer/GlobalLevel"]
layout_mode = 2
text = "0"
[node name="MusicLevel" type="HBoxContainer" parent="Window/VBox/Tab/Mixer"]
layout_mode = 2
[node name="Label" type="Label" parent="Window/VBox/Tab/Mixer/MusicLevel"]
layout_mode = 2
size_flags_horizontal = 3
text = "MUSIC_MANAGER/MUSIC_VOLUME"
[node name="music" type="HSlider" parent="Window/VBox/Tab/Mixer/MusicLevel"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Value" type="Label" parent="Window/VBox/Tab/Mixer/MusicLevel"]
layout_mode = 2
text = "0"
[node name="EffectLevel" type="HBoxContainer" parent="Window/VBox/Tab/Mixer"]
layout_mode = 2
[node name="Label" type="Label" parent="Window/VBox/Tab/Mixer/EffectLevel"]
layout_mode = 2
size_flags_horizontal = 3
text = "MUSIC_MANAGER/EFFECT_VOLUME"
[node name="effect" type="HSlider" parent="Window/VBox/Tab/Mixer/EffectLevel"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Value" type="Label" parent="Window/VBox/Tab/Mixer/EffectLevel"]
layout_mode = 2
text = "0"
[node name="HBoxContainer" type="HBoxContainer" parent="Window/VBox"]
layout_mode = 2
size_flags_vertical = 8
[node name="space" type="Label" parent="Window/VBox/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Quit" type="Button" parent="Window/VBox/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 8
text = "MUSIC_MANAGER/QUIT"
[node name="Mute" type="CheckButton" parent="Window/VBox/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 10
text = "MUSIC_MANAGER/MUTE"
[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"]
[connection signal="visibility_changed" from="Window" to="." method="_on_window_visibility_changed"]
[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"]
[connection signal="pressed" from="Window/VBox/HBoxContainer/Quit" to="." method="_on_button_pressed"]
[connection signal="toggled" from="Window/VBox/HBoxContainer/Mute" to="." method="_on_mute_toggled"]