I´ve also discovered this one:
local function GetBarText(current, shieldValue, max, format)
if(format == TEXT_MODE_PERCENT) then
return GetPercentText(current, max)
elseif(format == TEXT_MODE_ABSOLUTE) then
return zo_strformat("<<1>> / <<2>>", current, max)
elseif(format == TEXT_MODE_BOTH) then
if(shieldValue and shieldValue > 0) then
return zo_strformat("<<1>> + <<2>> / <<3>> (<<4>> + <<5>>)", current, shieldValue, max, GetPercentText(current, max), GetPercentText(shieldValue, max))
else
return zo_strformat("<<1>> / <<2>> (<<3>>)", current, max, GetPercentText(current, max))
end
end
end
|