Skip to content

Commit

Permalink
typing sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
coppolaemilio committed Jun 24, 2021
1 parent 9076255 commit 99b7424
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion addons/dialogic/Nodes/TextBubble.gd
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func load_theme(theme: ConfigFile):
var file_system = Directory.new()
if file_system.dir_exists(sound_effect_path):
$TypingSFX.load_samples_from_folder(sound_effect_path)
elif file_system.file_exists(sound_effect_path):
elif file_system.file_exists(sound_effect_path) or file_system.file_exists(sound_effect_path + '.import'):
$TypingSFX.samples = [load(sound_effect_path)]

$TypingSFX.set_volume_db(theme.get_value('typing_sfx', 'volume', -10))
Expand Down
1 change: 1 addition & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- Removed the `focus_mode` warning
- Added a new page to the docs about the [Text Events](https://github.com/coppolaemilio/dialogic/blob/main/docs/events/TextEvent.md)
- Fixed a bug when trying to skip fade-in dialog animations [[idontkillcoyotes](https://github.com/idontkillcoyotes)]
- Fixed an issue with typing sounds in exported projects


## v1.2 - Organize it!
Expand Down

0 comments on commit 99b7424

Please sign in to comment.