diff --git a/examples/test_menus/init.lua b/examples/test_menus/init.lua index 77ac6ec..c270b8e 100644 --- a/examples/test_menus/init.lua +++ b/examples/test_menus/init.lua @@ -126,11 +126,12 @@ function MenuWidget:new(scene, menu, newmenu) self.scene = scene local widgetmenu = self.scene.menusystem.menus[menu] local font = self.scene.assets.fonts["medium"] + self.newmenu = newmenu MenuWidget.super.new(self, widgetmenu, font, newmenu) end function MenuWidget:action() - + self.scene.menusystem:switchMenu(self.newmenu) end return TestScene