tibia-client/modules/topmenu/topmenu.lua

18 lines
276 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