View Single Post
11-16-19, 12:24 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,324
Looks fine to me, though you don't need to wait for an event to change the font properties. They already exist by the time the addon runs.



As for your additional requests, here's how I'd reset the nametag anchors.
Lua Code:
  1. hooksecurefunc(NamePlateDriverFrame,"OnNamePlateCreated",function(base)--   Hook nameplate creation function
  2.     local unitframe=base.UnitFrame;--   UnitFrame attached to nameplate base
  3.  
  4.     unitframe.name:ClearAllPoints();--  Clear nametag anchors
  5. --  Set new anchor(s) here
  6. end);

I think the nametag is always white. The nameplates just change their alpha when "selected".
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 11-16-19 at 12:29 PM.
  Reply With Quote