2022-05-16 23:48:22 +00:00
init offset = -1
2024-06-14 15:34:50 +00:00
screen settings_general():
2024-06-01 19:46:53 +00:00
frame style "navigation_page_left":
2022-05-16 23:48:22 +00:00
vbox:
2024-06-01 19:46:53 +00:00
label _("General")
vbox:
style_prefix "navigation_checkbox"
2022-05-16 23:48:22 +00:00
2024-06-01 19:46:53 +00:00
textbutton _("Tutorials") action settings.Toggle("tutorials")
2022-05-16 23:48:22 +00:00
2024-06-01 19:46:53 +00:00
if not renpy.mobile:
textbutton _("Tooltips") action settings.Toggle("tooltip") tooltip _("This is a tooltip.")
textbutton _("System Cursor") action Preference("system cursor", "toggle")
textbutton _("Autosaves") action ToggleField(store, "_autosave")
textbutton _("Automatic Update Checks") action settings.Toggle("updates")
2024-09-13 18:52:19 +00:00
textbutton _("Kinetic Text") action settings.Toggle("kinetictext") tooltip "{bounce}{size=12}Kinetic Text Example.{/size}{/bounce}"
2022-05-16 23:48:22 +00:00
2024-06-01 19:46:53 +00:00
text _("Skipping")
textbutton _("Skip Unseen Text") action Preference("skip", "toggle")
2024-06-07 16:19:57 +00:00
textbutton _("Skip Until dialog menu") action InvertSelected(Preference("after choices", "toggle"))
2022-05-16 23:48:22 +00:00
2024-06-01 19:46:53 +00:00
text _("Text Speed")
bar value Preference("text speed") style "navigation_bar"
2022-05-16 23:48:22 +00:00
2024-06-01 19:46:53 +00:00
text _("Auto-Forward Time")
bar value Preference("auto-forward time") style "navigation_bar"
2022-05-16 23:48:22 +00:00
2024-06-01 19:46:53 +00:00
textbutton _("Power-saving") action Preference("gl powersave", "toggle")
2024-06-17 18:43:08 +00:00
textbutton _("multithreading") action settings.Toggle("multithreading") tooltip "Improves performance by executing tasks asynchronously. (Requires restart)"
2024-06-01 19:46:53 +00:00
frame style "navigation_page_right":
2024-06-13 22:35:42 +00:00
if settings.get("tooltip"):
add "doodle_hermione" align (0.5, 0.5)
else:
add "doodle_hermione2" align (0.5, 0.5)
2024-06-14 15:34:50 +00:00
screen settings_display():
2024-06-01 19:46:53 +00:00
frame style "navigation_page_left":
vbox:
label _("Display")
2023-03-24 19:16:22 +00:00
if renpy.variant("pc") or renpy.variant("web"):
vbox:
2024-06-01 19:46:53 +00:00
style_prefix "navigation_radio"
2023-03-24 19:16:22 +00:00
textbutton _("Fullscreen") action Preference("display", "fullscreen")
textbutton _("Windowed") action Preference("display", "any window")
2024-06-01 19:46:53 +00:00
textbutton _("Tearing") action [ ToggleField(_preferences, "gl_tearing"), _DisplayReset() ] style "navigation_checkbox_button"
textbutton _("Reset Window size"):
style "navigation_button"
action Preference("display", "window")
sensitive (renpy.get_physical_size() != (config.screen_width, config.screen_height) and not preferences.fullscreen)
2022-05-16 23:48:22 +00:00
2024-06-15 16:02:56 +00:00
default fps_msg = _("Framerate preference may take effect after restarting the game")
2022-05-16 23:48:22 +00:00
2024-06-01 19:46:53 +00:00
text _("Framerate")
hbox:
style_prefix "navigation_radio"
2024-06-15 16:02:56 +00:00
textbutton _("30 FPS") action [Preference("gl framerate", 30), Notify(fps_msg)]
2024-06-01 19:46:53 +00:00
if renpy.get_refresh_rate() >= 60:
2024-06-15 16:02:56 +00:00
textbutton _("60 FPS") action [Preference("gl framerate", 60), Notify(fps_msg)]
textbutton (_(f"{int(renpy.get_refresh_rate())} FPS")) action [Preference("gl framerate", None), Notify(fps_msg)]
2022-05-16 23:48:22 +00:00
2024-06-01 19:46:53 +00:00
if not renpy.variant("web"):
2023-03-24 19:16:22 +00:00
default renderer_used = renpy.get_renderer_info()["renderer"]
2024-06-01 19:46:53 +00:00
text _("Renderer")
hbox:
style_prefix "navigation_radio"
textbutton _("OpenGL"):
selected renderer_used == "gl2"
2024-06-15 16:02:56 +00:00
action Confirm(_("Changing renderer requires a full restart, do it now?\nUnsaved progress will be lost."), Function(set_renderer, "gl2"))
2024-06-01 19:46:53 +00:00
textbutton _("DirectX"):
sensitive renpy.windows
selected renderer_used == "angle2"
2024-06-15 16:02:56 +00:00
action Confirm(_("Changing renderer requires a full restart, do it now?\nUnsaved progress will be lost."), Function(set_renderer, "angle2"))
2024-06-01 19:46:53 +00:00
text _("Image cache ([persistent.custom_settings['image_cache_size']]MB)")
bar value DictValue(persistent.custom_settings, "image_cache_size", range=1792, max_is_zero=False, style="navigation_bar", offset=256, step=128, force_step=True, action=Notify(_("Restart the game to apply image cache size changes."))) tooltip _("Improves performance at a cost of higher memory usage.")
null height 35
text get_gpu_info() yalign 1.0 size 12
frame style "navigation_page_right":
2024-06-22 12:40:33 +00:00
add "doodle_brewing" align (0.5, 0.5)
2022-05-16 23:48:22 +00:00
2024-06-14 15:34:50 +00:00
screen settings_audio():
2024-06-01 19:46:53 +00:00
frame style "navigation_page_left":
2022-05-16 23:48:22 +00:00
vbox:
2024-06-01 19:46:53 +00:00
label _("Audio")
2022-05-16 23:48:22 +00:00
2024-06-01 19:46:53 +00:00
text _("Music Volume")
bar value Preference("music volume") style "navigation_bar"
2022-05-16 23:48:22 +00:00
2024-06-01 19:46:53 +00:00
text _("Sound Volume")
bar value Preference("sound volume") style "navigation_bar"
2022-05-16 23:48:22 +00:00
2024-06-01 19:46:53 +00:00
text _("Weather Volume")
bar value Preference("weather volume") style "navigation_bar"
2022-05-16 23:48:22 +00:00
2024-06-01 19:46:53 +00:00
# label _("Voice Volume")
# hbox:
# bar value Preference("voice volume")
# if config.sample_voice:
# textbutton _("Test") action Play("voice", config.sample_voice)
2022-05-16 23:48:22 +00:00
2024-06-01 19:46:53 +00:00
textbutton _("Mute All"):
action Preference("all mute", "toggle")
style "navigation_checkbox_button"
2022-05-16 23:48:22 +00:00
2024-06-01 19:46:53 +00:00
textbutton _("Mute when minimized"):
action Preference("audio when minimized", "toggle")
selected (not _preferences.audio_when_minimized)
style "navigation_checkbox_button"
2024-06-13 22:35:42 +00:00
add "doodle_owl" align (0.5, 0.9)
2024-06-01 19:46:53 +00:00
frame style "navigation_page_right":
2024-06-13 22:35:42 +00:00
add "doodle_letter" align (0.5, 0.5)
2022-06-16 17:46:57 +00:00
2024-06-14 15:34:50 +00:00
screen settings_other():
2024-06-01 19:46:53 +00:00
frame style "navigation_page_left":
2022-05-16 23:48:22 +00:00
vbox:
2024-06-07 16:19:57 +00:00
label _("Other")
2022-05-16 23:48:22 +00:00
2024-06-01 19:46:53 +00:00
text _("Text Font")
vbox:
style_prefix "navigation_radio"
2022-05-16 23:48:22 +00:00
2024-06-01 19:46:53 +00:00
textbutton _("Default"):
action Preference("font transform", None)
2022-05-16 23:48:22 +00:00
2024-06-01 19:46:53 +00:00
textbutton _("DejaVu Sans"):
action Preference("font transform", "dejavusans")
2022-05-16 23:48:22 +00:00
2024-06-01 19:46:53 +00:00
textbutton _("Opendyslexic"):
action Preference("font transform", "opendyslexic")
2022-05-16 23:48:22 +00:00
2024-06-01 19:46:53 +00:00
text _("Text Scaling")
2022-05-16 23:48:22 +00:00
hbox:
2024-06-01 19:46:53 +00:00
style_prefix "navigation_radio"
2022-05-16 23:48:22 +00:00
2024-06-15 16:02:56 +00:00
textbutton _("Small") action Preference("font size", 0.8)
textbutton _("Default") action Preference("font size", 1.0)
textbutton _("Large") action Preference("font size", 1.2)
2022-05-16 23:48:22 +00:00
2024-06-01 19:46:53 +00:00
text _("Vertical Text Spacing")
2022-05-16 23:48:22 +00:00
hbox:
2024-06-01 19:46:53 +00:00
style_prefix "navigation_radio"
2022-05-16 23:48:22 +00:00
2024-06-15 16:02:56 +00:00
textbutton _("Small") action Preference("font line spacing", 0.8)
textbutton _("Default") action Preference("font line spacing", 1.0)
textbutton _("Large") action Preference("font line spacing", 1.2)
2022-05-16 23:48:22 +00:00
2024-06-01 19:46:53 +00:00
if not renpy.mobile:
vbox:
style_prefix "navigation_checkbox"
2022-05-16 23:48:22 +00:00
2024-06-01 19:46:53 +00:00
textbutton _("Text-to-speech"):
action Preference("self voicing", "toggle")
2022-05-16 23:48:22 +00:00
2024-06-01 19:46:53 +00:00
text _("Text-to-speech Accentuation")
bar value Preference("self voicing volume drop") style "navigation_bar"
2022-05-16 23:48:22 +00:00
2024-06-01 19:46:53 +00:00
text _("Advanced")
vbox:
2024-06-15 16:02:56 +00:00
textbutton _("Delete persistent data ({color=#f00}!{/color})") action Confirm(gui.CONFIRM_DELETE_PERSISTENT, Function(delete_persistent))
textbutton _("Delete save files ({color=#f00}!{/color})") action Confirm(gui.CONFIRM_DELETE_SAVES, Function(delete_saves))
2024-06-01 19:46:53 +00:00
frame style "navigation_page_right":
2024-06-13 22:35:42 +00:00
add "doodle_glasses" align (0.5, 0.1)
2024-06-06 19:25:13 +00:00
frame style "navigation_note":
xysize (180, 180)
2024-06-13 22:35:42 +00:00
pos (20, 130)
2024-06-06 19:25:13 +00:00
at transform:
rotate 6
2024-06-15 16:02:56 +00:00
text _("TIP: If text overflows, try reducing vertical text spacing.")
2024-06-06 19:25:13 +00:00
frame style "navigation_note":
xysize (180, 180)
2024-06-13 22:35:42 +00:00
pos (25, 230)
2024-06-06 19:25:13 +00:00
at transform:
rotate -4
2024-06-15 16:02:56 +00:00
text _("You could also try changing the font, it might help! :)")
2022-05-16 23:48:22 +00:00
2024-06-15 16:02:56 +00:00
define gui.CONFIRM_DELETE_PERSISTENT = _("""{color=#7a0000}Warning!{/color}
2022-05-16 23:48:22 +00:00
{size=-4}You are about to reset all persistent data, including
achievements, seen text, and preferences.{/size}\n
2024-06-15 16:02:56 +00:00
Are you sure?""")
2022-05-16 23:48:22 +00:00
2024-06-15 16:02:56 +00:00
define gui.CONFIRM_DELETE_SAVES = _("""{color=#7a0000}Warning!{/color}
2022-05-16 23:48:22 +00:00
{size=-4}You are about to delete all save files, including
auto saves, quick saves, and manual saves.{/size}\n
2024-06-15 16:02:56 +00:00
Are you sure?""")
2022-05-16 23:48:22 +00:00
2024-06-15 16:02:56 +00:00
define gui.SAVE_INCOMPATIBLE_WARNING = _("""{color=#7a0000}Warning!{/color}
2024-03-26 19:31:41 +00:00
{size=-4}The save file you are attempting to load is not compatible
with the current game version. While you can try loading it,
doing so may result in unexpected crashes and bugs.
2023-07-04 18:43:37 +00:00
2024-06-15 16:02:56 +00:00
Proceed anyway?""")
2023-07-04 18:43:37 +00:00
2022-05-16 23:48:22 +00:00
init python:
def delete_persistent():
renpy.loadsave.location.unlink_persistent()
renpy.persistent.should_save_persistent = False
renpy.quit(relaunch=True)
def delete_saves():
for fn in renpy.list_saved_games(fast=True):
renpy.unlink_save(fn)
def set_renderer(s):
preferences.renderer = s if s in ("gl2", "angle2") else "auto"
renpy.quit(relaunch=True)
screen _self_voicing():
2024-06-14 15:34:50 +00:00
layer "interface"
2023-04-29 23:31:14 +00:00
zorder 1500
if _preferences.self_voicing == "clipboard":
$ message = _("Clipboard voicing enabled. Press 'shift+C' to disable.")
elif _preferences.self_voicing == "debug":
$ message = _("Text-to-speech would say \"[renpy.display.tts.last]\". Press 'alt+shift+V' to disable.")
else:
$ message = _("Text-to-speech enabled. Press 'shift+v' to disable.")
text message:
alt ""
xpos 10
ypos 35
color "#fff"
outlines [ (1, "#0008", 0, 0)]