scenes/test: test a second menu

This commit is contained in:
Kazhnuz 2019-02-12 18:05:50 +01:00
parent 242c877592
commit 902dfa0d95

View file

@ -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)