I'm trying to figure out how to make a Jump button appear in an "on" or "off" state, like a Preference("on", "off") button would.
My button is for fast-forwarding/ skipping text, which can be selected in the pause menu. I've done it this way as a direct Skip would immediately go off the pause menu, which I didn't want. Thread here: viewtopic.php?f=8&t=54973
The button jumps to the label "skip_toggle" in script.rpy:
Code: Select all
button:
action Jump("skip_toggle")
style "mainmenu_choice_button"
text _("Fast-Forward") style "mainmenu_choice"
# script.rpy
label skip_toggle:
if fastforward == "off":
$ fastforward = "on"
else:
$ fastforward = "off"
call screen pause_screenI tried adding a few things but nothing worked properly. How do I do this?
