Thread Tools Display Modes
11-07-08, 12:22 PM   #1
Layhne
A Murloc Raider
Join Date: Nov 2008
Posts: 9
PitBull - Coloring text based on HP%

Is it possible to color the text on a unitframe by the HP% of the target; in effect more Red if they are closer to death and less red (more white or green) if they have higher HP?
  Reply With Quote
11-07-08, 01:29 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
I think there's an HPColor modifier... But I haven't used PitBull recently.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
11-07-08, 02:19 PM   #3
Zyonin
Coffee powered Kaldorei
 
Zyonin's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 1,443
Originally Posted by Seerah View Post
I think there's an HPColor modifier... But I haven't used PitBull recently.
Yes there is an HPColor tag.

Code:
 [HP:HPColor]
for HP text that changes color based on HP%.

Code:
 [HPColor (Status or PercentHP:Percent)]
For an HP% display that changes color based on HP%
__________________
Twitter
  Reply With Quote
11-07-08, 07:27 PM   #4
Layhne
A Murloc Raider
Join Date: Nov 2008
Posts: 9
Thanks. That worked great. I knew it was done via DogTags but when I hit the DogTags help button, I get an error through Swatter and the dialogue comes up blank.

Cheers.
  Reply With Quote
11-07-08, 08:33 PM   #5
MidgetMage55
Grinch!
 
MidgetMage55's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,498
Might try a recent version if you havent updated in a little bit. I had the same error up till about a week ago when an update fixed it. Version r1766 is the one i have.
__________________

I think Hong Kong Phooey was a ninja AND a pirate. That was just too much awesome. - Yhor
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » PitBull - Coloring text based on HP%


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off