HI i use oUF with Aura bars and I don't no how to change color's on bars, i wish to have violet on skill faerie fire and green on insect swarm.
my code from aura bars:
Code:
local AuraBarFilter
do
local whitelist = {}
for k, v in pairs({
48463, --Moonfire
48468, --IS
48518, --eclipse
48517, --eclipse2
770,
46916,
}) do
whitelist[GetSpellInfo(v)] = true
end
local myunits = {
player = true,
target = true
}
function AuraBarFilter(name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable)
if not myunits[unitCaster] then return end
if whitelist[name]
or not (duration == 0 and expirationTime == 0)
and duration <= 3 then
return true
end
end
end
if unit=='player' or unit=='target' then
local abars = CreateFrame("Frame", nil, self)
abars:SetHeight(1)
abars.auraBarHeight = 10
abars.auraBarWidth = 225
abars.auraBarTexture = HPtex
abars.bgalpha = 1
abars.spacing = 3
abars.gap = 3
abars.spellNameFont = NumbFont
abars.spellTimeFont = NumbFont
abars.filter = AuraBarFilter
abars.sort = true
abars.scaleTime = 12
abars.PostCreateBar = PostCreateAuraBar
if unit=='player' then
abars:SetPoint('BOTTOMLEFT', self, 'TOPLEFT', -0, 55)
abars:SetPoint('BOTTOMLEFT', self.Power, 'TOPLEFT', 433, 160)
abars:SetPoint('BOTTOMRIGHT', self.Power, 'TOPRIGHT', 5000, 5000)
end
if unit=='target' then
abars:SetPoint('BOTTOMLEFT', self.Power, 'TOPLEFT', 0, 160)
abars:SetPoint('BOTTOMLEFT', self.Power, 'TOPLEFT', 0, 190)
abars:SetPoint('BOTTOMRIGHT', self.Power, 'TOPRIGHT', 5000, 5000)
end
self.AuraBars = abars
end
Please help me if anybody can.