tibia-client/modules/topmenu/topmenu.lua

18 lines
292 B
Lua
Raw Normal View History

2011-11-01 17:41:15 +01:00
TopMenu = {}
-- private variables
local topMenu
-- public functions
function TopMenu.create()
topMenu = UI.loadAndDisplay("/topmenu/topmenu.otui")
end
function TopMenu.destroy()
topMenu:destroy()
topMenu = nil
2011-11-16 19:08:42 +01:00
end
function TopMenu.getButton(id)
return topMenu:getChildById(id)
2011-11-01 17:41:15 +01:00
end