Got a bit of a strange bug. Imagebutton transforms repeat if a button is pressed twice or more. Basically, it looks like this:
http://awvo.uk/share/2015-08-13_20-39-56.mp4
And here's the code for all of that screen and the transforms:
Code: Select all
##############################################################################
# Preferences
#
# Screen that allows the user to change the preferences.
# http://www.renpy.org/doc/html/screen_special.html#prefereces
screen preferences():
tag menu
add "ui/settingsbase.png" at settingsbase
add "ui/settingslabels.png" at settingslabels
add "ui/settingstitle.png" at saveloadtitle
use navigation
# Window/fullscreen
imagebutton auto "ui/window_%s.png" xpos 78 ypos 133 focus_mask None action Preference("display", "window") at wintran
imagebutton auto "ui/fullscreen_%s.png" xpos 188 ypos 133 focus_mask None action Preference("display", "fullscreen") at wintran
# Font style and anti-alias toggle
imagebutton auto "ui/abeezee_%s.png" xpos 320 ypos 135 focus_mask None action [StylePreference("font", "abeezee"), StylePreference("labeltextpos", "abeezee"), StylePreference("labelpos", "abeezee")] at font
imagebutton auto "ui/other_%s.png" xpos 392 ypos 135 focus_mask None action [StylePreference("font", "opendyslexia"), StylePreference("labeltextpos", "opendyslexia"), StylePreference("labelpos", "opendyslexia")] at font
imagebutton auto "ui/on_%s.png" xpos 406 ypos 161 focus_mask None action StylePreference("antialiasing", "on") at antialiason
imagebutton auto "ui/off_%s.png" xpos 425 ypos 160 focus_mask None action StylePreference("antialiasing", "off") at antialiasoff
# Transitions on/off
imagebutton auto "ui/showall_%s.png" xpos 521 ypos 133 focus_mask None action Preference("transitions", "all") at wintran
imagebutton auto "ui/shownone_%s.png" xpos 631 ypos 133 focus_mask None action Preference("transitions", "none") at wintran
# Skip all/seen
imagebutton auto "ui/allmessages_%s.png" xpos 52 ypos 221 focus_mask None action Preference("skip", "all") at skipsizechoices
imagebutton auto "ui/seenmessages_%s.png" xpos 188 ypos 221 focus_mask None action Preference("skip", "seen") at skipsizechoices
# Font size
imagebutton auto "ui/14_%s.png" xpos 344 ypos 221 focus_mask None action StylePreference ("size", "14") at skipsizechoices
imagebutton auto "ui/18_%s.png" xpos 380 ypos 221 focus_mask None action StylePreference ("size", "18") at skipsizechoices
imagebutton auto "ui/22_%s.png" xpos 416 ypos 221 focus_mask None action StylePreference ("size", "22") at skipsizechoices
# After choices
imagebutton auto "ui/stopskipping_%s.png" xpos 500 ypos 221 focus_mask None action Preference("after choices", "stop") at skipsizechoices
imagebutton auto "ui/keepskipping_%s.png" xpos 643 ypos 221 focus_mask None action Preference("after choices", "skip") at skipsizechoices
# Sliders
frame xpos 96 ypos 298:
style_group "pref"
has vbox
bar value Preference("auto-forward time") at automusic
frame xpos 456 ypos 298:
style_group "pref"
has vbox
bar value Preference("music volume") at automusic
frame xpos 96 ypos 355:
style_group "pref"
has vbox
bar value Preference("text speed") at textsound
frame xpos 456 ypos 355:
style_group "pref"
has vbox
bar value Preference("sound volume") at textsound
# Animations for preferences.
init -2:
transform settingsbase:
on show:
ypos 450
easein 0.5 ypos 0
transform settingslabels:
ypos 20 alpha 0.0
easein 0.5 ypos 0 alpha 1.0
on show:
ypos 20 alpha 0.0
pause 0.5
easein 0.5 ypos 0 alpha 1.0
transform wintran:
ypos 153 alpha 0.0
pause 0.2
easein 0.5 ypos 133 alpha 1.0
transform font:
ypos 155 alpha 0.0
pause 0.2
easein 0.5 ypos 135 alpha 1.0
transform antialiason:
ypos 181 alpha 0.0
pause 0.2
easein 0.5 ypos 161 alpha 1.0
transform antialiasoff:
ypos 180 alpha 0.0
pause 0.2
easein 0.5 ypos 160 alpha 1.0
transform skipsizechoices:
ypos 241 alpha 0.0
pause 0.4
easein 0.5 ypos 221 alpha 1.0
transform automusic:
alpha 0.0 ypos 20
pause 0.6
easein 0.5 ypos 0 alpha 1.0
transform textsound:
alpha 0.0 ypos 20
pause 0.8
easein 0.5 ypos 0alpha 1.0
Code: Select all
on show:Code: Select all
on show:Thanks!