From d96b9743d3c5f8b80f73e831d052982ba9a8d433 Mon Sep 17 00:00:00 2001 From: LoafyLemon Date: Sun, 30 Apr 2023 00:31:14 +0100 Subject: [PATCH] Bug fixes * Fixed styling issues in preference menus --- game/scripts/gui/main_menu.rpy | 2 +- game/scripts/gui/preferences.rpy | 36 ++++++++++++++++++-------------- 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/game/scripts/gui/main_menu.rpy b/game/scripts/gui/main_menu.rpy index 2c88d5fd..2f1480cd 100644 --- a/game/scripts/gui/main_menu.rpy +++ b/game/scripts/gui/main_menu.rpy @@ -169,7 +169,7 @@ screen game_menu(title, scroll=None, yinitial=0.0): use navigation(title) - label title anchor (0.5, 0.5) align (0.86, 0.15) + label title anchor (0.5, 0.5) align (0.9, 0.15) if main_menu and not title == "Updater": key "game_menu" action ShowMenu("main_menu") diff --git a/game/scripts/gui/preferences.rpy b/game/scripts/gui/preferences.rpy index 5385f23a..18a7a639 100644 --- a/game/scripts/gui/preferences.rpy +++ b/game/scripts/gui/preferences.rpy @@ -226,8 +226,11 @@ screen preferences_sound(): screen preferences_accessibility(): - text "Disclaimer" size 18 xalign 0.5 - text "These menu options are intended to improve accessibility and may not work well in all cases where text might overflow. When changing font, text size or spacing try to keep it close to the default size." size 14 + vbox: + text "Disclaimer" size 18 xalign 0.5 + hbox: + xmaximum 731 + text "These menu options are intended to improve accessibility and may not work well in all cases where text might overflow. When changing font, text size or spacing try to keep it close to the default size." size 14 hbox: box_wrap True @@ -270,7 +273,8 @@ screen preferences_accessibility(): textbutton "Large" action Preference("font line spacing", 1.2) textbutton "V. Large" action Preference("font line spacing", 1.4) - if not renpy.mobile: + if not renpy.mobile: + hbox: vbox: style_prefix gui.theme("check") @@ -441,19 +445,19 @@ style slider_vbox is pref_vbox: xsize 320 screen _self_voicing(): - zorder 1500 + 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.") + 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 "" + text message: + alt "" - xpos 10 - ypos 35 - color "#fff" - outlines [ (1, "#0008", 0, 0)] + xpos 10 + ypos 35 + color "#fff" + outlines [ (1, "#0008", 0, 0)]