Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
I've been trying to get a working slider option for text size. So far it's set for dialogue of the game but I'm having trouble making it work. The current state of it is that it does not select any other size nor does the slider appear correctly.
lsf22 wrote: ↑Sat Nov 25, 2023 9:34 pmSo far it's set for dialogue of the game but I'm having trouble making it work. The current state of it is that it does not select any other size nor does the slider appear correctly.
I don't know why you think your preference called "text size" or "size" does anything at all. Where did you read that? Here is the official documentation for preferences: https://www.renpy.org/doc/html/screen_a ... Preference
lsf22 wrote: ↑Sat Nov 25, 2023 9:34 pmSo far it's set for dialogue of the game but I'm having trouble making it work. The current state of it is that it does not select any other size nor does the slider appear correctly.
I don't know why you think your preference called "text size" or "size" does anything at all. Where did you read that? Here is the official documentation for preferences: https://www.renpy.org/doc/html/screen_a ... Preference
The above is actually for scaling all fonts. If you want to change default sizes for certain gui elements, use gui.SetPreference and give the user some prebaked sizes to choose from instead. You cannot use this with bars, but buttons and fixed values. Now of course the user could use a bar to change a variable and then you use that variable to set the preference after he clicks or with a timer.