scenes/test: test a second menu
This commit is contained in:
parent
242c877592
commit
902dfa0d95
1 changed files with 14 additions and 1 deletions
|
@ -25,6 +25,7 @@ local Scene = require "core.modules.scenes"
|
||||||
local TestScene = Scene:extend()
|
local TestScene = Scene:extend()
|
||||||
|
|
||||||
local MenuType = require "core.modules.menusystem.listbox"
|
local MenuType = require "core.modules.menusystem.listbox"
|
||||||
|
local MenuType2 = require "core.modules.menusystem.flowbox"
|
||||||
local Widget = require "core.modules.menusystem.widgets"
|
local Widget = require "core.modules.menusystem.widgets"
|
||||||
|
|
||||||
|
|
||||||
|
@ -35,11 +36,23 @@ function TestScene:new()
|
||||||
|
|
||||||
self:register()
|
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"])
|
||||||
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
|
end
|
||||||
|
|
||||||
function TestScene:update(dt)
|
function TestScene:update(dt)
|
||||||
|
|
Loading…
Reference in a new issue