fix: port mainMenu to the new Scene:start() API

This commit is contained in:
Kazhnuz 2021-01-30 09:18:59 +01:00
parent baa5a24ce6
commit 150aad86f1

View file

@ -34,8 +34,7 @@ local ExitWidget = TextMenu.baseWidgets.Base:extend()
local MENU_NAME = "mainMenu" local MENU_NAME = "mainMenu"
function MainMenu:new() function MainMenu:start()
MainMenu.super.new(self)
self.assets:batchImport("scenes.mainmenu.assets") self.assets:batchImport("scenes.mainmenu.assets")
print(self.assets:getFont("medium")) print(self.assets:getFont("medium"))
local menu = self:addMenu() local menu = self:addMenu()