View Single Post
06-29-16, 11:35 PM   #2
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
Originally Posted by Ketho View Post
* 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:
  1. local f = CreateFrame("Frame")
  2. local active = {}
  3.  
  4. function f:SetHook(sf)
  5.     local popup = sf:GetParent()
  6.     popup:HookScript("OnShow", function()
  7.         if active[sf] then
  8.             return
  9.         else
  10.             self:Init(sf)
  11.             active[sf] = true
  12.         end
  13.     end)
  14. end
  15.  
  16. function f:OnEvent(event, addon)
  17.     if addon == "LargerMacroIconSelection" then
  18.         self:SetHook(GearManagerDialogPopupScrollFrame)
  19.     elseif addon == "Blizzard_MacroUI" then
  20.         self:SetHook(MacroPopupScrollFrame)
  21.     end
  22. end
  23.  
  24. f:RegisterEvent("ADDON_LOADED")
  25. f:SetScript("OnEvent", f.OnEvent)

Last edited by Ketho : 07-05-16 at 03:44 AM.