fix(textmenu): better scene loading
This commit is contained in:
parent
4722b734ed
commit
de08fbd56b
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ function TextMenu:generateSubmenu(pageName, label, parent, list, func, backWidge
|
|||
end
|
||||
|
||||
function TextMenu:setFont(fontName)
|
||||
local scene = core.scenemanager.currentScene
|
||||
local scene = core.scenemanager.nextScene or core.scenemanager.currentScene
|
||||
self.font = scene.assets:getFont(fontName)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue