Quantcast WoWInterface - View Single Post - Help with an Addon Nameplate
View Single Post
11-01-19, 09:26 PM   #5
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 1,888
You can expand line 14 to be something like this.
Lua Code:
  1. if NamePlateHealthText[self] then
  2.     local cur,max=UnitHealth(self.displayedUnit),UnitHealthMax(self.displayedUnit);
  3.     NamePlateHealthText[self]:SetFormattedText("%d - %.0f%%",cur,100*cur/max);
  4. end
__________________
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)
  Reply With Quote