View Single Post
11-01-06, 08:20 PM   #9
Miles
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 16
You just create the frame and call RegisterUnitWatch(frame) on it. If UnitExists(this:GetAttribute("unit")) returns true, it's automatically shown, otherwise hidden.

So, at init, do a frame:SetAttribute("unit", "target") and register that frame. Then use hooksecurefunc on OnShow to execute the line Perl_Target_Update_Once();
  Reply With Quote