mirror of
https://github.com/brues-code/SuperCleveRoidMacros.git
synced 2026-09-16 03:38:00 +00:00
21 lines
497 B
Lua
21 lines
497 B
Lua
local _G = _G or getfenv(0)
|
|
local CleveRoids = _G.CleveRoids or {}
|
|
|
|
local Extension = CleveRoids.RegisterExtension("Compatibility_SuperMacro")
|
|
Extension.RegisterEvent("ADDON_LOADED", "OnLoad")
|
|
|
|
function Extension.RunMacro(name)
|
|
CleveRoids.ExecuteMacroByName(name)
|
|
end
|
|
|
|
function Extension.OnLoad()
|
|
if not SuperMacroFrame then
|
|
return
|
|
end
|
|
|
|
Extension.Hook("RunMacro", "RunMacro", true)
|
|
Extension.UnregisterEvent("ADDON_LOADED", "Onload")
|
|
end
|
|
|
|
|
|
_G["CleveRoids"] = CleveRoids |