mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-29 18:56:02 +00:00
eqcompare: compare basic stats on items
This commit is contained in:
+10
@@ -310,6 +310,16 @@ function pfUI.api.hooksecurefunc(name, func, append)
|
||||
_G[name] = pfUI.hooks[tostring(func)]["function"]
|
||||
end
|
||||
|
||||
function pfUI.api.HookScript(f, script, func)
|
||||
local prev = f:GetScript(script)
|
||||
|
||||
f:SetScript(script, function(...)
|
||||
if prev then prev() end
|
||||
|
||||
func()
|
||||
end)
|
||||
end
|
||||
|
||||
-- [ QueueFunction ]
|
||||
-- Add functions to a FIFO queue for execution after a short delay.
|
||||
-- '...' [vararg] function, [arguments]
|
||||
|
||||
Reference in New Issue
Block a user