View Single Post
09-18-21, 04:06 AM   #3
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,323
You're setting the right-side anchor to the right point on the nameplate, then applying an offset. When you scale up, naturally, the texture will start overlapping the nameplate again. What you need to do is set the left anchor of the texture instead to the right point on the nameplate.

I would also hook NamePlateDriverFrame at the point when it creates the unitframes. Less chance of affecting other parts of the UI.

Lua Code:
  1. hooksecurefunc(NamePlateDriverFrame,"AcquireUnitFrame",function(base)
  2.     if base:IsForbidden() then return; end--    Prevent modding forbidden frames (accessing these throws errors)
  3.  
  4.     local unitframe=base.UnitFrame;--   Set by original function
  5.     unitframe.ClassificationFrame:ClearAllPoints();
  6.     unitframe.ClassificationFrame:SetPoint("LEFT",unitframe.healthBar,"RIGHT");
  7. end);
__________________
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)
  Reply With Quote