/
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 |
--[[--]] |
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) |
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)') |
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 |