View Single Post
06-21-20, 02:01 PM   #5
Aur0r4
A Deviate Faerie Dragon
 
Aur0r4's Avatar
AddOn Compiler - Click to view compilations
Join Date: Feb 2010
Posts: 16
Thank you!
Sadly it is the same outcoming

Name |CFF00FF00100

Originally Posted by Fizzlemizz
Someone here probably has a better solution.
Hopefully or maybe its just a typo? But I don't see it...


Nevermind:

My girlfriend fixed it

Lua Code:
  1. local s = Status(unit)
  2. if s then
  3.   return s
  4. end
  5. local r,g,b = ClassColor(unit)
  6. local string1 = string.format('|cff%02x%02x%02x%s|r %s%s%s| ', r,g,b,Name(unit),Angle(AFK(unit) or DND(unit)))
  7. local cur,max = HP(unit),MaxHP(unit);
  8. local hr,hg,hb=HPColor(cur,max);
  9. local string2 = string.format('|cff%02x%02x%02x%.0f|r' or "", hr,hg,hb,100*cur/max)
  10. return string1 .. string2
__________________
Aur0r4
Yuluria


See Yulu UI in action: here

F.A.Q.

Last edited by Aur0r4 : 06-21-20 at 02:28 PM.
  Reply With Quote