Files
otclient/modules/client_topmenu/topmenu.lua
2012-01-02 22:42:53 -02:00

19 lines
276 B
Lua

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