Branch master was renamed to main.

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

181 lines
5.7 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"]
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"]
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Tab" type="TabContainer" parent="Window/VBox"]
offset_right = 1024.0
offset_bottom = 565.0
grow_horizontal = 2
grow_vertical = 2
size_flags_vertical = 3
tab_alignment = 1
[node name="Music" type="VBoxContainer" parent="Window/VBox/Tab"]
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = 31.0
grow_horizontal = 2
grow_vertical = 2
[node name="HBox" type="HBoxContainer" parent="Window/VBox/Tab/Music"]
offset_left = 160.0
offset_right = 864.0
offset_bottom = 31.0
size_flags_horizontal = 4
size_flags_vertical = 0
[node name="Play" type="CheckButton" parent="Window/VBox/Tab/Music/HBox"]
offset_right = 230.0
offset_bottom = 31.0
button_pressed = true
text = "MUSIC_MANAGER/PLAY"
[node name="Random" type="CheckButton" parent="Window/VBox/Tab/Music/HBox"]
offset_left = 234.0
offset_right = 498.0
offset_bottom = 31.0
button_pressed = true
text = "MUSIC_MANAGER/RANDOM"
[node name="Reinit" type="Button" parent="Window/VBox/Tab/Music/HBox"]
offset_left = 502.0
offset_right = 704.0
offset_bottom = 31.0
text = "MUSIC_MANAGER/REINIT"
[node name="ScrollContainer" type="ScrollContainer" parent="Window/VBox/Tab/Music"]
offset_top = 35.0
offset_right = 1024.0
offset_bottom = 534.0
size_flags_vertical = 3
[node name="ListMusic" type="VBoxContainer" parent="Window/VBox/Tab/Music/ScrollContainer"]
offset_right = 1024.0
offset_bottom = 499.0
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="Mixer" type="VBoxContainer" parent="Window/VBox/Tab"]
visible = false
offset_right = 40.0
offset_bottom = 40.0
[node name="GlobalLevel" type="HBoxContainer" parent="Window/VBox/Tab/Mixer"]
offset_right = 40.0
offset_bottom = 40.0
[node name="Label" type="Label" parent="Window/VBox/Tab/Mixer/GlobalLevel"]
offset_right = 40.0
offset_bottom = 23.0
size_flags_horizontal = 3
text = "MUSIC_MANAGER/GLOBAL_VOLUME"
[node name="global" type="HSlider" parent="Window/VBox/Tab/Mixer/GlobalLevel"]
offset_right = 8.0
offset_bottom = 16.0
size_flags_horizontal = 3
[node name="Value" type="Label" parent="Window/VBox/Tab/Mixer/GlobalLevel"]
minimum_size = Vector2(50, 0)
offset_right = 40.0
offset_bottom = 23.0
text = "0"
[node name="MusicLevel" type="HBoxContainer" parent="Window/VBox/Tab/Mixer"]
offset_right = 40.0
offset_bottom = 40.0
[node name="Label" type="Label" parent="Window/VBox/Tab/Mixer/MusicLevel"]
offset_right = 40.0
offset_bottom = 23.0
size_flags_horizontal = 3
text = "MUSIC_MANAGER/MUSIC_VOLUME"
[node name="music" type="HSlider" parent="Window/VBox/Tab/Mixer/MusicLevel"]
offset_right = 8.0
offset_bottom = 16.0
size_flags_horizontal = 3
[node name="Value" type="Label" parent="Window/VBox/Tab/Mixer/MusicLevel"]
minimum_size = Vector2(50, 0)
offset_right = 40.0
offset_bottom = 23.0
text = "0"
[node name="EffectLevel" type="HBoxContainer" parent="Window/VBox/Tab/Mixer"]
offset_right = 40.0
offset_bottom = 40.0
[node name="Label" type="Label" parent="Window/VBox/Tab/Mixer/EffectLevel"]
offset_right = 40.0
offset_bottom = 23.0
size_flags_horizontal = 3
text = "MUSIC_MANAGER/EFFECT_VOLUME"
[node name="effect" type="HSlider" parent="Window/VBox/Tab/Mixer/EffectLevel"]
offset_right = 8.0
offset_bottom = 16.0
size_flags_horizontal = 3
[node name="Value" type="Label" parent="Window/VBox/Tab/Mixer/EffectLevel"]
minimum_size = Vector2(50, 0)
offset_right = 40.0
offset_bottom = 23.0
text = "0"
[node name="HBoxContainer" type="HBoxContainer" parent="Window/VBox"]
offset_right = 40.0
offset_bottom = 40.0
size_flags_vertical = 8
[node name="space" type="Label" parent="Window/VBox/HBoxContainer"]
offset_right = 40.0
offset_bottom = 23.0
size_flags_horizontal = 3
[node name="Button" type="Button" parent="Window/VBox/HBoxContainer"]
offset_left = 496.0
offset_top = 569.0
offset_right = 527.0
offset_bottom = 600.0
size_flags_horizontal = 6
size_flags_vertical = 8
text = "MUSIC_MANAGER/QUIT"
[node name="Mute" type="CheckButton" parent="Window/VBox/HBoxContainer"]
offset_right = 236.0
offset_bottom = 31.0
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="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/Button" to="." method="_on_button_pressed"]
[connection signal="toggled" from="Window/VBox/HBoxContainer/Mute" to="." method="_on_mute_toggled"]