some fixes

This commit is contained in:
zoe 2021-10-01 17:28:14 +02:00
parent ffcccb8c2e
commit 6539056cfb
8 changed files with 135 additions and 98 deletions

View file

@ -7,3 +7,6 @@ func _ready():
func _on_MusicVolumeSlider_value_changed(value):
AudioServer.set_bus_volume_db(AudioServer.get_bus_index(bus_channel), linear2db(value))
func save_volume():
Saves.save_game()

View file

@ -16,4 +16,6 @@ __meta__ = {
"_edit_use_anchors_": false
}
[connection signal="focus_exited" from="." to="." method="save_volume"]
[connection signal="mouse_exited" from="." to="." method="save_volume"]
[connection signal="value_changed" from="." to="." method="_on_MusicVolumeSlider_value_changed"]