WoWInterface SVN oUF_Ruben

Compare Revisions

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

Rev 33 → Rev 32

trunk/oUF_Ruben/oUF_Ruben.lua
227,17 → 227,12
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
 
--[[--]]
394,7 → 389,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)
 
571,8 → 566,7
name:SetHeight(100);
name:SetJustifyV('TOP')
else
name:SetPoint'RIGHT'
name:SetPoint('LEFT', 2, 0)
name:SetAllPoints()
end
if portraitunits[unit] then
self:Tag(name, '[smartcolor][name]|r [perhp]% ([difficulty][smartlevel]|r)')
806,10 → 800,10
end
 
if unit=='player' or unit=='focus' or unit=='target' or unit=='pet' then
local abars = CreateFrame("Frame", nil, self)
local abars = CreateFrame("Frame", nil, unit=='player' and UIParent or self)
abars:SetHeight(1)
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: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.auraBarHeight = (unit=='focus' or unit=='pet') and height or 16
abars.auraBarTexture = gradient