966 - An addition to LUA Text choice for Health.
What is the enhancement in mind? How should it look and feel?
A choice to have Health: Percent set in bold and colored depending on hp percentage (i.e. 100% = green, 50%= yellow, 20%= red etc)
Please provide any additional information below.
LUA Code:
local s = Status(unit)
if s then
Outline()
return s
else
Outline()
local cur, max = HP(unit), MaxHP(unit)
local r, g, b = HPColor(cur, max)
return " |cff%02x%02x%02x%s%%|r", r, g, b, Percent(cur, max)
end
| User | When | Change |
|---|---|---|
| ferretsgamertag | Jul 25, 2011 at 18:52 UTC | Create |
Facts
- Reported
- Jul 25, 2011
- Status
- New - Issue has not had initial review yet.
- Type
- Enhancement - A change which is intended to better the project in some way
- Priority
- Medium - Normal priority.
- Votes
- 0
- Component
- LuaTexts