Forgot removeMenuHook function.

This commit is contained in:
BenDol 2014-07-13 22:39:56 +12:00
parent 0f362f80e3
commit 935b9e4cd6
1 changed files with 4 additions and 0 deletions

View File

@ -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')