init 10: screen preferences(): tag menu use game_menu(_("Preferences"), scroll="viewport"): vbox: hbox: box_wrap True if renpy.variant("pc") or renpy.variant("web"): vbox: style_prefix "radio" label _("Display") textbutton _("Window") action Preference("display", "window") textbutton _("Fullscreen") action Preference("display", "fullscreen") vbox: style_prefix "radio" label _("Rollback Side") textbutton _("Disable") action Preference("rollback side", "disable") textbutton _("Left") action Preference("rollback side", "left") textbutton _("Right") action Preference("rollback side", "right") vbox: style_prefix "check" label _("Skip") textbutton _("Unseen Text") action Preference("skip", "toggle") textbutton _("After Choices") action Preference("after choices", "toggle") textbutton _("Transitions") action InvertSelected(Preference("transitions", "toggle")) vbox: style_prefix "radio" label _("Language") textbutton "English" action Language(None) textbutton "Spanish" action Language("spanish") null height (4 * gui.pref_spacing) hbox: style_prefix "slider" box_wrap True vbox: label _("Text Speed") bar value Preference("text speed") label _("Auto-Forward Time") bar value Preference("auto-forward time") vbox: if config.has_music: label _("Music Volume") hbox: bar value Preference("music volume") if config.has_sound: label _("Sound Volume") hbox: bar value Preference("sound volume") if config.sample_sound: textbutton _("Test") action Play("sound", config.sample_sound) if config.has_voice: label _("Voice Volume") hbox: bar value Preference("voice volume") if config.sample_voice: textbutton _("Test") action Play("voice", config.sample_voice) if config.has_music or config.has_sound or config.has_voice: null height gui.pref_spacing textbutton _("Mute All"): action Preference("all mute", "toggle") style "mute_all_button" init -1600 python: config.keymap = dict( spanish = [ 'z' ], english = [ 'x' ], skip = [ 'K_LCTRL', 'K_RCTRL', 'mousedown_6' ], stop_skipping = [ [ ], 'mouseup_6' ], ) init -1100 python: # The default keymap. We might also want to put some of this into # the launcher. _default_keymap = renpy.Keymap( rollback = renpy.rollback, screenshot = _screenshot, toggle_fullscreen = renpy.toggle_fullscreen, toggle_afm = _keymap_toggle_afm, toggle_skip = _keymap_toggle_skipping, fast_skip = _fast_skip, game_menu = _invoke_game_menu, hide_windows = renpy.curried_call_in_new_context("_hide_windows"), launch_editor = _launch_editor, reload_game = _reload_game, developer = _developer, quit = renpy.quit_event, iconify = renpy.iconify, help = _help, choose_renderer = renpy.curried_call_in_new_context("_choose_renderer"), console = _console.enter, profile_once = _profile_once, memory_profile = _memory_profile, self_voicing = Preference("self voicing", "toggle"), clipboard_voicing = Preference("clipboard voicing", "toggle"), debug_voicing = Preference("debug voicing", "toggle"), progress_screen = _progress_screen, director = director.Start(), performance = ToggleScreen("_performance"), accessibility = ToggleScreen("_accessibility"), spanish = Language("spanish"), english = Language("None"), ) config.underlay = [ _default_keymap ]