aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/Theme/StyleBoxWithSound.gd
diff options
context:
space:
mode:
author Nemrav <50055236+Nemrav@users.noreply.github.com>2024-08-06 01:48:36 +0200
committer GitHub <noreply@github.com>2024-08-06 01:48:36 +0200
commit82b16bcca7c74607a8885b882ec36f5202e7ef70 (patch)
tree0a9bd4f52c01315c3b38ce641a78c33bd8562be2 /game/src/Game/Theme/StyleBoxWithSound.gd
parentfde15e554dc9ed458a838683c69d10262764db12 (diff)
parent9506f4160f0bd351f0853e6e8263ea927d9ec771 (diff)
Merge pull request #243 from Nemrav/music
Music and sound effects
Diffstat (limited to 'game/src/Game/Theme/StyleBoxWithSound.gd')
-rw-r--r--game/src/Game/Theme/StyleBoxWithSound.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/src/Game/Theme/StyleBoxWithSound.gd b/game/src/Game/Theme/StyleBoxWithSound.gd
index 8c29b34..75a181a 100644
--- a/game/src/Game/Theme/StyleBoxWithSound.gd
+++ b/game/src/Game/Theme/StyleBoxWithSound.gd
@@ -29,6 +29,6 @@ func _draw(to_canvas_item : RID, rect : Rect2) -> void:
# Is there any other reason aside from release sounds (might be useful for toggles?)
# This should be fast enough to not cause draw issues
if sound != null:
- SoundManager.play_effect_stream(sound)
+ SoundManager.play_effect_compat("click",sound)
if style_box != null:
style_box.draw(to_canvas_item, rect)