Closed Doresain closed 2 years ago
I have actually been thinking about this, and I'm definately going to have a look at it. 🎵😁
The duration of the banner is semi-configurable in the current version actually. The animation time is static, but the time it stays afterwards can be set as a module setting, with a default of 2. I'm also going to add an option to make the banner stay indefinately instead of fading out - with only the dm getting a visible close button to remove it at will.
I just released version 0.9.4. You can now add audio to dispositions, templates and individual actors. Simple sounds, themseongs or what-have-you. 🥳 https://github.com/WBHarry/introduce-me/releases/tag/0.9.4
So, I will prefix this with: 1) Killer module man, very stylish, great idea, thank you! 2) I will understand if you have no interest in mucking with the sound APIs, I don't either! :)
That said, it would be cool if, when the intro is triggered, a sound effect was also played. This introduces a bunch of potential complexity though:
You'd need options both for a default introduction sound as a fallback and for specifying a sound per-actor. Probably also a 'turn sounds off entirely' toggle?
Ideally the sound duration and the intro banner duration line up so the sound isn't playing after the banner fades, which either means truncating whatever sound is played and fading it out when the banner fades OR allowing the user to configure the duration of the banner... or both?
I don't even know if this is possible, I couldn't tell from the API docs, but allowing the user to specify a start time in seconds for a sound would be the fanciest.