View Single Post
04-20-22, 08:25 PM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,879
Those all seem to be frames from Load On Demand addons so you're probably trying to hook them before they exist.

What you need to do is find the Blizzard addon they belong to.
Create a frame and register it to recieve the ADDDON_LOADED event.
Check which addon loaded and if it's one of yours, hook the script eg.

Lua Code:
  1. local f = CreateFrame("Frame")
  2. f:RegisterEvent("ADDON_LOADED")
  3. f:SetScript("OnEvent", function(self, event, addonname)
  4.     if addonname == "Blizzard_GarrisonUI" then
  5.         GarrisonLandingPage:HookScript("OnShow", function(self)
  6.             -- do whatever
  7.         end)
  8.     elseif addonname == "One of the other addons" then
  9.         -- do whatever else
  10.     end
  11. end)
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 04-20-22 at 09:15 PM.
  Reply With Quote