I have a small UIrelated issue. I've been googling my ass off trying to find an answer, but I can't seem to find any.
I want a light blue color code (matching my focus-/pet bar) for the text on the unitframes.
http://bildr.no/view/860142
If my current Luacodings is any help:
Player, health:
local s = Status(unit)
if s then
return s
end
local cur, max = HP(unit), MaxHP(unit)
return "%s - %s%%",VeryShort(cur,true),Percent(cur,max)
Target, name:
return '%s %s%s%s',Name(unit),Angle(AFK(unit) or DND(unit))
Target, health:
local s = Status(unit)
if s then
return s
end
local cur, max = HP(unit), MaxHP(unit)
return "%s - %s%%",VeryShort(cur,true),Percent(cur,max)
Target's target, name:
return '%s %s%s%s',Name(unit),Angle(AFK(unit) or DND(unit))
Pitbull - Color coding
Pitbull - Color coding
- Pais
- Posts: 4
Re: Pitbull - Color coding
- Neroque
- Posts: 1
Hi Pais,
example from my Pitbull custumization:
or in detail, add this:
around your %s variables, where XXYYZZ is for a color code in hexadezimal. "|cff" starts a different color and "|r" ends it.
Hope I could help, cause googled also a while for it ;D
example from my Pitbull custumization:
- Code: Select all
Outline()
return "|cff00ff00%s|r | |cff008500%s|r",Short(HP(unit),true),Short(MaxHP(unit),true)
or in detail, add this:
- Code: Select all
"|cffXXYYZZ" + %s + "|r"
around your %s variables, where XXYYZZ is for a color code in hexadezimal. "|cff" starts a different color and "|r" ends it.
Hope I could help, cause googled also a while for it ;D
Re: Pitbull - Color coding
- Pais
- Posts: 4
Neroque wrote:Hi Pais,
example from my Pitbull custumization:
- Code: Select all
Outline()
return "|cff00ff00%s|r | |cff008500%s|r",Short(HP(unit),true),Short(MaxHP(unit),true)
or in detail, add this:
- Code: Select all
"|cffXXYYZZ" + %s + "|r"
around your %s variables, where XXYYZZ is for a color code in hexadezimal. "|cff" starts a different color and "|r" ends it.
Hope I could help, cause googled also a while for it ;D
Thank you! This worked excactly the way I wanted it.
This was also a good help: http://html-color-codes.com/ :)
3 posts -