Thread
:
How to set an unique style for Player-nameplate in ouf?
View Single Post
06-08-17, 06:36 AM
#
7
p3lim
A Pyroguard Emberseer
Join Date: Feb 2007
Posts: 1,710
Originally Posted by
lightspark
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
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
p3lim
View Public Profile
Send a private message to p3lim
Find More Posts by p3lim