removed dummy vars and removed custom togglers toggling, also accidentally added junk files, sry

This commit is contained in:
Nio 2021-08-08 02:13:30 +10:00
parent 16e8e5a72a
commit 61dc7dd796
1 changed files with 11 additions and 11 deletions

View File

@ -25,42 +25,42 @@ init python:
renpy.play("audio/ui/uiOptionOff.wav")
else:
renpy.play("audio/ui/uiOptionOn.wav")
persistent.autoup = not persistent.autoup
# persistent.autoup = not persistent.autoup
def ToggleLewd():
if persistent.lewd == True:
renpy.play("audio/ui/uiOptionOff.wav")
else:
renpy.play("audio/ui/uiOptionOn.wav")
persistent.lewd = not persistent.lewd
# persistent.lewd = not persistent.lewd
def ToggleScroll():
if persistent.scroll == True:
renpy.play("audio/ui/uiOptionOff.wav")
else:
renpy.play("audio/ui/uiOptionOn.wav")
persistent.scroll = not persistent.scroll
# persistent.scroll = not persistent.scroll
def ToggleSkip():
if preferences.skip_unseen == True:
renpy.play("audio/ui/uiOptionOff.wav")
else:
renpy.play("audio/ui/uiOptionOn.wav")
preferences.skip_unseen = not preferences.skip_unseen
# preferences.skip_unseen = not preferences.skip_unseen
def ToggleAfterChoices():
if preferences.skip_after_choices == True:
renpy.play("audio/ui/uiOptionOff.wav")
else:
renpy.play("audio/ui/uiOptionOn.wav")
preferences.skip_after_choices = not preferences.skip_after_choices
# preferences.skip_after_choices = not preferences.skip_after_choices
def ToggleTransitions():
if preferences.transitions == True:
renpy.play("audio/ui/uiOptionOff.wav")
else:
renpy.play("audio/ui/uiOptionOn.wav")
preferences.transitions = not preferences.transitions
# preferences.transitions = not preferences.transitions
# def ToggleMuteAll():
# if preferences.all_mute == True:
@ -940,20 +940,20 @@ screen preferences():
vbox:
style_prefix "check"
label _("Naughty Stuff")
textbutton _("Enable Lewd Images") action [ToggleVariable("persistent.dummylewd", True, False), Function(ToggleLewd)]
textbutton _("Enable Lewd Images") action [Function(ToggleLewd), ToggleVariable("persistent.lewd", True, False)]
vbox:
style_prefix "check"
label _("Requires Restart")
textbutton _("Enable Forward-Scroll Movement") action [ToggleVariable("persistent.dummyscroll", True, False), Function(ToggleScroll)]
textbutton _("Enable Forward-Scroll Movement") action [Function(ToggleScroll), ToggleVariable("persistent.scroll", True, False)]
vbox:
style_prefix "check"
label _("Skip")
textbutton _("Unseen Text") action [ToggleVariable("persistent.dummyunseentext", True, False), Function(ToggleSkip)]
textbutton _("After Choices") action [ToggleVariable("persistent.dummyafterchoices", True, False), Function(ToggleAfterChoices)]
textbutton _("Transitions") action [ToggleVariable("persistent.dummytransitions", True, False), InvertSelected(Function(ToggleTransitions))]
textbutton _("Unseen Text") action [Function(ToggleSkip), ToggleVariable("preferences.skip_unseen", True, False)]
textbutton _("After Choices") action [Function(ToggleAfterChoices), ToggleVariable("preferences.skip_after_choices", True, False)]
textbutton _("Transitions") action [InvertSelected(Function(ToggleTransitions)), ToggleVariable("preferences.transitions", True, False)]
## Additional vboxes of type "radio_pref" or "check_pref" can be
## added here, to add additional creator-defined preferences.