WoWInterface SVN oUF_Ruben

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 32 to Rev 33
    Reverse comparison

Rev 32 → Rev 33

trunk/oUF_Ruben/oUF_Ruben.lua
227,12 → 227,17
local function PostCreateAuraBar(bar)
bar:SetBackdrop(backdrop)
bar:SetBackdropColor(0,0,0)
 
 
bar.icon:SetDrawLayer'ARTWORK'
 
local bg = bar:CreateTexture(nil, 'BACKGROUND')
bg:SetPoint('TOPRIGHT',bar.icon,1,1)
bg:SetPoint('BOTTOMLEFT',bar.icon,-1,-1)
bg:SetTexture(0,0,0)
bar.icon.bg = bg
 
-- pixel font anchored to the border... blegh
bar.spellname:SetPoint('LEFT', 2, 0)
end
 
--[[--]]
389,7 → 394,7
local value = hp:CreateFontString()
value:SetFontObject(font)
value.frequentUpdates = 1/12
value:SetVertexColor(197/255,250/255,205/255)
value:SetVertexColor(197/255, 250/255, 205/255)
self:Tag(value, '[ruben_hp]')
value:SetPoint('BOTTOMRIGHT', hp, 'TOPRIGHT', 0, 8)
 
566,7 → 571,8
name:SetHeight(100);
name:SetJustifyV('TOP')
else
name:SetAllPoints()
name:SetPoint'RIGHT'
name:SetPoint('LEFT', 2, 0)
end
if portraitunits[unit] then
self:Tag(name, '[smartcolor][name]|r [perhp]% ([difficulty][smartlevel]|r)')
800,10 → 806,10
end
 
if unit=='player' or unit=='focus' or unit=='target' or unit=='pet' then
local abars = CreateFrame("Frame", nil, unit=='player' and UIParent or self)
local abars = CreateFrame("Frame", nil, self)
abars:SetHeight(1)
abars:SetPoint('BOTTOMLEFT', self.Power or self, 'TOPLEFT', 0, (unit=='focus' or unit=='pet') and 4 or 23)
abars:SetPoint('BOTTOMRIGHT', self.Power or self, 'TOPRIGHT', 0, (unit=='focus' or unit=='pet') and 4 or 23)
abars:SetPoint('BOTTOMLEFT', self.Power or self, 'TOPLEFT', 0, (unit=='focus' or unit=='pet') and 4 or 20)
abars:SetPoint('BOTTOMRIGHT', self.Power or self, 'TOPRIGHT', 0, (unit=='focus' or unit=='pet') and 4 or 20)
 
abars.auraBarHeight = (unit=='focus' or unit=='pet') and height or 16
abars.auraBarTexture = gradient