View Single Post
Unread 09-30-09, 02:40 AM   #1206
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
Originally Posted by PaleSamurai View Post
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
__________________
I stopped playing back in 2010. If you want to continue any addon or make a fork then feel free to do so. This is your permission slip.

Best regards, v6.
v6o is offline