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:
+3
-3
@@ -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() ] \
|
||||
] )
|
||||
|
||||
Reference in New Issue
Block a user