View Single Post
06-23-19, 11:14 AM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
Lua Code:
  1. local f = CreateFrame("Frame", "LybrialEventFrame")
  2. f:SetScript("OnEvent", function(self, event, ...)
  3.     local arg1 = ... --(arg1 will be the name of the addon just loaded for the "ADDON_LOADED" event)
  4.     if event == "ADDON_LOADED" and arg1 == "BigWigs" then
  5.         -- Initial Bigwigs frames should be created now
  6.     end
  7. end)
  8. f:RegisterEvent("ADDON_LOADED")
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote