From 578310ad7151b1e130c1bd4363ab212372b73bcc Mon Sep 17 00:00:00 2001 From: LoafyLemon Date: Wed, 26 Jun 2024 16:23:32 +0100 Subject: [PATCH] Reimplement hide interface hotkey and allow hiding choice menus as well as the say screen --- game/scripts/gui/say.rpy | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/game/scripts/gui/say.rpy b/game/scripts/gui/say.rpy index a46d5430..198580d0 100644 --- a/game/scripts/gui/say.rpy +++ b/game/scripts/gui/say.rpy @@ -69,7 +69,6 @@ screen say(who, what, side_doll=None, icon=None): add SideImage() screen hider(): - variant "pc" if states.settings.interface_hidden: button action ToggleVariable("states.settings.interface_hidden", True, False) style "empty" @@ -84,8 +83,6 @@ default states.settings.interface_hidden = False default states.settings.interface_alpha = 0.5 screen quickbox(): - variant "pc" - window: id "quickbox" style "quickbox" @@ -94,7 +91,7 @@ screen quickbox(): hbox: xalign 1.0 if states.settings.quickbox_expanded: - textbutton "󰈉" action ToggleVariable("states.settings.interface_hidden", True, False) tooltip _("Hide Interface") # Hide Interface (\F0209) + textbutton "󰈉" action ToggleVariable("states.settings.interface_hidden", True, False) tooltip _("Hide Interface") keysym "K_h" # Hide Interface (\F0209) textbutton "󰇚" action QuickSave() tooltip _("Quick Save") # File Save (\F01DA) textbutton "󰕒" action QuickLoad() tooltip _("Quick Load") # File Load (\F0552) textbutton "󰁪" action Preference("auto-forward", "toggle") tooltip _("Auto-Forward Dialogue") # Autoplay (\F18F2) @@ -166,7 +163,15 @@ screen choice(items): default has_icons = any(x is not None for x in [e.kwargs.get("icon", None) for e in items]) default columns = math.ceil(len(items) / 12) + key "K_h" action ToggleVariable("states.settings.interface_hidden", True, False) + + if states.settings.interface_hidden: + use hider + hbox: + if states.settings.interface_hidden: + yoffset 1000 + at gui_choice_show_hide for column in range(columns): vbox: