From 150aad86f1c6e645b102c1abacee4ef087a3cb19 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 30 Jan 2021 09:18:59 +0100 Subject: [PATCH] fix: port mainMenu to the new Scene:start() API --- examples/scenes/mainmenu/init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/scenes/mainmenu/init.lua b/examples/scenes/mainmenu/init.lua index 4a22c16..19ef439 100644 --- a/examples/scenes/mainmenu/init.lua +++ b/examples/scenes/mainmenu/init.lua @@ -34,8 +34,7 @@ local ExitWidget = TextMenu.baseWidgets.Base:extend() local MENU_NAME = "mainMenu" -function MainMenu:new() - MainMenu.super.new(self) +function MainMenu:start() self.assets:batchImport("scenes.mainmenu.assets") print(self.assets:getFont("medium")) local menu = self:addMenu()