From 95191306139c85d6a332fb6075bd6c1b286b2ff3 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Fri, 22 Mar 2019 17:45:22 +0100 Subject: [PATCH] examples/menus: test switchMenu --- examples/test_menus/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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