Originally Posted by SDPhantom
To isolate the adjustment to only when the name is showing, we'll just semi-recreate the original function managing the buff container.
Lua Code:
hooksecurefunc(NameplateBuffContainerMixin,"UpdateAnchor",function(self) local parent=self:GetParent(); local unit=parent.unit; if unit and ShouldShowName(parent) then -- Replicate the calculation of the original function local offset=self:GetBaseYOffset()+((unit and UnitIsUnit(unit,"target")) and self:GetTargetYOffset() or 0); self:SetPoint("BOTTOM",parent,"TOP",0,offset);-- Apply offset here end-- We'll leave the false side of this alone to preserve the original anchor in that case end);
|
dude thats awsome.
You are a true star.
i used to use flyplate debuffs and it had a toggle to show names on untracked nameplates (se image )
I need to be able to scale the debuffs to match the style better
Thanks for all the work man.. making my UI be how i want it to be.
as you can se, only the targeted nameplate has text.
i can fix it with the tracking function in wow.. but then i get names shwoing where i dont.
in FlyPlates i had a function to --fix nameplates without names like the dummys in the image.
anyhow.
Thanx for the aid.