






default persistent.save_naming = True


screen preferences():
    tag menu
    fixed:
        ysize 1080
        xsize 1920
        if renpy.showing("phone_contact_list_screen", "screens"):
            at blur_in_t(t = 0.1)
        else:
            at blur_out_t(t = 0.1)
        add persistent_a_cursor zoom 1.2

        imagemap:
            idle "gui/new_ui/settings_icon.png"
            xalign 0.113
            yalign 0.092
        textbutton _("SETTINGS"):
            style "shadow_text"
            text_style "shadow_text"
            xanchor 0.0
            xpos 300
            if _preferences.language == 'SimplifiedChinese' or _preferences.language == 'TraditionalChinese' or _preferences.language == 'Korean' or _preferences.language == 'Japanese':
                yalign 0.092
            else:
                yalign 0.1
        frame:
            background None
            if _preferences.language == 'SimplifiedChinese' or _preferences.language == 'TraditionalChinese' or _preferences.language == 'Korean' or _preferences.language == 'Japanese':
                xpos -128
                ypos -55
            if _preferences.language == 'TraditionalChinese':
                xpos -128
                ypos -55
            elif _preferences.language == 'Korean':
                xpos -128
                ypos -55
            elif _preferences.language == 'Russian':
                xpos -128
                ypos -55
            elif _preferences.language == 'Turkish':
                xpos -128
                ypos -55
            elif _preferences.language == 'Polish':
                xpos -128
                ypos -55
            elif _preferences.language == 'Japanese':
                xpos -128
                ypos -55
            else:
                xpos -128
                ypos -55
            textbutton _("DISPLAY"):
                style "glow_button"
                text_style "glow_button_text"
                xpos 420
                ypos 268
            if _preferences.language == 'French':
                textbutton _("SKIP"):
                    style "glow_button"
                    text_style "glow_button_text"
                    xpos 870
                    ypos 268
            elif _preferences.language == 'German':
                textbutton _("SKIP"):
                    style "glow_button"
                    text_style "glow_button_text"
                    xpos 800
                    ypos 268
            elif _preferences.language == 'BrazilianPortuguese':
                textbutton _("SKIP"):
                    style "glow_button"
                    text_style "glow_button_text"
                    xpos 880
                    ypos 268
            else:
                textbutton _("SKIP"):
                    style "glow_button"
                    text_style "glow_button_text"
                    xpos 890
                    ypos 268

            if _preferences.language == 'German':
                textbutton _("OTHERS"):
                    style "glow_button"
                    text_style "glow_button_text"
                    xpos 1400
                    ypos 268
            else:
                textbutton _("OTHERS"):
                    style "glow_button"
                    text_style "glow_button_text"
                    xpos 1300
                    ypos 268







            textbutton _("TEXT SPEED"):
                style "glow_button"
                text_style "glow_button_text_01x"
                xpos 425
                ypos 600

            textbutton _("MUSIC"):
                style "glow_button"
                text_style "glow_button_text_01x"
                xpos 900
                ypos 600

            textbutton _("AUTO FOWARD"):
                style "glow_button"
                text_style "glow_button_text_01x"
                xpos 420
                ypos 690

            textbutton _("SOUND"):
                style "glow_button"
                text_style "glow_button_text_01x"
                xpos 900
                ypos 690
            textbutton _("VOICE"):
                style "glow_button"
                text_style "glow_button_text_01x"
                xpos 900
                ypos 780








        use game_menu(_("SETTINGS"), scroll="viewport"):

            vbox:

                hbox:
                    box_wrap True

                    if True:

                        vbox:
                            if _preferences.language == 'French':
                                xpos 240
                                ypos 75
                            else:
                                xpos 250
                                ypos 75
                            style_prefix "radio"
                            style "glow_button_text"
                            spacing -20

                            use _main_menu_button(_("WINDOW"), Preference("display", "any window"), -23, "#7455f0", None, (0.0, 0.5))
                            use _main_menu_button(_("FULLSCREEN"), Preference("display", "fullscreen"), -23, "#7455f0", None, (0.0, 0.5))

                    vbox:
                        style_prefix "check"
                        spacing -20
                        ypos 130
                        if _preferences.language == 'BrazilianPortuguese':
                            xpos 185
                            ypos 75
                        elif _preferences.language == 'Spanish':
                            xpos 205
                            ypos 75
                        elif _preferences.language == 'LatamSpanish':
                            xpos 205
                            ypos 75
                        elif _preferences.language == 'German':
                            xpos 118
                            ypos 75
                        elif _preferences.language == 'French':
                            xpos 178
                            ypos 75
                        else:
                            xpos 185
                            ypos 75
                        use _main_menu_button(_("UNSEEN TEXT"), Preference("skip", "toggle"), -23, "#7455f0", None, (0.0, 0.5))
                        use _main_menu_button(_("AFTER CHOICES"), Preference("after choices", "toggle"), -23, "#7455f0", None, (0.0, 0.5))
                        use _main_menu_button(_("TRANSITIONS"), InvertSelected(Preference("transitions", "toggle")), -23, "#7455f0", None, (0.0, 0.5))

                    vbox:
                        style_prefix "check"
                        spacing -20
                        if _preferences.language == 'BrazilianPortuguese':
                            xpos 143
                            ypos 75
                        elif _preferences.language == 'Spanish':
                            xpos 163
                            ypos 75
                        elif _preferences.language == 'French':
                            xpos 143
                            ypos 75
                        elif _preferences.language == 'LatamSpanish':
                            xpos 163
                            ypos 75
                        elif _preferences.language == 'German':
                            xpos 253
                            ypos 75

                        else:
                            xpos 123
                            ypos 75
                        ypos 130
                        if _preferences.language == "BrazilianPortuguese":
                            use _main_menu_button(_("NAMING SAVES"), ToggleField(persistent, "save_naming", True, False), -23, "#7455f0", None, (0.0, 0.5))
                        else:
                            use _main_menu_button(_("NAMING SAVES"), ToggleField(persistent, "save_naming", True, False), -23, "#7455f0", None, (0.0, 0.5))
                        if main_menu:
                            use _main_menu_button(_("CHANGE DEFAULT NAMES"), Show("phone_contact_list_screen", None, True, False, True), -23, "#7455f0", None, (0.0, 0.5))






                null height (4 * gui.pref_spacing)

                hbox:
                    xpos 92
                    ypos 62
                    style_prefix "slider"


                    vbox:
                        spacing -22
                        use _main_menu_button(_(" "), None, -12, fixed_xsize=None, _align=(-0.05, 0.5))

                        bar value Preference("text speed") xsize 400

                        use _main_menu_button(_(" "), None, -12, fixed_xsize=None, _align=(-0.05, 0.5))

                        bar value Preference("auto-forward time") xsize 400



                    vbox:
                        xpos -200
                        spacing -22
                        if config.has_music:
                            use _main_menu_button(_(" "), None, -12, fixed_xsize=None, _align=(-0.05, 0.5))

                            hbox:
                                xsize 400
                                bar value Preference("music volume") xsize 400

                        if config.has_sound:

                            use _main_menu_button(_(" "), None, -12, fixed_xsize=None, _align=(-0.05, 0.5))
                            hbox:
                                xsize 400
                                bar value Preference("sound volume") xsize 400

                                if config.sample_sound:
                                    textbutton _("Test") action Play("sound", config.sample_sound)
                            use _main_menu_button(_(" "), None, -12, fixed_xsize=None, _align=(-0.05, 0.5))
                            hbox:

                                xsize 400
                                bar value Preference("voice volume") xsize 400
                        hbox:
                            ypos 30
                            textbutton _("Toggle Sound") action [
                                SetVariable("sfx_on", not sfx_on),
                                SetMixer("sfx", If(sfx_on, 1.0, 0.0))
                            ]

                            textbutton _("Toggle Voice") action [
                                SetVariable("voice_on", not voice_on),
                                SetMixer("voice", If(voice_on, 1.0, 0.0))
                            ]






















style pref_label is gui_label
style pref_label_text is gui_label_text
style pref_vbox is vbox

style radio_label is pref_label
style radio_label_text is pref_label_text
style radio_button is gui_button
style radio_button_text is gui_button_text
style radio_vbox is pref_vbox

style check_label is pref_label
style check_label_text is pref_label_text
style check_button is gui_button
style check_button_text is gui_button_text
style check_vbox is pref_vbox

style slider_label is pref_label
style slider_label_text is pref_label_text
style slider_slider is gui_slider
style slider_button is gui_button
style slider_button_text is gui_button_text
style slider_pref_vbox is pref_vbox

style mute_all_button is check_button
style mute_all_button_text is check_button_text

style pref_label:
    top_margin gui.pref_spacing
    bottom_margin 3

style pref_label_text:
    yalign 1.0

style pref_vbox:
    xsize 338

style radio_vbox:
    spacing gui.pref_button_spacing

style radio_button:
    ysize 56
    properties gui.button_properties("radio_button")
    foreground "gui/button/radio_[prefix_]foreground.png"

style radio_button_text:
    properties gui.button_text_properties("radio_button")

style check_vbox:
    spacing gui.pref_button_spacing

style check_button:
    ysize 56
    properties gui.button_properties("check_button")
    foreground "gui/button/check_[prefix_]foreground.png"

style check_button_text:
    properties gui.button_text_properties("check_button")

style mute_all_button:
    foreground "gui/button/check_[prefix_]foreground.png"

style slider_slider:
    xsize 525

style slider_button:
    properties gui.button_properties("slider_button")
    yalign 0.5
    left_margin 15

style slider_button_text:
    properties gui.button_text_properties("slider_button")

style slider_vbox:
    xsize 675
return
# Decompiled by unrpyc: https://github.com/CensoredUsername/unrpyc
