2011-12-05 16:39:33 -02:00

19 lines
277 B
Lua

TopMenu = {}
-- private variables
local topMenu
-- public functions
function TopMenu.create()
topMenu = UI.display('topmenu.otui')
end
function TopMenu.destroy()
topMenu:destroy()
topMenu = nil
end
function TopMenu.getButton(id)
return topMenu:getChildById(id)
end