mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 23:26:51 +01:00
reorganize modules
This commit is contained in:
18
modules/client_topmenu/topmenu.lua
Normal file
18
modules/client_topmenu/topmenu.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
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
|
||||
Reference in New Issue
Block a user