Originally Posted by PaleSamurai
simeple question:
what do i put in to make the health numbers show the full value like 10,000 instead of 10k?
|
Using oUF_Lily as example
Code:
local updateHealth = function(self, event, unit, bar, min, max) if(UnitIsDead(unit)) then
bar:SetValue(0)
bar.value:SetText"Dead"
elseif(UnitIsGhost(unit)) then
bar:SetValue(0)
bar.value:SetText"Ghost"
elseif(not UnitIsConnected(unit)) then
bar.value:SetText"Offline"
else
if(not UnitIsFriend('player', unit)) then
bar.value:SetFormattedText('%s', siValue(min))
elseif(min ~= 0 and min ~= max) then
bar.value:SetFormattedText("-%s", siValue(max - min))
else
bar.value:SetText(max)
end
end
bar:SetStatusBarColor(.25, .25, .35)
updateName(self, event, unit)
end
The red should be changed to just
min and
max - min