add menus

This commit is contained in:
airstruck
2015-11-08 15:06:16 -05:00
parent 21ace2a243
commit 7bcf8ffbda
16 changed files with 442 additions and 99 deletions

9
luigi/widget/menu.lua Normal file
View File

@@ -0,0 +1,9 @@
return function (self)
for index, child in ipairs(self) do
child.type = child.type or 'menu.item'
child.parentMenu = self
child.rootMenu = self
end
end