View Single Post
06-08-17, 06:36 AM   #7
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Originally Posted by lightspark View Post
When a new nameplate is added, NamePlateDriverMixin:OnNamePlateAdded is called. If nameplate's unit is "player", these two funcs will add all player specific components:
- DefaultCompactNamePlatePlayerFrameSetup sets up castbar, power bar, etc;
- NamePlateDriverMixin.SetupClassNameplateBars adds class power bars.

That's basically what people need to replicate via callbacks. They need to add player-specific components on "NAME_PLATE_UNIT_ADDED", and clean up stuff on "NAME_PLATE_UNIT_REMOVED".
Originally Posted by lightspark View Post
Well, you already did, it's your lib.UpdateNPs func, now you have to make it more flexible/smarter
Why isn't this in your nameplate guide? :P
  Reply With Quote