Small fix

This commit is contained in:
Federico Cecchetto 2022-09-06 01:33:27 +02:00
parent 59d94d6c96
commit e41f6e8cd1

View File

@ -41,6 +41,7 @@ LUI.MenuBuilder.registerType("choose_language_menu", function(a1)
}) })
local languages = Engine.GetSupportedLanguages() local languages = Engine.GetSupportedLanguages()
local originalfont = LUI.MenuGenericButtons.ButtonLabelFont.Font
for i = 1, #languages do for i = 1, #languages do
local id = languages[i].id local id = languages[i].id
@ -63,6 +64,8 @@ LUI.MenuBuilder.registerType("choose_language_menu", function(a1)
label:setText(Engine.ToUpperCase(languages[i].name)) label:setText(Engine.ToUpperCase(languages[i].name))
end end
LUI.MenuGenericButtons.ButtonLabelFont.Font = originalfont
LUI.Options.InitScrollingList(menu.list, nil, { LUI.Options.InitScrollingList(menu.list, nil, {
rows = 10 rows = 10
}) })
@ -134,4 +137,4 @@ if (lang == 5 or lang == 6 or lang == 12 or lang == 13 or lang == 17) then
Font = RegisterFont("fonts/bank.ttf", 56), Font = RegisterFont("fonts/bank.ttf", 56),
Height = scale(56) Height = scale(56)
} }
end end