mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-01-22 09:16:56 +01:00
Fix mobile quick buttons not having alternate actions, incidentally fixing the gallery on mobile.
Fix mobile gallery quick buttons not having translatable text
This commit is contained in:
parent
213adc1d8d
commit
c52200e989
2 changed files with 4 additions and 3 deletions
|
@ -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"
|
||||
|
|
|
@ -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() ]
|
||||
] )
|
||||
|
||||
|
|
Loading…
Reference in a new issue