View Single Post
04-19-24, 04:12 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,334
If it has more than one anchor set, it might be locked to the size of its parent. If you run :ClearAllPoints(), it'll wipe them out. You'll then need to redefine at least one anchor with :SetPoint() so the game knows where to render it on screen.

For example:
Lua Code:
  1. NamePlate1.UnitFrame.healthBar.background:ClearAllPoints();
  2. NamePlate1.UnitFrame.healthBar.background:SetPoint("CENTER");
  3. NamePlate1.UnitFrame.healthBar.background:SetSize(100,6);
__________________
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