View Single Post
06-06-14, 01:24 AM   #4
WhiteWolf87
A Deviate Faerie Dragon
 
WhiteWolf87's Avatar
AddOn Compiler - Click to view compilations
Join Date: Dec 2013
Posts: 16
I am having trouble figuring out the function to hook. I had some high hopes when I found https://github.com/Shadowed/Shadowed...ons-and-fields. This lead me to write this:

Code:
local check_units = CreateFrame("Frame", nil, UIParent)
check_units:RegisterEvent("ADDON_LOADED")
check_units:SetScript("OnEvent", function(self, event, AddOn)
	if AddOn == "ShadowedUnitFrames" then	
		hooksecurefun(frame, "RegisterUpdateFunc", function(frame)
			if frame == "SUFUnitplayer" then
				LCI:frame_unitPlayer()
			end
		end)
	end
end)
This didn't work... I'm stumped for now. Going to get some sleep and try again tomorrow.
  Reply With Quote