This is how the font size is normally changed from 00accessibility.rpy
Code: Select all
bar value Preference("font size")
textbutton _("Reset"):
action Preference("font size", 1.0)
Here is my code so far, but the function never fires. Maybe there is a better way to do it?
Code: Select all
```
screen test():
#bar value FieldValue(_preferences, 'font size', .3, offset=.8): #doesn't work
#bar value FieldValue(_preferences, 'font_size', .3, offset=.8): #doesn't work
#bar value FieldValue(Preference, 'font size', .3, offset=.8): #doesn't work
#bar value FieldValue(Preference, 'font_size', .3, offset=.8): #doesn't work
bar value FieldValue(persistent, 'text_size_overall', .3, offset=.8):
changed fts
init python:
# this function never fires when the slider is dragged.
def fts(value):
renpy.run(Preference('font size', value))
```