diff --git a/data/cdata/ui_scripts/settings/language.lua b/data/cdata/ui_scripts/settings/language.lua index fcaa4a8a..53964214 100644 --- a/data/cdata/ui_scripts/settings/language.lua +++ b/data/cdata/ui_scripts/settings/language.lua @@ -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 }) @@ -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), Height = scale(56) } -end \ No newline at end of file +end