WoWInterface SVN oUF_Ruben

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 36 to Rev 37
    Reverse comparison

Rev 36 → Rev 37

oUF_Ruben/media/pHishTex10.tga Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes : Added: svn:executable + * Added: svn:mime-type + application/octet-stream
oUF_Ruben/media/pHishTex34.tga Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes : Added: svn:executable + * Added: svn:mime-type + application/octet-stream
oUF_Ruben/oUF_Ruben.lua
16,8 → 16,8
 
local flat = [=[Interface\ChatFrame\ChatFrameBackground]=]
local statbaralpha = 0.6
local smooth = mediaPath .. 'oRA3'
local gradient = mediaPath .. 'Ish14'
local smooth = mediaPath .. 'pHishTex34'
local gradient = mediaPath .. 'pHishTex10'
 
--[[
In patch 3.3.3 Blizzard added a way to tile statusbar textures horizontally
26,7 → 26,7
pixels wide or longer.
 
]]
local fixbartext = false
local fixbartex = false
 
ns.fonts = {}
ns.fonts.silk = mediaPath.."slkscr.ttf"
162,6 → 162,17
return oUF.Tags['[dead]'](u) or CoolNumber(oUF.Tags['[curhp]'](u))
end
oUF.TagEvents['[ruben_hp]'] = 'UNIT_HEALTH'
do
local UnitHealthMax = UnitHealthMax
local UnitHealth = UnitHealth
 
oUF.Tags["[ruben_perhp]"] = function(u)
local m = UnitHealthMax(u)
local p = UnitHealth(u)/m*100+0.5
return not oUF.Tags['[dead]'](u) and p < 100 and round(p, 1)..'%'
end
oUF.TagEvents['[ruben_perhp]'] = oUF.TagEvents['[perhp]']
end
 
oUF.Tags['[ruben_pp]'] = function(u)
local pp =oUF.Tags['[curpp]'](u)
428,6 → 439,14
 
hp.value = value
 
local percent = hp:CreateFontString()
percent:SetFontObject(font)
value.frequentUpdates = 1/12
self:Tag(percent, '[ruben_perhp]')
percent:SetPoint'RIGHT'
 
hp.percent = percent
 
end
 
self.Health = hp