This repository has been archived on 2019-04-06. You can view files and clone it, but cannot push or open issues or pull requests.
adventin/stead/hideinv.lua
2010-07-07 13:48:15 +00:00

13 lines
271 B
Lua

dlg = stead.inherit(dlg, function(v)
v.entered = stead.hook(v.entered, function(f, ...)
local r,v = f(unpack(arg))
me():disable_all();
return r,v
end)
v.left = stead.hook(v.left, function(f, ...)
me():enable_all();
return f(unpack(arg))
end)
return v
end)