WoWInterface - View Single Post - Changing the Scale for ClassNameplateBar
View Single Post
01-15-17, 09:11 PM   #2
A Pyroguard Emberseer
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,055
Lua Code:
  1. hooksecurefunc(NamePlateDriverFrame,"OnNamePlateCreated",function(self,base)
  2.     base.UnitFrame:SetScale(0.7);
  3. end);
This hooks the creation of the UnitFrames attached to NamePlates and adjusts their scale. The NamePlates themselves are scaled dynamically in C code, so they can't be adjusted.
ESOUI AddOns | 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)