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 originalfont = LUI.MenuGenericButtons.ButtonLabelFont.Font
for i = 1, #languages do
local id = languages[i].id
@ -63,6 +64,8 @@ LUI.MenuBuilder.registerType("choose_language_menu", function(a1)
label:setText(Engine.ToUpperCase(languages[i].name))
end
LUI.MenuGenericButtons.ButtonLabelFont.Font = originalfont
LUI.Options.InitScrollingList(menu.list, nil, {
rows = 10
})