A Flamescale Wyrmkin
Join Date: Jul 2008
Posts: 127
|
You're welcome, but you're reviving a long dead thread !
But here we go with the drood and shamy :
Code:
local function DruidAuraWatch(self,unit)
local auras = CreateFrame('Frame', nil, self)
auras:SetAllPoints(self.Health)
local spellIDs = {
--Druid
48440, --Rejuvenation
48443, --Regrowth
48450, --Lifebloom
53249, --Wild Growth
2893, --Abolish Poison
--Naxxramas
27808, --Frost Blast
32407, --Strange Aura
28408, --Chains of Kel'Thuzad
--Ulduar
66313, --Fire Bomb
63134, --Sara's Blessing
62717, --Slag Pot
63018, --Searing Light
64233, --Gravity Bomb
63495, --Static Disruption
--Trial of the Crusader
66406, --Snobolled
67574, --Pursued by Anub'arak
68509, --Penetrating Cold
67651, --Arctic Breath
68127, --Legion Flame
67049, --Incinerate Flesh
66869, --Burning Bile
66823, --Paralytic Toxin
--Other debuff
6215, --Fear
67479, --Impale
}
auras.presentAlpha = 1
auras.missingAlpha = 0
auras.icons = {}
for i, sid in pairs(spellIDs) do
local icon = CreateFrame('Frame', nil, auras)
icon.spellID = sid
local cd = CreateFrame('Cooldown', nil, icon)
cd:SetAllPoints(icon)
cd:SetReverse()
icon.cd = cd
if i > 5 then
icon.anyUnit = true
icon:SetWidth(18)
icon:SetHeight(18)
cd:SetAlpha(0)
local tex = icon:CreateTexture(nil, 'OVERLAY')
tex:SetAllPoints(icon)
tex:SetTexture(border)
tex:SetVertexColor(222/255, 22/255, 22/255)
icon:SetPoint('CENTER',0,0)
local count = icon:CreateFontString(nil, 'OVERLAY')
count:SetFont(font, 7, 'OUTLINE')
count:SetPoint('CENTER', 6, 1)
icon.count = count
else
icon:SetWidth(7)
icon:SetHeight(7)
local tex = icon:CreateTexture(nil, 'BACKGROUND')
tex:SetAllPoints(icon)
tex:SetTexture(indicator)
if i==1 then
icon:SetPoint('TOPLEFT',0,0)
tex:SetVertexColor(200/255,100/255,200/255)
elseif i==2 then
icon:SetPoint('LEFT',0,0)
tex:SetVertexColor(50/255,200/255,50/255)
elseif i==3 then
icon:SetPoint('BOTTOMRIGHT',0,0)
tex:SetVertexColor(100/255,200/255,50/255)
local count = icon:CreateFontString(nil, 'OVERLAY')
count:SetFont(font, 6, 'OUTLINE')
count:SetPoint('CENTER', -6, 1)
icon.count = count
elseif i==4 then
icon:SetPoint('BOTTOMLEFT',0,0)
tex:SetVertexColor(200/255,100/255,0/255)
elseif i==5 then
icon:SetPoint('RIGHT',0,0)
tex:SetVertexColor(200/255,100/255,0/255)
end
icon.icon = tex
end
auras.icons[sid] = icon
end
self.AuraWatch = auras
end
Code:
local function ShamanAuraWatch(self,unit)
local auras = CreateFrame('Frame', nil, self)
auras:SetAllPoints(self.Health)
local spellIDs = {
--Shaman
49284, --Earth Shield
61301, --Riptide
52000, --Earthliving
--Naxxramas
27808, --Frost Blast
32407, --Strange Aura
28408, --Chains of Kel'Thuzad
--Ulduar
66313, --Fire Bomb
63134, --Sara's Blessing
62717, --Slag Pot
63018, --Searing Light
64233, --Gravity Bomb
63495, --Static Disruption
--Trial of the Crusader
66406, --Snobolled
67574, --Pursued by Anub'arak
68509, --Penetrating Cold
67651, --Arctic Breath
68127, --Legion Flame
67049, --Incinerate Flesh
66869, --Burning Bile
66823, --Paralytic Toxin
--Other debuff
6215, --Fear
67479, --Impale
}
auras.presentAlpha = 1
auras.missingAlpha = 0
auras.icons = {}
for i, sid in pairs(spellIDs) do
local icon = CreateFrame('Frame', nil, auras)
icon.spellID = sid
local cd = CreateFrame('Cooldown', nil, icon)
cd:SetAllPoints(icon)
cd:SetReverse()
icon.cd = cd
if i > 3 then
icon.anyUnit = true
icon:SetWidth(18)
icon:SetHeight(18)
cd:SetAlpha(0)
local tex = icon:CreateTexture(nil, 'OVERLAY')
tex:SetAllPoints(icon)
tex:SetTexture(border)
tex:SetVertexColor(222/255, 22/255, 22/255)
icon:SetPoint('CENTER',0,0)
local count = icon:CreateFontString(nil, 'OVERLAY')
count:SetFont(font, 7, 'OUTLINE')
count:SetPoint('CENTER', 6, 1)
icon.count = count
else
icon:SetWidth(7)
icon:SetHeight(7)
local tex = icon:CreateTexture(nil, 'BACKGROUND')
tex:SetAllPoints(icon)
tex:SetTexture(indicator)
if i==1 then
icon:SetPoint('BOTTOMRIGHT',0,0)
tex:SetVertexColor(140/255,95/255,75/255)
local count = icon:CreateFontString(nil, 'OVERLAY')
count:SetFont(font, 6, 'OUTLINE')
count:SetPoint('CENTER', -6, 1)
icon.count = count
elseif i==2 then
icon:SetPoint('TOPLEFT',0,0)
tex:SetVertexColor(100/255,200/255,200/255)
elseif i==3 then
icon:SetPoint('BOTTOMLEFT',0,0)
tex:SetVertexColor(100/255,200/255,140/255)
end
icon.icon = tex
end
auras.icons[sid] = icon
end
self.AuraWatch = auras
end
|