Added Preferences Sample Code!
Wow, thank you so much for the support, everyone!
I didn't expect to reach the donation goal so quickly, but here we are: Some sample code for your preferences screen!
You don't necessarily have to download speech_pauses_screens.rpy and can just get the code here:
vbox: style_prefix "radio" textbutton _("Speech Pauses") action ToggleField(persistent,"speech_pauses") showif persistent.speech_pauses: vbox at expander: style_prefix "slider" label _("Commas") bar value FieldValue(persistent, "speech_pause_comma", step=.05, style=u'slider', min=0.05, max=1.0) label _("Sentences") bar value FieldValue(persistent, "speech_pause_period", step=.05, style=u'slider', min=0.1, max=2.0)
Simply place the above vbox where you want it in your preferences screen (with the right indentation level), and you should be good to go!
transform expander(y=90): on show: alpha 0 yoffset -y easein 0.3 alpha 1 yoffset 0 on hide: alpha 1 yoffset 0 easein 0.3 alpha 0 yoffset -y
The optional "expander" transform simply shows and hides the sliders whenever the main preference is toggled. (If you don't use it, also make sure to remove "at expander" from the vbox above!)
Of course, feel free to modify any of this however you like.
Thank you again, and happy speech pausing!
Files
Get Speech Pauses for Ren'Py
Speech Pauses for Ren'Py
Automatic short pauses for more natural dialogue in Ren'Py!
More posts
- Support for more languages added!3 hours ago
- Speech Pauses for Ren'Py released!1 day ago
Comments
Log in with itch.io to leave a comment.
Hi, thanks for the update! I find a curious behavior when trying out the tool. For some reason, it does not pause on em dashes (—) even if it’s included by default. It works on every other punctuations it shipped with. Still trying to figure out what might be the problem here, I’ll inform you if I find it.
Thank you for reporting this! I think I incidentally figured out a solution to this problem while working on support for Chinese.
You can read more about it in this update. Let me know if this fixes your issue!
It works now! Who knows it’s caused by a style guide. I haven’t seen any weird behavior so far from the hacky solution, but having that toggle is very nice of you, thanks!