mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 05:50:50 +00:00
Restore HookScript
This commit is contained in:
@@ -542,6 +542,15 @@ do -- create a scope so we don't have to worry about upvalue collisions
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- [ HookScript ]
|
||||||
|
-- Securely post-hooks a script handler.
|
||||||
|
-- 'f' [frame] the frame which needs a hook
|
||||||
|
-- 'script' [string] the handler to hook
|
||||||
|
-- 'func' [function] the function that should be added
|
||||||
|
function HookScript(f, script, func)
|
||||||
|
f:HookScript(script, func)
|
||||||
|
end
|
||||||
|
|
||||||
-- [ HookAddonOrVariable ]
|
-- [ HookAddonOrVariable ]
|
||||||
-- Sets a function to be called automatically once an addon gets loaded
|
-- Sets a function to be called automatically once an addon gets loaded
|
||||||
-- 'addon' [string] addon or variable name
|
-- 'addon' [string] addon or variable name
|
||||||
|
|||||||
Reference in New Issue
Block a user