Added sound management in savegames and load games. (#337)

Fixes #300
Fix crash on loading game when the saved position was a float while teleport_pos command needs integers.
Fix pause menu missing in simplemouse-ui, causing a crash when calling pause menu.
Co-authored-by: StraToN <StraToN@users.noreply.github.com>
This commit is contained in:
Julian Murgia
2021-07-29 14:22:42 +02:00
committed by GitHub
parent 2c8107964c
commit f2991c30c7
10 changed files with 48 additions and 5 deletions

View File

@@ -51,3 +51,7 @@ func _ready():
ESCObject.new(global_id, self),
true
)
# Set state to default when finished playing.
func _on_sound_finished():
state = "default"

View File

@@ -15,3 +15,5 @@ __meta__ = {
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
bus = "SFX"
[connection signal="finished" from="AudioStreamPlayer" to="." method="_on_sound_finished"]