fix: port mainMenu to the new Scene:start() API
This commit is contained in:
parent
baa5a24ce6
commit
150aad86f1
1 changed files with 1 additions and 2 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue