From c52200e9897ffc539774a797f78a44397d850696 Mon Sep 17 00:00:00 2001 From: Map Date: Sun, 13 Oct 2024 09:26:58 -0500 Subject: [PATCH] Fix mobile quick buttons not having alternate actions, incidentally fixing the gallery on mobile. Fix mobile gallery quick buttons not having translatable text --- game/screens.rpy | 3 ++- game/src/cg_gallery.rpy | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/game/screens.rpy b/game/screens.rpy index 7332834..0fe4494 100644 --- a/game/screens.rpy +++ b/game/screens.rpy @@ -1773,12 +1773,13 @@ style pref_vbox: ## that uses fewer and bigger buttons that are easier to touch. #redefine function -screen quick_button(filename, label, function): +screen quick_button(filename, label, function=NullAction(), function2=NullAction()): variant "mobile" button: xmaximum 124 ymaximum 124 action function + alternate function2 fixed: add filename xalign 0.5 yalign 0.5 zoom 1.75 text label xalign 0.5 yalign 0.5 size 42 style "quick_button_text" diff --git a/game/src/cg_gallery.rpy b/game/src/cg_gallery.rpy index 12c2f7c..c1426e1 100644 --- a/game/src/cg_gallery.rpy +++ b/game/src/cg_gallery.rpy @@ -197,7 +197,7 @@ screen view_movie(item, _origin): yalign 0.975 use quick_buttons("gui/button/uioptionbuttons/template_idle.png", [ - [ "Return", _origin ] + [ _("Return"), _origin, NullAction() ] ] ) @@ -229,6 +229,6 @@ screen view_image(item, _origin): yalign 0.975 use quick_buttons("gui/button/uioptionbuttons/template_idle.png", [ - [ "Return", _origin ] + [ _("Return"), _origin, NullAction() ] ] )