fix(textmenu): better scene loading

This commit is contained in:
Kazhnuz 2022-08-10 19:16:22 +02:00
parent 4722b734ed
commit de08fbd56b

View file

@ -66,7 +66,7 @@ function TextMenu:generateSubmenu(pageName, label, parent, list, func, backWidge
end end
function TextMenu:setFont(fontName) function TextMenu:setFont(fontName)
local scene = core.scenemanager.currentScene local scene = core.scenemanager.nextScene or core.scenemanager.currentScene
self.font = scene.assets:getFont(fontName) self.font = scene.assets:getFont(fontName)
end end