Originally Posted by Ketho
* I haven't yet checked into setting it up once the GearManagerDialogPopup is actually being shown, instead of at player login. Maybe that will also work...
|
... and that worked. I guess you have to use more hooks as a workaround
But I honestly wonder if it's considered acceptable to just disable
releaseUITextures
Completely useless snippet:
Lua Code:
local f = CreateFrame("Frame")
local active = {}
function f:SetHook(sf)
local popup = sf:GetParent()
popup:HookScript("OnShow", function()
if active[sf] then
return
else
self:Init(sf)
active[sf] = true
end
end)
end
function f:OnEvent(event, addon)
if addon == "LargerMacroIconSelection" then
self:SetHook(GearManagerDialogPopupScrollFrame)
elseif addon == "Blizzard_MacroUI" then
self:SetHook(MacroPopupScrollFrame)
end
end
f:RegisterEvent("ADDON_LOADED")
f:SetScript("OnEvent", f.OnEvent)