Forgot removeMenuHook function.
This commit is contained in:
parent
0f362f80e3
commit
935b9e4cd6
|
@ -423,6 +423,10 @@ function addMenuHook(category, name, callback, condition, shortcut)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function removeMenuHook(category, name)
|
||||||
|
hookedMenuOptions[category][name] = {}
|
||||||
|
end
|
||||||
|
|
||||||
function createThingMenu(menuPosition, lookThing, useThing, creatureThing)
|
function createThingMenu(menuPosition, lookThing, useThing, creatureThing)
|
||||||
if not g_game.isOnline() then return end
|
if not g_game.isOnline() then return end
|
||||||
local menu = g_ui.createWidget('PopupMenu')
|
local menu = g_ui.createWidget('PopupMenu')
|
||||||
|
|
Loading…
Reference in New Issue