From 902dfa0d95c54795305707cadae9059cac46f9b0 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Tue, 12 Feb 2019 18:05:50 +0100 Subject: [PATCH] scenes/test: test a second menu --- sonic-boost.love/scenes/test_scene/init.lua | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/sonic-boost.love/scenes/test_scene/init.lua b/sonic-boost.love/scenes/test_scene/init.lua index 8f92495..4125af5 100644 --- a/sonic-boost.love/scenes/test_scene/init.lua +++ b/sonic-boost.love/scenes/test_scene/init.lua @@ -25,6 +25,7 @@ local Scene = require "core.modules.scenes" local TestScene = Scene:extend() local MenuType = require "core.modules.menusystem.listbox" +local MenuType2 = require "core.modules.menusystem.flowbox" local Widget = require "core.modules.menusystem.widgets" @@ -35,11 +36,23 @@ function TestScene:new() self:register() - MenuType(self.menusystem, "testMenu1", 32, 32, 100, 200, 4) + MenuType(self.menusystem, "testMenu1", 32, 32, 100, 24*8, 4) Widget.Base(self.menusystem.menus["testMenu1"]) Widget.Base(self.menusystem.menus["testMenu1"]) Widget.Base(self.menusystem.menus["testMenu1"]) Widget.Base(self.menusystem.menus["testMenu1"]) + + MenuType2(self.menusystem, "testMenu2", 164, 32, 24*8, 24*8, 8, 8) + Widget.Base(self.menusystem.menus["testMenu2"]) + Widget.Base(self.menusystem.menus["testMenu2"]) + Widget.Base(self.menusystem.menus["testMenu2"]) + Widget.Base(self.menusystem.menus["testMenu2"]) + Widget.Base(self.menusystem.menus["testMenu2"]) + Widget.Base(self.menusystem.menus["testMenu2"]) + Widget.Base(self.menusystem.menus["testMenu2"]) + Widget.Base(self.menusystem.menus["testMenu2"]) + Widget.Base(self.menusystem.menus["testMenu2"]) + Widget.Base(self.menusystem.menus["testMenu2"]) end function TestScene:update(dt)