mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
Forgot removeMenuHook function.
This commit is contained in:
@@ -423,6 +423,10 @@ function addMenuHook(category, name, callback, condition, shortcut)
|
||||
}
|
||||
end
|
||||
|
||||
function removeMenuHook(category, name)
|
||||
hookedMenuOptions[category][name] = {}
|
||||
end
|
||||
|
||||
function createThingMenu(menuPosition, lookThing, useThing, creatureThing)
|
||||
if not g_game.isOnline() then return end
|
||||
local menu = g_ui.createWidget('PopupMenu')
|
||||
|
Reference in New Issue
Block a user