put in nobreaks to quick text button

Originally for the japanese translation in Wani, putting it here as well so people can control when the text line breaks
This commit is contained in:
Map
2026-09-03 10:56:53 -05:00
parent 9a97bbfdc0
commit 171051a64b
+3 -3
View File
@@ -271,7 +271,7 @@ screen quick_button(filename, label, function=NullAction(), function2=NullAction
activate_sound "audio/ui/uiClick.wav"
fixed:
add filename xalign 0.5 yalign 0.5 zoom 1
text label xalign 0.5 yalign 0.5 size 22 style "quick_button_text"
text label xalign 0.5 yalign 0.5 size 22 style "quick_button_text" layout "nobreak"
# label_functions is [ [ "label", function() ], [ "foobar", foobar() ], .. ]
# Reuse the same image string and keep things 'neat'.
@@ -1813,7 +1813,7 @@ screen quick_button(filename, label, function=NullAction(), function2=NullAction
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"
text label xalign 0.5 yalign 0.5 size 42 style "quick_button_text" layout "nobreak"
screen quick_menu():
variant "mobile"
@@ -1827,7 +1827,7 @@ screen quick_menu():
use quick_buttons("gui/button/uioptionbuttons/template_idle.png", \
[ \
[ _("Back"), Rollback(), NullAction()], \
[ _("Skip"), Skip(), Skip(fast=True, confirm=True) ], \
[ _("Skip sdfsdf df sdfs d"), Skip(), Skip(fast=True, confirm=True) ], \
[ _("Auto"), Preference("auto-forward", "toggle"), NullAction() ], \
[ _("Menu"), ShowMenu(), NullAction() ] \
] )